All Products
Search
Document Center

Security Center:GetCloudAssetDetail

Last Updated:Nov 25, 2024

Obtains the details of cloud 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:GetCloudAssetDetailget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VendorintegerYes

The service provider of the cloud asset. Valid values:

  • 0: Alibaba Cloud.
  • 1: service provider that is unrecognized.
  • 2: data center.
  • 3, 4, 5, and 7: third-party service provider.
  • 8: simple application server.
0
AssetTypeintegerYes

The type of the cloud asset. Valid values:

  • 0: Elastic Compute Service (ECS).
  • 1: Server Load Balancer (SLB).
  • 3: ApsaraDB RDS.
  • 4: ApsaraDB for MongoDB.
  • 5: ApsaraDB for Redis.
  • 6: Container Registry.
  • 8: Container Service for Kubernetes.
  • 9: Virtual Private Cloud (VPC).
  • 11: ActionTrail.
  • 12: Alibaba Cloud CDN (CDN).
  • 13: Certificate Management 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).
  • 25: Identity as a Service (IDaaS)-Employee Identity and Access Management (EIAM).
  • 26: PolarDB-X.
  • 27: Elasticsearch.
14
AssetSubTypeintegerYes

The subtype of the cloud service.

0
CloudAssetInstancesarray<object>No

The details of the assets.

objectNo

The details of the asset.

RegionIdstringNo

The region in which the cloud asset resides.

Note For more information about the mapping between region IDs and region names, see Regions and zones.
cn-hangzhou
InstanceIdstringYes

The instance ID of the cloud asset.

sg-wz9hf86vbzbrrde7****

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

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

CB45CAED-31C3-517A-8619-10F632D3****
Instancesarray<object>

An array that consists of the details of the cloud assets.

Instancesobject

The details of the cloud asset.

RegionIdstring

The region in which the cloud asset resides.

Note For more information about the mapping between region IDs and region names, see Regions and zones.
cn-hanghzou
Vendorinteger

The service provider of the cloud asset. Valid values:

  • 0: Alibaba Cloud.
  • 1: service provider that is unrecognized.
  • 2: data center.
  • 3, 4, 5, and 7: third-party service provider.
  • 8: simple application server.
0
AssetTypeinteger

The type of the cloud asset. Valid values:

  • 0: ECS.
  • 1: SLB.
  • 3: ApsaraDB RDS.
  • 4: ApsaraDB for MongoDB.
  • 5: ApsaraDB for Redis.
  • 6: Container Registry.
  • 8: Container Service for Kubernetes.
  • 9: VPC.
  • 11: ActionTrail.
  • 12: CDN.
  • 13: Certificate Management Service.
  • 14: Apsara Devops.
  • 15: RAM.
  • 16: Anti-DDoS.
  • 17: WAF.
  • 18: OSS.
  • 19: PolarDB.
  • 20: ApsaraDB RDS for PostgreSQL.
  • 21: MSE.
  • 22: NAS.
  • 23: DSC.
  • 24: EIP.
  • 25: IDaaS-EIAM.
  • 26: PolarDB-X.
  • 27: Elasticsearch.
3
AssetSubTypeinteger

The subtype of the cloud asset.

0
InstanceIdstring

The instance ID of the cloud asset.

rm-uf6t6u05n6g48****
InstanceNamestring

The instance name of the cloud asset.

yztest-l***
CreatedTimelong

The time when the instance was created. The value is a timestamp.

1607365213000
InternetIpstring

The public IP address of the instance.

1.2.XX.XX
AlarmStatusstring

Indicates whether alerts are generated for the current cloud asset. Valid values:

  • YES
  • NO
NO
RiskStatusstring

Indicates whether risks are detected on the current cloud asset. Valid values:

  • YES
  • NO
NO
AssetTypeNamestring

The name of the cloud asset type.

RDS
AssetSubTypeNamestring

The name of the cloud asset subtype.

INSTANCE
SecurityInfostring

The security information about the cloud asset.

