Querying Whether an Agency Exists
Function
Check whether you have entrusted SWR to call CCE and CCI through triggers. This API is automatically called by the console. You do not need to manually call it.
Constraints
None
Calling Method
For details, see Calling APIs.
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 permission required for calling this API.
URI
GET /v2/manage/agency
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. You can obtain it by calling the IAM API for obtaining a user token. The token is the value of X-Subject-Token in the response header. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| domain_id | String | Tenant ID. |
| is_agency | Boolean | Whether an agency has been created. |
Example Requests
Querying whether an agency exists
GET https://{endpoint}/v2/manage/agency Example Responses
Status code: 200
{
"domain_id" : "test",
"is_agency" : true
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Query succeeded. |
| 401 | Authorization failed. |
| 500 | Internal error. |
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