GetVmNicAttachedNetworkService
API Request
URLs
GET zstack/v1/vm-instances/nics/{vmNicUuid}/attached-networkservicesHeaders
Authorization: OAuth the-session-uuidCurl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/vm-instances/nics/8c193a29a4a43fccab83fea5a7281856/attached-networkservicesRequest Parameters
| Name | Type | Location | Description | Valid Value | Starting Version |
|---|---|---|---|---|---|
| vmNicUuid | String | url | The VM NIC UUID. | 4.1.0 | |
| systemTags | List | query | Optional. The system tags. | 4.1.0 | |
| userTags | List | query | Optional. The user tags. | 4.1.0 |
API Response
Sample Response
{
"networkServices": [
"Eip"
]
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| networkServices | List | 4.1.0 | |
| error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 4.1.0 |
#error
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 4.1.0 |
| description | String | The brief description of the error. | 4.1.0 |
| details | String | The details about the error. | 4.1.0 |
| elaboration | String | The reserved field. Default value: null. | 4.1.0 |
| opaque | LinkedHashMap | The reserved field. Default value: null. | 4.1.0 |
| cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 4.1.0 |
SDK Sample
Java
SDK
GetVmNicAttachedNetworkServiceAction action = new GetVmNicAttachedNetworkServiceAction();
action.vmNicUuid = "8c193a29a4a43fccab83fea5a7281856";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetVmNicAttachedNetworkServiceAction.Result res = action.call();Python
SDK
GetVmNicAttachedNetworkServiceAction action = GetVmNicAttachedNetworkServiceAction()
action.vmNicUuid = "8c193a29a4a43fccab83fea5a7281856"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetVmNicAttachedNetworkServiceAction.Result res = action.call()