Resource Center/Resource Pool/VM Instance Operations
GETVM Instance OperationsSince 4.1.0SynchronousAuth Required
GetCandidateL3NetworksForChangeVmNicNetwork
GetCandidateL3NetworksForChangeVmNicNetwork
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Query Parameters
Request Inputs
Path Parameters
vmNicUuidStringRequiredThe VM NIC UUID.
Query Parameters
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
GET/zstack/v1/vm-instances/nics/{vmNicUuid}/l3-networks-candidates
/zstack/v1/vm-instances/nics/{vmNicUuid}/l3-networks-candidates
Request Example
curl -X GET 'http://{host}/zstack/v1/vm-instances/nics/{vmNicUuid}/l3-networks-candidates?systemTags=<systemTags>&userTags=<userTags>' -H 'Authorization: OAuth {sessionUuid}'
Response Example
200{ "inventories": [ { "uuid": "f8fc36eaff6f3253a134bab93823baf1", "name": "private L3", "type": "L3BasicNetwork", "zoneUuid": "9ef7d386414c3101adeecd45ec9a2d51", "l2NetworkUuid": "ad3adf2da22f36c2946d90fae7f99b19", "state": "Enabled", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM", "ipRanges": [ { "uuid": "16f163ee55f93d4f8dca9fefcac41ecc", "l3NetworkUuid": "f8fc36eaff6f3253a134bab93823baf1", "name": "ip range", "startIp": "192.168.0.10", "endIp": "192.168.0.100", "netmask": "255.255.255.0", "gateway": "192.168.0.1", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } ], "networkServices": [ { "l3NetworkUuid": "f8fc36eaff6f3253a134bab93823baf1", "networkServiceProviderUuid": "f714dba2f49a3d6788aafbe8b5ab3dc2", "networkServiceType": "DHCP" }, { "l3NetworkUuid": "f8fc36eaff6f3253a134bab93823baf1", "networkServiceProviderUuid": "f714dba2f49a3d6788aafbe8b5ab3dc2", "networkServiceType": "DNS" }, { "l3NetworkUuid": "f8fc36eaff6f3253a134bab93823baf1", "networkServiceProviderUuid": "f714dba2f49a3d6788aafbe8b5ab3dc2", "networkServiceType": "SNAT" } ] } ] }Change History
This API has no change history records yet.
