Resource Center/Resource Pool/VM Instance Operations
POSTVM Instance OperationsSince 4.0.0SynchronousAuth Required
CreateVmNic
CreateVmNic
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
l3NetworkUuidStringRequiredThe L3 network UUID.
ipStringOptional.
resourceUuidStringOptional.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/nics
/zstack/v1/nics
Request Example
curl -X POST 'http://{host}/zstack/v1/nics' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"l3NetworkUuid":"<l3NetworkUuid>","ip":"<ip>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "158c432596ab3418bbdd04583541d42d", "usedIpUuid": "acfdb23e1b0e39e48b10ee02d10ed74f", "l3NetworkUuid": "a1791966d2fd375bbb469dd0308d3be6", "ip": "192.168.1.10", "mac": "00:0c:29:bd:99:fc", "hypervisorType": "KVM", "netmask": "255.255.255.0", "gateway": "192.168.1.1", "deviceId": 0.0, "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } }Change History
This API has no change history records yet.
