QueryNetworkServiceL3NetworkRef
API Request
URLs
GET zstack/v1/l3-networks/network-services/refs
Headers
Authorization: OAuth the-session-uuid
Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth aa530ebc39804e00b3df02b8862eaec3" \
-X GET http://localhost:8080/zstack/v1/l3-networks/network-services/refs
Queryable Fields
You can check all queryable fields and resource names that can be queried across tables by using zstack-cli, entering QueryNetworkServiceL3NetworkRef, and pressing the Tab key.
API Response
Sample
Response
{
"inventories": [
{
"l3NetworkUuid": "fc5bd613a8fd45ed9b96ff5d99ae6717",
"networkServiceProviderUuid": "f79573afadc44f4fb83aaf67eeb98cde",
"networkServiceType": "PortForwarding"
}
]
}
Name | Type | Description | Starting Version |
---|---|---|---|
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 0.6 |
inventories | List | See inventories. | 0.6 |
#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. | 0.6 |
description | String | The brief description of the error. | 0.6 |
details | String | The details about the error. | 0.6 |
elaboration | String | The reserved field. Default value: null. | 0.6 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 0.6 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 0.6 |
#inventories
Name | Type | Description | Starting Version |
---|---|---|---|
l3NetworkUuid | String | The L3 network UUID. | 0.6 |
networkServiceProviderUuid | String | The network service provider UUID. | 0.6 |
networkServiceType | String | 0.6 |
SDK Sample
Java
SDK
QueryNetworkServiceL3NetworkRefAction action = new QueryNetworkServiceL3NetworkRefAction();
action.conditions = asList();
action.sessionId = "01368722cb7e4c7eac03e7040f8b73e1";
QueryNetworkServiceL3NetworkRefAction.Result res = action.call();
Python
SDK
QueryNetworkServiceL3NetworkRefAction action = QueryNetworkServiceL3NetworkRefAction()
action.conditions = []
action.sessionId = "237996a7dddf4cf3a42f6ea15893bc76"
QueryNetworkServiceL3NetworkRefAction.Result res = action.call()