Skip to content

Object-mask error when trying to get PublicVlans/PrivateVlans of Gateway #42

@acamacho82

Description

@acamacho82

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions