You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following error is raised when using masks in getPublicVlan and getPrivateVlan methods of SoftLayer_Network_Gateway:
com.softlayer.api.ApiException$Internal: Property 'networkVlan' not valid for 'SoftLayer_Network_Vlan'.(code: SoftLayer_Exception_WebService_ObjectMask, status: 500)
I found this error by using following java code:
Gateway.Service gatewayService = Gateway.service(client, gatewayId);
// Mask to get relational properties of a public vlan
gatewayService.withMask().publicVlan().networkVlan().vlanNumber();
Vlan vlan = gatewayService.getObject().getPublicVlan();
I tried by removing networkVlan() in the mask, but vlanNumber() or other properties cannot be called after publicVlan().
It is possible to get local properties without masks but it's a problem when trying to get relational properties like primaryRouter, networkSpace, etc.
This same issue happens with getPrivateVlan method.
Regards,
The text was updated successfully, but these errors were encountered:
acamacho82
changed the title
Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway service
Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway
Mar 20, 2017
Following error is raised when using masks in getPublicVlan and getPrivateVlan methods of SoftLayer_Network_Gateway:
I found this error by using following java code:
I tried by removing networkVlan() in the mask, but vlanNumber() or other properties cannot be called after publicVlan().
It is possible to get local properties without masks but it's a problem when trying to get relational properties like primaryRouter, networkSpace, etc.
This same issue happens with getPrivateVlan method.
Regards,
The text was updated successfully, but these errors were encountered: