Querying the Provisioning Status of a Dependent Service
Function
This API is used to query the provisioning status of dependent services, such as AOM, CCE, Cloud Eye, and SWR-EE. It is used when you need to check whether the dependent services of ModelArts have been provisioned. Before using this API, ensure that you have logged in to the system and have the query permission. The provisioning status of each dependent service (enabled or disabled) is returned in the query result. If you do not have the query permission or the service is abnormal, an error message is returned.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permissions are required for calling this API.
URI
GET /v1/{project_id}/services/status
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: N/A Range: N/A Default Value: N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| service_codes | Yes | String | Definition: Service code list. Separate service codes with commas (,), for example, aom,cce,ces,swr-ee. Constraints: N/A Range: N/A Default Value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| service_list | Array of ServiceStatusItem objects | Definition: Service enabling status. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| service_name | String | Definition: Service code. Range: N/A |
| status | Boolean | Definition: Service enabling status. Range: N/A |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error message. |
Example Requests
None
Example Responses
Status code: 200
{
"service_list" : [ {
"service_name" : "aom",
"status" : true
}, {
"service_name" : "cce",
"status" : false
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Service status. |
| 400 | Error response |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot