Network Services

QueryNetworkServiceProvider

GET/zstack/v1/network-services/providers

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 0305524eb18344ea95193f8283a7212f" \
-X GET http://localhost:8080/zstack/v1/network-services/providers

Queryable Fields

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

API Response

Response Example

{
  "inventories": [
    {
      "uuid": "3cf04a2c5e1a4c4c8947545323e35d6a",
      "name": "SecurityGroup",
      "type": "SecurityGroup",
      "createDate": "Jun 7, 2017 9:21:03 PM",
      "lastOpDate": "Jun 7, 2017 9:21:03 PM",
      "networkServiceTypes": [
        "SecurityGroup"
      ],
      "attachedL2NetworkUuids": []
    }
  ]
}
NameTypeDescriptionStarting Version
errorErrorCodeError code. If not null, the operation failed. If null, the operation succeeded. Seeerror for details.0.6
inventoriesListSeeinventories for details.0.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
uuidStringThe UUID of the resource, uniquely identifying the resource0.6
nameStringThe resource name0.6
descriptionStringThe detailed description of the resource0.6
typeString 0.6
createDateTimestampThe creation time0.6
lastOpDateTimestampThe last modification time0.6
networkServiceTypesSet 0.6
attachedL2NetworkUuidsSet 0.6

SDK Examples

Java SDK

QueryNetworkServiceProviderAction action = new QueryNetworkServiceProviderAction();
action.conditions = asList();
action.sessionId = "3d4bfef1a32241528160058368824670";
QueryNetworkServiceProviderAction.Result res = action.call();

Python SDK

QueryNetworkServiceProviderAction action = QueryNetworkServiceProviderAction()
action.conditions = []
action.sessionId = "db50128c5ab745e68c9b30c52d24ebf9"
QueryNetworkServiceProviderAction.Result res = action.call()