Lists the resources in a service instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:ListServiceInstanceResources |
list |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The query token. Set this to the NextToken value returned from the previous API call to retrieve the next page of results. |
AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc= |
| MaxResults |
integer |
No |
The number of entries to return on each page. Maximum value: 100. Default value: 20. |
20 |
| ServiceInstanceId |
string |
Yes |
The ID of the service instance. |
si-d8a0cc2a1ee04dce**** |
| Tag |
array<object> |
No |
The resource tags. |
|
|
object |
No |
The resource tags. |
||
| Key |
string |
No |
The tag key of the resource. |
key1 |
| Value |
string |
No |
The tag value of the resource. |
value1 |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| ServiceInstanceResourceType |
string |
No |
The type of the resource in the service instance. Valid values:
|
AliyunResource |
| Filters |
array<object> |
No |
The filter. |
|
|
object |
No |
The filter. |
||
| Name |
string |
No |
The filter name. You can specify one or more filter names to query resources. Valid values:
|
ResourceARN |
| Values |
array |
No |
The filter value. |
|
|
string |
No |
The filter value. |
arn:acs:ecs:*:*:instance/* |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token to start the next query. |
AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc= |
| RequestId |
string |
The request ID. |
B288A0BE-D927-4888-B0F7-B35EF84B6E6F |
| MaxResults |
integer |
The number of entries returned per page. Maximum value: 100. Default value: 20. |
20 |
| Resources |
array<object> |
The resources. |
|
|
object |
The resources. |
||
| ResourceARN |
string |
The Alibaba Cloud Resource Name (ARN) of the resource. |
arn:acs:sag:cn-hangzhou:130920852836****:ccn/ccn-b3qf0q439sq2de**** |
| PayType |
string |
The billing method. Valid values:
|
Subscription |
| RenewStatus |
string |
The renewal status. Valid values:
|
AutoRenewal |
| CreateTime |
string |
The time when the resource was created. |
2022-01-01T12:00:00 |
| ExpireTime |
string |
The expiration time. |
2022-03-01T12:00:00 |
| RenewalPeriod |
integer |
The renewal period. |
1 |
| RenewalPeriodUnit |
string |
The unit of the renewal period. Valid values:
|
Month |
| ProductType |
string |
The product type. |
RDS |
| ProductCode |
string |
The product code. |
rds |
| Status |
string |
The status of the resource. Valid values:
|
CREATE_COMPLETE |
Examples
Success response
JSON format
{
"NextToken": "AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc=",
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
"MaxResults": 20,
"Resources": [
{
"ResourceARN": "arn:acs:sag:cn-hangzhou:130920852836****:ccn/ccn-b3qf0q439sq2de****",
"PayType": "Subscription",
"RenewStatus": "AutoRenewal",
"CreateTime": "2022-01-01T12:00:00",
"ExpireTime": "2022-03-01T12:00:00",
"RenewalPeriod": 1,
"RenewalPeriodUnit": "Month",
"ProductType": "RDS",
"ProductCode": "rds",
"Status": "CREATE_COMPLETE"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.