{\"seriousNum\":0,\"appNum\":0,\"baselineMedium\":0,\"remindNum\":0,\"imageVulNntf\":0,\"cveNum\":0,\"vul\":0,\"uuid\":\"rm-uf6t6u05n6g485o70\",\"emgNum\":0,\"weakPWNum\":0,\"imageMaliciousFileRemind\":0,\"imageBaselineMedium\":0,\"laterVulCount\":0,\"cmsNum\":0,\"imageMaliciousFileSerious\":0,\"agentlessMalicious\":0,\"suspNum\":0,\"imageBaselineHigh\":0,\"asapVulCount\":0,\"imageVulLater\":0,\"agentlessAll\":0,\"sysNum\":0,\"containerLater\":0,\"containerSuspicious\":0,\"imageBaselineNum\":0,\"newSuspicious\":0,\"nntfVulCount\":0,\"scaNum\":0,\"containerNntf\":0,\"health\":0,\"trojan\":0,\"suspicious\":0,\"imageMaliciousFileSuspicious\":0,\"containerRemind\":0,\"baselineLow\":0,\"imageVulAsap\":0,\"imageBaselineLow\":0,\"containerAsap\":0,\"agentlessBaseline\":0,\"agentlessVulSca\":0,\"agentlessVulCve\":0,\"containerSerious\":0,\"baselineHigh\":0,\"account\":0,\"baselineNum\":6}
Countinteger

The number of instances in the list of cloud assets returned.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "CB45CAED-31C3-517A-8619-10F632D3****",
  "Instances": [
    {
      "RegionId": "cn-hanghzou",
      "Vendor": 0,
      "AssetType": 3,
      "AssetSubType": 0,
      "InstanceId": "rm-uf6t6u05n6g48****",
      "InstanceName": "yztest-l***",
      "CreatedTime": 1607365213000,
      "InternetIp": "1.2.XX.XX",
      "AlarmStatus": "NO",
      "RiskStatus": "NO",
      "AssetTypeName": "RDS",
      "AssetSubTypeName": "INSTANCE",
      "SecurityInfo": "{\\\"seriousNum\\\":0,\\\"appNum\\\":0,\\\"baselineMedium\\\":0,\\\"remindNum\\\":0,\\\"imageVulNntf\\\":0,\\\"cveNum\\\":0,\\\"vul\\\":0,\\\"uuid\\\":\\\"rm-uf6t6u05n6g485o70\\\",\\\"emgNum\\\":0,\\\"weakPWNum\\\":0,\\\"imageMaliciousFileRemind\\\":0,\\\"imageBaselineMedium\\\":0,\\\"laterVulCount\\\":0,\\\"cmsNum\\\":0,\\\"imageMaliciousFileSerious\\\":0,\\\"agentlessMalicious\\\":0,\\\"suspNum\\\":0,\\\"imageBaselineHigh\\\":0,\\\"asapVulCount\\\":0,\\\"imageVulLater\\\":0,\\\"agentlessAll\\\":0,\\\"sysNum\\\":0,\\\"containerLater\\\":0,\\\"containerSuspicious\\\":0,\\\"imageBaselineNum\\\":0,\\\"newSuspicious\\\":0,\\\"nntfVulCount\\\":0,\\\"scaNum\\\":0,\\\"containerNntf\\\":0,\\\"health\\\":0,\\\"trojan\\\":0,\\\"suspicious\\\":0,\\\"imageMaliciousFileSuspicious\\\":0,\\\"containerRemind\\\":0,\\\"baselineLow\\\":0,\\\"imageVulAsap\\\":0,\\\"imageBaselineLow\\\":0,\\\"containerAsap\\\":0,\\\"agentlessBaseline\\\":0,\\\"agentlessVulSca\\\":0,\\\"agentlessVulCve\\\":0,\\\"containerSerious\\\":0,\\\"baselineHigh\\\":0,\\\"account\\\":0,\\\"baselineNum\\\":6}",
      "DetailLink": "https://rdsnext.console.aliyun.com/detail/rm-uf6t6u05n6g48****/basicInfo?region=cn-shanghai"
    }
  ],
  "Count": 1
}

Error codes

HTTP status codeError codeError messageDescription
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
No change history