Get External Services

GET/zstack/v1/external/services

Headers

Authorization: OAuth the-session-uuid

Curl Example

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

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
systemTags (Optional)ListquerySystem tags 4.7.0
userTags (Optional)ListqueryUser tags 4.7.0

API Response

Response Example

{
  "inventories": [
    {
      "name": "prometheus",
      "status": "RUNNING",
      "capabilities": {
        "reloadConfig": true
      }
    }
  ]
}
NameTypeDescriptionStarting Version
successboolean 4.7.0
inventoriesListSee inventories for details4.7.0
errorErrorCodeThe error code. If not null, the operation failed. This field is null when the operation succeeds. See error for details4.7.0

inventories

NameTypeDescriptionStarting Version
nameStringResource name4.7.0
statusStringService status4.7.0
capabilitiesExternalServiceCapabilitiesSee capabilities for details4.7.0

capabilities

NameTypeDescriptionStarting Version
reloadConfigbooleanSupports reloading configuration4.7.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.10010.6
descriptionStringA brief description of the error0.6
detailsStringThe detailed error information0.6
elaborationStringReserved field. Default is null0.6
opaqueLinkedHashMapReserved field. Default is null0.6
causeErrorCodeThe root error that caused the current error. If no root error exists, this field is null0.6

SDK Examples

Java SDK

GetExternalServicesAction action = new GetExternalServicesAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetExternalServicesAction.Result res = action.call();

Python SDK

GetExternalServicesAction action = GetExternalServicesAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetExternalServicesAction.Result res = action.call()