All Products
Search
Document Center

Security Center:RefreshAssets

Last Updated:Jan 28, 2023

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.
Operateaccess levelResource typeconditional keywordAssociation operation
yundun-sas:RefreshAssetsWrite
  • SecurityCenter
    acs:yundun-sas:*:{#accountId}:*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
AssetTypestringNo

The type of the asset that you want to synchronize.default ecs, Valid values:

  • cloud_product: Alibaba Cloud service
  • ecs: Elastic Compute Service (ECS) instance
  • container_image: container image
cloud_product
CloudAssetTypeintegerNo

The type of the cloud service. Valid values:

  • 0: ECS
  • 1: Server Load Balancer (SLB)
  • 3: ApsaraDB RDS
  • 4: ApsaraDB for MongoDB (MongoDB)
  • 5: ApsaraDB for Redis (Redis)
  • 6: Container Registry
  • 8: Container Service for Kubernetes (ACK)
  • 9: Virtual Private Cloud (VPC)
  • 11: ActionTrail
  • 12: Alibaba Cloud CDN (CDN)
  • 13: Certificate Management Service (formerly SSL Certificates Service)
  • 14: Apsara Devops
  • 15: Resource Access Management (RAM)
  • 16: Anti-DDoS
  • 17: Web Application Firewall (WAF)
  • 18: Object Storage Service (OSS)
  • 19: PolarDB
  • 20: ApsaraDB RDS for PostgreSQL
  • 21: Microservices Engine (MSE)
  • 22: Apsara File Storage NAS (NAS)
  • 23: Data Security Center (DSC)
  • 24: Elastic IP Address (EIP)
0
CloudAssetSubTypeintegerNo

The subtype of the cloud service.

NoteThe following list describes the subtypes of cloud services.
0
Cloud asset typeCloud service subtypeService nameSub-service name
00ECSInstance
01Disk (storage)Disk (storage)
02Security groupSecurity group
10SLBSLB
11SLBALB
30ApsaraDB RDSInstance
40MongoDBInstance
50RedisInstance
61Container RegistryEnterprise Edition
62Container RegistryPersonal Edition
80ACKCluster
90VPCNAT gateway
91VPCEIP
92VPCVPN
110ActionTrailTracking
120CDNInstance
130Certificate Management Service (formerly SSL Certificates Service)Certificate
140Apsara DevopsOrganization
150RAMAccount alias
151RAMUser
152RAMPolicy
153RAMGroup
160Anti-DDoSInstance
171WAFDomain name
180OSSBucket
190PolarDBCluster
200ApsaraDB RDS for PostgreSQLInstance
210MSECluster
220NASFile system
230DSCInstance
240EIPAnycast EIP

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

340D7FC4-D575-1661-8ACD-CFA7BE57B795

Example

Normal return example

JSONFormat

{
  "RequestId": "340D7FC4-D575-1661-8ACD-CFA7BE57B795"
}

Error codes

Http codeError codeError messageDescription
400DuplicatedRefreshDuplicated refresh-
400NoPermissionno permission-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the API error center.