Viewing Agency Information
Function
check service linked agency
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/agency
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition Project ID, which is used to specify the project that a resource belongs to. You can query the resources of a project by project ID. You can obtain the project ID from the API or console. Obtaining the Project ID Constraints N/A Range N/A Default Value N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. You can call the IAM API to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
|
X-Language |
No |
String |
Language. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
create_agency |
Boolean |
Whether a cloud service agency has been created for the current account. |
|
role_descriptions |
Array of Role objects |
Role list. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Role ID. |
|
display_name |
String |
Role name. |
|
role_description |
String |
Role description. |
|
description |
String |
Description. |
|
scope |
String |
Role scope. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Definition Error code. Range N/A |
|
message |
String |
Definition Error description. Range N/A |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Definition Error code. Range N/A |
|
message |
String |
Definition Error description. Range N/A |
Example Requests
None
Example Responses
Status code: 403
Insufficient permissions.
{
"error_code" : "csb.00180004",
"error_msg" : "Permission iam:agencies:getAgency is required to query agency details."
}
Status code: 500
Internal system error.
{
"error_code" : "csb.00180001",
"error_msg" : "System busy. Try again later."
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Required permissions. |
|
403 |
Insufficient permissions. |
|
500 |
Internal system error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank 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