Queries for a list of services based on specified parameters, such as a region ID and service IDs. The returned information includes the service status, service version, and publish time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:ListServices |
list |
*Service
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| MaxResults |
integer |
No |
The number of entries to return on each page. Maximum value: 100. Default value: 20. |
10 |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. Set this parameter to the NextToken value returned by a previous call. |
BBBAAfu+XtuBE55iRLHEYYuojI4= |
| AllVersions |
boolean |
No |
Specifies whether to return all versions of the service. The default value is false. If this parameter is set to false, only the default version of each service is returned. |
false |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aekzkt5bu**** |
| Filter |
array<object> |
No |
The filter. |
|
|
object |
No |
The filter. |
||
| Value |
array |
No |
The filter values. |
|
|
string |
No |
The filter values. You can specify up to 10 values. |
1 |
|
| Name |
string |
No |
The name of the filter. You can query by one or more filter names. Valid values:
|
Status |
| Tag |
array<object> |
No |
The custom tags. |
|
|
object |
No |
The custom tags. |
||
| Key |
string |
No |
The tag key. |
key1 |
| Value |
string |
No |
The tag value. |
value1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token that is used to retrieve the next page of results. |
AAAAAfu+XtuBE55iRLHEYYuojI4= |
| RequestId |
string |
The request ID. |
51945B04-6AA6-410D-93BA-236E0248B104 |
| TotalCount |
integer |
The total number of entries that meet the filter criteria. |
100 |
| MaxResults |
integer |
The number of entries returned on each page. Maximum value: 100. Default value: 20. |
1 |
| Services |
array<object> |
The list of services. |
|
|
object |
The list of services. |
||
| Status |
string |
The service status. Valid values:
|
Online |
| DefaultVersion |
boolean |
Indicates whether the service is the default version. Valid values:
|
true |
| PublishTime |
string |
The time when the service was published. |
2021-05-21T00:00:00Z |
| Version |
string |
The service version. |
1.0 |
| DeployType |
string |
The deployment type. Valid values:
|
ros |
| ServiceId |
string |
The service ID. |
service-70a3b15bb62643**** |
| SupplierUrl |
string |
The URL of the service provider. |
http://example.com |
| ServiceType |
string |
The service type. Valid values:
|
private |
| SupplierName |
string |
The name of the service provider. |
A有限公司 |
| ServiceInfos |
array<object> |
The service information. |
|
|
object |
The service information. |
||
| Locale |
string |
The language of the service configuration. Valid values:
|
zh-CN |
| Image |
string |
The URL of the service icon. |
http://img.example.oss.url |
| Name |
string |
The service name. |
B数据库 |
| ShortDescription |
string |
A brief description of the service. |
B是A公司自主设计并研发的开源分布式的关系型数据库 |
| CommodityCode |
string |
The commodity code of the service in Alibaba Cloud Marketplace. |
cmjj00**** |
| CreateTime |
string |
The time when the service was created. |
2021-05-20T00:00:00Z |
| UpdateTime |
string |
The time when the service was last updated. |
2021-05-21T00:00:00Z |
| ShareType |
string |
The sharing type. Valid values:
|
Public |
| ApprovalType |
string |
The approval type for service usage requests. Valid values:
|
AutoPass |
| VersionName |
string |
The custom version name defined by the service provider. |
v2.0.0 |
| Tags |
array<object> |
The service tags. |
|
|
object |
The service tags. |
||
| Key |
string |
The tag key. |
key1 |
| Value |
string |
The tag value. |
value1 |
| ArtifactId |
string |
The artifact ID. |
artifact-21ca53ac16a643**** |
| ArtifactVersion |
string |
The artifact version. |
draft |
| SourceImage |
string |
The source image. |
centos_7 |
| RelationType |
string |
The artifact association type. Valid values:
|
ServiceDeployment |
| TrialType |
string |
The trial policy. Valid values:
|
Trial |
| TenantType |
string |
The tenant type for the managed service. Valid values:
|
SingleTenant |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aekz5b555**** |
| SourceServiceId |
string |
The ID of the source service for distribution. |
service-70a3b15bb62643**** |
| SourceServiceVersion |
string |
The version of the source service for distribution. |
1 |
| SourceSupplierName |
string |
The name of the source service provider for distribution. |
SourceSupplier |
| ResellServiceId |
string |
The ID of the distributed service. |
service-70a3b15bb62643**** |
| LatestResellSourceServiceVersion |
string |
The latest version of the source service for distribution. |
1 |
| ResellApplyStatus |
string |
The distribution authorization status of the service. Valid values:
|
CanApply |
| VirtualInternetService |
string |
Indicates whether the service is a virtual Internet service. Valid values:
|
false |
| Categories |
string |
The service category. |
OpenSource |
| ServiceDiscoverable |
string |
Indicates whether the service is discoverable. Valid values:
|
INVISIBLE |
| HasDraft |
boolean |
Indicates whether the service has a draft version. Valid values:
|
true |
| HasBeta |
boolean |
Indicates whether the service has a beta version. Valid values:
|
true |
| BuildInfo |
string |
The information about the service build. |
{ "RepoUrl": "https://github.com/user/example.git", "Brancn": "main"} |
| Commodity |
object |
The commodity specifications. |
|
| CommodityCode |
string |
The commodity code. |
cmjj00**** |
| Type |
string |
The type. Valid values:
|
Marketplace |
| SaasBoostMetadata |
string |
The metadata of the SaaS Boost configuration. |
{ //开启/关闭SaaS Boost绑定 "Enabled":true/false,默认为false //公网交互地址 "PublicAccessUrl":"https://example.com" } |
| ServiceLocaleConfigs |
array<object> |
The multi-language configurations of the service. |
|
|
object |
The multi-language configurations of the service. |
||
| OriginalValue |
string |
The original value of the business information. |
Service Name |
| ZhValue |
string |
The Chinese value of the business information. |
服务名称 |
| EnValue |
string |
The English value of the business information. |
Service Name |
Examples
Success response
JSON format
{
"NextToken": "AAAAAfu+XtuBE55iRLHEYYuojI4=",
"RequestId": "51945B04-6AA6-410D-93BA-236E0248B104",
"TotalCount": 100,
"MaxResults": 1,
"Services": [
{
"Status": "Online",
"DefaultVersion": true,
"PublishTime": "2021-05-21T00:00:00Z",
"Version": "1.0",
"DeployType": "ros",
"ServiceId": "service-70a3b15bb62643****",
"SupplierUrl": "http://example.com",
"ServiceType": "private",
"SupplierName": "A有限公司",
"ServiceInfos": [
{
"Locale": "zh-CN",
"Image": "http://img.example.oss.url",
"Name": "B数据库",
"ShortDescription": "B是A公司自主设计并研发的开源分布式的关系型数据库"
}
],
"CommodityCode": "cmjj00****",
"CreateTime": "2021-05-20T00:00:00Z",
"UpdateTime": "2021-05-21T00:00:00Z",
"ShareType": "Public",
"ApprovalType": "AutoPass",
"VersionName": "v2.0.0",
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"ArtifactId": "artifact-21ca53ac16a643****",
"ArtifactVersion": "draft",
"SourceImage": "centos_7",
"RelationType": "ServiceDeployment",
"TrialType": "Trial",
"TenantType": "SingleTenant",
"ResourceGroupId": "rg-aekz5b555****",
"SourceServiceId": "service-70a3b15bb62643****",
"SourceServiceVersion": "1",
"SourceSupplierName": "SourceSupplier",
"ResellServiceId": "service-70a3b15bb62643****",
"LatestResellSourceServiceVersion": "1",
"ResellApplyStatus": "CanApply",
"VirtualInternetService": "false",
"Categories": "OpenSource",
"ServiceDiscoverable": "INVISIBLE",
"HasDraft": true,
"HasBeta": true,
"BuildInfo": "{ \"RepoUrl\": \"https://github.com/user/example.git\", \"Brancn\": \"main\"}",
"Commodity": {
"CommodityCode": "cmjj00****",
"Type": "Marketplace",
"SaasBoostMetadata": "{\n //开启/关闭SaaS Boost绑定\n \"Enabled\":true/false,默认为false\n //公网交互地址\n \"PublicAccessUrl\":\"https://example.com\"\n}"
},
"ServiceLocaleConfigs": [
{
"OriginalValue": "Service Name\n",
"ZhValue": "服务名称",
"EnValue": "Service Name\n"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.