2016-04-22 103 views

回答

0

這種方法可以幫助你用一個VLAN的網關相關聯:

SoftLayer_Network_Gateway_Vlan::createObject

下面是一個休息例子:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Network_Gateway_Vlan/createObject 

Method: POST 

Json payload: 

{ 
    "parameters": [ 
    { 
     "bypassFlag": false, 
     "networkGatewayId": 172323, 
     "networkVlanId": 561712 
    } 
    ] 
} 

另外,要獲得所有V局域網,可以成爲內部的VLAN上該網關,請參閱:

SoftLayer_Network_Gateway::getPossibleInsideVlans

例子:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Network_Gateway/[gateway_id]/getPossibleInsideVlans?objectMask=mask[primaryRouter] 
Method: GET 

我希望它幫你

+0

由於它工作正常。 –