All Products
Search
Document Center

Security Center:RefreshAssets

更新時間:Nov 13, 2024

Synchronizes assets.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:RefreshAssetsnone
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AssetTypestringNo

The type of the asset that you want to synchronize. 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: File Storage NAS (NAS)
  • 23: Data Security Center (DSC)
  • 24: Elastic IP Address (EIP)
0
CloudAssetSubTypeintegerNo

The subtype of the cloud service.

Note The following list describes the subtypes of cloud services.
0
VendorintegerNo

The type of the server. Valid values:

  • 0: an asset provided by Alibaba Cloud
  • 1: a third-party cloud asset
  • 2: an asset in a data center
  • 3, 4, 5, and 7: an asset provided by another cloud
  • 8: a lightweight asset
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

ParameterTypeDescriptionExample
object
RequestIdstring

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

340D7FC4-D575-1661-8ACD-CFA7BE57B795

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status 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 Service error codes.

Change history

Change timeSummary of changesOperation
2023-09-20The Error code has changed. The request parameters of the API has changedView Change Details