Given this method signature:
func (client LoadBalancersClient) Get(ctx context.Context, resourceGroupName string, loadBalancerName string, expand string) (result LoadBalancer, err error)
How does one use the "expand" parameter? There appears to be zero documentation on how to format it and all I'm getting is InvalidExpandQueryOptionValue
errors.
lbClient := network.NewLoadBalancersClient(subId)
lbClient.Authorizer = authr
lbResult, err := lbClient.Get(context.TODO(), rgName, lbName, "loadBalancingRules")
if err != nil {
panic(err)
}
Results in:
panic: network.LoadBalancersClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidExpandQueryOptionValue" Message="$expand query option value is invalid. The resource does not have property loadBalancingRules or the property does not represent a reference to another resource." Details=[]
I've also tried $loadBalancingRules
, {$loadBalancingRules}
, and LoadBalancingRules
.