Synchronizes assets.
Authorization information
The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action
Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:
- 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 keyword: refers to the condition keyword defined by the cloud product itself.
- 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.
Operate | access level | Resource type | conditional keyword | Association operation |
---|---|---|---|---|
yundun-sas:RefreshAssets | Write |
|
| without |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AssetType | string | No | The type of the asset that you want to synchronize.default ecs, Valid values:
| cloud_product |
CloudAssetType | integer | No | The type of the cloud service. Valid values:
| 0 |
CloudAssetSubType | integer | No | The subtype of the cloud service. NoteThe following list describes the subtypes of cloud services. | 0 |
Cloud asset type | Cloud service subtype | Service name | Sub-service name |
---|---|---|---|
0 | 0 | ECS | Instance |
0 | 1 | Disk (storage) | Disk (storage) |
0 | 2 | Security group | Security group |
1 | 0 | SLB | SLB |
1 | 1 | SLB | ALB |
3 | 0 | ApsaraDB RDS | Instance |
4 | 0 | MongoDB | Instance |
5 | 0 | Redis | Instance |
6 | 1 | Container Registry | Enterprise Edition |
6 | 2 | Container Registry | Personal Edition |
8 | 0 | ACK | Cluster |
9 | 0 | VPC | NAT gateway |
9 | 1 | VPC | EIP |
9 | 2 | VPC | VPN |
11 | 0 | ActionTrail | Tracking |
12 | 0 | CDN | Instance |
13 | 0 | Certificate Management Service (formerly SSL Certificates Service) | Certificate |
14 | 0 | Apsara Devops | Organization |
15 | 0 | RAM | Account alias |
15 | 1 | RAM | User |
15 | 2 | RAM | Policy |
15 | 3 | RAM | Group |
16 | 0 | Anti-DDoS | Instance |
17 | 1 | WAF | Domain name |
18 | 0 | OSS | Bucket |
19 | 0 | PolarDB | Cluster |
20 | 0 | ApsaraDB RDS for PostgreSQL | Instance |
21 | 0 | MSE | Cluster |
22 | 0 | NAS | File system |
23 | 0 | DSC | Instance |
24 | 0 | EIP | Anycast EIP |
Response parameters
Example
Normal return example
JSON
Format
{
"RequestId": "340D7FC4-D575-1661-8ACD-CFA7BE57B795"
}
Error codes
Http code | Error code | Error message | Description |
---|---|---|---|
400 | DuplicatedRefresh | Duplicated refresh | - |
400 | NoPermission | no permission | - |
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 API error center.