通过地域 ID,资源ID等参数,查询当前账号在某地域下所有服务实例列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
computenest:ListServiceInstances |
list |
*ServiceInstance
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| MaxResults |
integer |
否 |
分页查询时,每页显示的行数。每页最大 100 行,默认为 20 行。 |
20 |
| NextToken |
string |
否 |
查询凭证(Token),取值为上一次 API 调用返回的 NextToken 参数值。 |
BBBAAfu+XtuBE55iRLHEYYuojI4= |
| Filter |
array<object> |
否 |
过滤器。 |
|
|
object |
否 |
过滤器。 |
||
| Value |
array |
否 |
过滤器值列表。 |
|
|
string |
否 |
过滤器值列表。N 的取值范围:1~10。 |
value1 |
|
| Name |
string |
否 |
过滤器名称,可选择一个或者多个名称进行查询。取值范围:
|
ServiceInstanceId |
| Tag |
array<object> |
否 |
用户自定义标签。 |
|
|
object |
否 |
用户自定义标签。 |
||
| Key |
string |
否 |
标签键。 |
key1 |
| Value |
string |
否 |
标签值。 |
value1 |
| ResourceGroupId |
string |
否 |
资源组 ID。 |
rg-bp67acfmxazb4p**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| NextToken |
string |
下一个查询开始 Token。 |
AAAAAfu+XtuBE55iRLHEYYuojI4= |
| RequestId |
string |
请求 ID。 |
E50287CB-AABF-4877-92C0-289B339A1546 |
| TotalCount |
integer |
结果总数。 |
100 |
| MaxResults |
integer |
分页查询时,每页显示的行数。每页最大 100 行,默认为 20 行。 |
20 |
| ServiceInstances |
array<object> |
服务实例信息。 |
|
|
array<object> |
服务实例信息。 |
||
| Name |
string |
服务实例名称。 |
TestName |
| Status |
string |
服务实例状态。可能值:
|
Deployed |
| Outputs |
string |
服务实例输出信息。 |
{"managementUrl": "http://xx.xx"} |
| UpdateTime |
string |
更新时间。 |
2021-05-20T00:00:00Z |
| Parameters |
string |
服务实例参数信息。 |
{"param":"value"} |
| ServiceInstanceId |
string |
服务实例 ID。 |
si-d6ab3a63ccbb4b17**** |
| CreateTime |
string |
创建时间。 |
2021-05-20T00:00:00Z |
| StatusDetail |
string |
服务实例的部署信息描述。 |
deploy successfully |
| Progress |
integer |
服务实例的部署进度,单位:%。 |
90 |
| Resources |
string |
资源列表。 |
[{"StackId": "stack-xxx"}] |
| TemplateName |
string |
模板名称。 |
模板1 |
| OperatedServiceInstanceId |
string |
被代运维的服务实例 ID。 |
si-d6ab3a63ccbb4b17**** |
| Service |
object |
服务。 |
|
| Status |
string |
服务状态。 |
Online |
| PublishTime |
string |
发布时间。 |
2021-05-21T00:00:00Z |
| Version |
string |
服务版本。 |
1.0 |
| DeployType |
string |
部署类型。可能值:
|
ros |
| ServiceId |
string |
服务 ID。 |
service-0e6fca6a51a54420**** |
| SupplierUrl |
string |
服务商地址。 |
http://example.com |
| ServiceType |
string |
服务类型。可能值:
|
private |
| SupplierName |
string |
服务商名称。 |
A有限公司 |
| ServiceInfos |
array<object> |
服务信息。 |
|
|
object |
服务信息。 |
||
| Locale |
string |
服务实例语言。 |
zh-CN |
| Image |
string |
服务图标地址。 |
https://example.com/service-image/c1c4a559-cc60-4af1-b976-98f356602462.png |
| Name |
string |
服务名称。 |
B数据库 |
| ShortDescription |
string |
服务概述。 |
B是A公司自主设计并研发的开源分布式的关系型数据库 |
| VersionName |
string |
服务商自定义版本名称。 |
版本A |
| Commodity |
object |
商品规格。 |
|
| SaasBoostMetadata |
string |
SaasBoost 配置元数据。 |
{ //开启/关闭SaaS Boost绑定 "Enabled":true/false,默认为false //公网交互地址 "PublicAccessUrl":"https://example.com" } |
| Type |
string |
类型。可能的值:
|
Marketplace |
| OperationStartTime |
string |
代运维开始时间。 |
2021-12-29T06:48:56Z |
| OperationEndTime |
string |
代运维结束时间。 |
2022-01-28T06:48:56Z |
| EnableInstanceOps |
boolean |
服务实例是否有代运维功能。可能的值:
|
true |
| Tags |
array<object> |
用户自定义标签。 |
|
|
object |
用户自定义标签。 |
||
| Key |
string |
标签键。 |
key1 |
| Value |
string |
标签值。 |
value1 |
| Source |
string |
服务实例创建来源。 |
Supplier |
| EndTime |
string |
服务实例过期时间。 |
2022-01-01T12:00:00 |
| ServiceType |
string |
服务类型。可能的值:
|
private |
| PayType |
string |
付费类型。取值范围:
|
Subscription |
| MarketInstanceId |
string |
云市场实例 ID。 |
5827**** |
| ResourceGroupId |
string |
资源组 ID。 |
rg-aekz6scpcxxxxxx |
| BizStatus |
string |
服务实例的业务状态。可能的值:
|
Normal |
| OrderId |
string |
订单 ID。 |
2306175xxxxxxxx |
| SupportTrialToPrivate |
boolean |
是否支持试用转正式 |
|
| PolicyNames |
string |
||
| GrantedPermission |
object |
||
| OperationEndTime |
string |
||
| PolicyNames |
string |
示例
正常返回示例
JSON格式
{
"NextToken": "AAAAAfu+XtuBE55iRLHEYYuojI4=",
"RequestId": "E50287CB-AABF-4877-92C0-289B339A1546",
"TotalCount": 100,
"MaxResults": 20,
"ServiceInstances": [
{
"Name": "TestName",
"Status": "Deployed",
"Outputs": "{\"managementUrl\": \"http://xx.xx\"}",
"UpdateTime": "2021-05-20T00:00:00Z",
"Parameters": "{\"param\":\"value\"}",
"ServiceInstanceId": "si-d6ab3a63ccbb4b17****",
"CreateTime": "2021-05-20T00:00:00Z",
"StatusDetail": "deploy successfully",
"Progress": 90,
"Resources": "[{\"StackId\": \"stack-xxx\"}]",
"TemplateName": "模板1",
"OperatedServiceInstanceId": "si-d6ab3a63ccbb4b17****",
"Service": {
"Status": "Online",
"PublishTime": "2021-05-21T00:00:00Z",
"Version": "1.0",
"DeployType": "ros",
"ServiceId": "service-0e6fca6a51a54420****",
"SupplierUrl": "http://example.com",
"ServiceType": "private",
"SupplierName": "A有限公司",
"ServiceInfos": [
{
"Locale": "zh-CN",
"Image": "https://example.com/service-image/c1c4a559-cc60-4af1-b976-98f356602462.png",
"Name": "B数据库",
"ShortDescription": "B是A公司自主设计并研发的开源分布式的关系型数据库"
}
],
"VersionName": "版本A",
"Commodity": {
"SaasBoostMetadata": "{\n //开启/关闭SaaS Boost绑定\n \"Enabled\":true/false,默认为false\n //公网交互地址\n \"PublicAccessUrl\":\"https://example.com\"\n}",
"Type": "Marketplace"
}
},
"OperationStartTime": "2021-12-29T06:48:56Z",
"OperationEndTime": "2022-01-28T06:48:56Z",
"EnableInstanceOps": true,
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"Source": "Supplier",
"EndTime": "2022-01-01T12:00:00",
"ServiceType": "private",
"PayType": "Subscription",
"MarketInstanceId": "5827****",
"ResourceGroupId": "rg-aekz6scpcxxxxxx",
"BizStatus": "Normal",
"OrderId": "2306175xxxxxxxx",
"SupportTrialToPrivate": true,
"PolicyNames": "",
"GrantedPermission": {
"OperationEndTime": "",
"PolicyNames": ""
}
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。