Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ModifyCloudVendorAccountAK | update | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AuthIds | string | Yes | The unique ID of the AccessKey pair. Note
You can call the DescribeCloudVendorAccountAKList operation to query the unique ID.
| 2832 |
SecretId | string | No | The AccessKey ID. | S3D6c4O*** |
SecretKey | string | No | The AccessKey secret. Valid values: 1. If AkType is set to primary, specify this parameter based on the following description:
2. If AkType is set to sub, specify this parameter based on the following description:
| AE6SLd**** |
Regions | array | No | The regions that are examined during AccessKey pair authentication. This parameter takes effect only when Vendor is set to AWS. Note
You can call the ListCloudVendorRegions operation to query regions.
| |
regions | string | No | The region that is examined during AccessKey pair authentication. | ap-south-1 |
Status | integer | No | The status of the AccessKey pair. Valid values:
| 0 |
TenantId | string | No | The tenant ID. This parameter takes effect only when Vendor is set to Azure. | 95304a97-339b-4de5-9a7d-cdbffaf**** |
SubscriptionIds | array | No | The subscription IDs. This parameter takes effect only when Vendor is set to Azure. | |
string | No | The subscription ID. | 9b41e7ae-fcbf-4983-aa32-6fb2e***** | |
Domain | string | No | The Active Directory (AD) domain. This parameter takes effect only when Vendor is set to Azure. Valid values:
| global |
AuthModules | array | No | The modules that are associated with the AccessKey pair. | |
string | No | The code of the module that is associated with the AccessKey pair. Valid values:
| HOST | |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6635CED5-4B20-5D2D-94EC-A1C8F9C****",
"Data": {
"Status": 0,
"AuthId": 2158,
"AkType": "sub",
"SecretId": "AE6SLd****",
"ServiceStatus": 0,
"Vendor": "Tencent",
"Message": "The IAM user is forbidden in the currently selected region",
"AuthModules": [
{
"ModuleDisp": "Host",
"ModuleStatement": "Host",
"Module": "HOST",
"ModuleAssetType": "Module.",
"ModuleServiceStatus": 0,
"Message": "ak_domain_error"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-30 | The request parameters of the API has changed | View Change Details |