Network Services

QueryNetworkServiceL3NetworkRef

GET/zstack/v1/l3-networks/network-services/refs

Headers

Authorization: OAuth the-session-uuid

Curl Example

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

Run the CLI tool, type QueryNetworkServiceL3NetworkRef and press the Tab key to view all queryable fields and cross-table queryable resource names.

API Response

Response Example

{
  "inventories": [
    {
      "l3NetworkUuid": "fc5bd613a8fd45ed9b96ff5d99ae6717",
      "networkServiceProviderUuid": "f79573afadc44f4fb83aaf67eeb98cde",
      "networkServiceType": "PortForwarding"
    }
  ]
}
NameTypeDescriptionStarting Version
errorErrorCodeError code. If not null, the operation failed. If null, the operation succeeded. See error0.6
inventoriesListSee inventories0.6

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier for the error, for example SYS.1000, HOST.10010.6
descriptionStringBrief description of the error0.6
detailsStringDetailed error information0.6
elaborationStringReserved field, defaults to null0.6
opaqueLinkedHashMapReserved field, defaults to null0.6
causeErrorCodeRoot error: the source error that caused the current error. If there is no original error, this field is null0.6

inventories

NameTypeDescriptionStarting Version
l3NetworkUuidStringThe Distributed Port Group UUID0.6
networkServiceProviderUuidStringThe network service provider UUID0.6
networkServiceTypeString 0.6

SDK Examples

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()