All Products
Search
Document Center

Security Center:ListKspmInstances

Last Updated:Mar 20, 2026
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Get KSPM Asset List

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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:ListKspmInstancesget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The ID of the region where the instance is located.

cn-hangzhou
CriteriastringNo

Set the conditions for searching assets. This parameter is in JSON format, and case sensitivity should be noted when entering parameters. It includes the following fields:

  • name: Search item
  • value: Value of the search item
  • logicalExp: The relationship between search items when multiple conditions are used. Values:
    • OR: Indicates an or relationship between multiple conditions.
    • AND: Indicates an and relationship between multiple conditions.
Note Supports using region, instance name, instance ID, alarm status, risk status, and tag search conditions.
[{"name":"vulStatus","value":"YES","logicalExp":"AND"}]
LogicalExpstringNo

Set the logical relationship that takes effect between multiple search conditions. Values:

  • OR: Indicates an or relationship between multiple search conditions.
  • AND: Indicates an and relationship between multiple search conditions.
OR
PageSizeintegerNo

The maximum number of data entries displayed per page during pagination. The default value is 20.

20
CurrentPageintegerNo

Set which page to start displaying the query results from. The default value is 1, indicating that the display starts from the first page.

1
CloudAssetTypesarray<object>No

List of Kubernetes asset type information.

objectNo

Kubernetes asset type information.

AssetTypeintegerNo

Type of the asset. Values:

  • 0: Workload
  • 1: Service
  • 2: Namespace
  • 3: Authorization
  • 4: Storage
  • 5: Container
  • 6: Network
  • 7: Configuration
  • 8: Policies
0
AssetSubTypeintegerNo

Subtype of the product. Asset type-subtype. Values:

  • 0: Workload
    • 0: Pod
    • 1: DaemonSet
    • 2: StatefulSet
  • 1: Service
    • 0: Service
  • 2: Namespace
    • 0: Namespace
  • 3: Authorization
    • 0: Role
    • 1: ClusterRole
    • 2: ClusterRoleBinding
    • 3: RoleBinding
    • 4: ServiceAccount
  • 4: Storage
    • 0: PersistentVolume
    • 1: PersistentVolumeClaim
    • 2: StorageClass
  • 5: Container
    • 0: Image
  • 6: Network
    • 0: Route
    • 0: Ingress
  • 7: Configuration
    • 0: ConfigMap
  • 8: Policies
    • 0: LimitRanges
    • 1: ResourceQuota
0
VendorintegerNo

Vendor of the asset. The fixed value is 200.

200

Response parameters

ParameterTypeDescriptionExample
object

Request return data.

Successboolean

Indicates whether the API call was successful. Values:

  • true: Success
  • false: Failure
true
RequestIdstring

The ID of this call request, a unique identifier generated by Alibaba Cloud for the request, which can be used to troubleshoot and pinpoint issues.

7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1
PageInfoobject

Page information for pagination queries.

CurrentPageinteger

The page number of the current page in a pagination query.

1
PageSizeinteger

The maximum number of items to display per page in a pagination query.

20
TotalCountinteger

The total number of data items found.

55
Countinteger

The number of data items displayed on the current page.

4
Instancesarray<object>

List of Kubernetes asset information.

Instancesobject

Kubernetes asset information.

RegionIdstring

The ID of the region where the asset is located.

cn-hanghzou
Vendorinteger

The vendor of the asset. This value is fixed at 200.

200
AssetTypeinteger

The type of the asset.

1
AssetSubTypestring

The subtype of the asset.

1
InstanceIdstring

The instance ID.

rm-uf6t6u05n6g48****
InstanceNamestring

The name of the instance.

yztest-l***
CreatedTimelong

The timestamp when the instance was created. Unit: milliseconds.

1607365213000
InternetIpstring

The public IP address of the instance.

1.2.XX.XX
AlarmStatusstring

Indicates whether the asset has security alarms. Values:

  • YES: There are security alarms
  • NO: There are no security alarms
NO
RiskStatusstring

Indicates whether the asset has security risks. Values:

  • YES: There are security risks
  • NO: There are no security risks
NO
AssetTypeNamestring

The name of the asset type.

Workload
AssetSubTypeNamestring

The name of the asset subtype.

Pod
SecurityInfostring

Security information of the 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}
Tagsarray

List of resource tags.

Tagsstring

Resource tag.

AI

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DDCAE1",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 55,
    "Count": 4
  },
  "Instances": [
    {
      "RegionId": "cn-hanghzou",
      "Vendor": 200,
      "AssetType": 1,
      "AssetSubType": 1,
      "InstanceId": "rm-uf6t6u05n6g48****",
      "InstanceName": "yztest-l***",
      "CreatedTime": 1607365213000,
      "InternetIp": "1.2.XX.XX",
      "AlarmStatus": "NO",
      "RiskStatus": "NO",
      "AssetTypeName": "Workload",
      "AssetSubTypeName": "Pod",
      "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}",
      "Tags": [
        "AI"
      ]
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400AccountIdNotExistAccountId not exist-
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
2026-03-19Add OperationView Change Details