Queries the available clusters in a service mesh.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicemesh:DescribeServiceMeshClusters |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ServiceMeshId |
string |
No |
The service mesh ID. |
cb8963379255149cb98c8686f274x**** |
| Offset |
integer |
No |
The start position of the query. |
20 |
| Limit |
integer |
No |
The maximum number of clusters to return. |
30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
31d3a0f0-07ed-4f6e-9004-1804498c**** |
| Clusters |
array<object> |
A list of clusters. |
|
|
object |
|||
| SgId |
string |
The security group ID. |
sg-bp197668l6iupljy**** |
| VpcId |
string |
The virtual private cloud (VPC) ID. |
vpc-8vbrwmt95b4zf6wf7**** |
| CreationTime |
string |
The time when the cluster was created. |
2020-05-12T15:38:16+08:00 |
| UpdateTime |
string |
The time when the cluster was last modified. |
2020-05-12T15:38:16+08:00 |
| ErrorMessage |
string |
The error message returned if the cluster is in an abnormal state. |
fail |
| State |
string |
The status of the cluster. Valid values:
|
running |
| ServiceMeshId |
string |
The service mesh ID. |
cb8963379255149cb98c8686f274x**** |
| RegionId |
string |
The ID of the region where the cluster resides. |
cn-hangzhou |
| ClusterDomain |
string |
The domain name of the cluster. |
c.com |
| Version |
string |
The version number of the cluster. |
v1.16.6-aliyun.1 |
| ClusterType |
string |
The type of the cluster. |
Ask |
| Name |
string |
The name of the cluster. |
ask1 |
| ClusterId |
string |
The cluster ID. |
c80f45444b3da447da60a911390c2**** |
| ForbiddenFlag |
integer |
The reason why the data plane cluster cannot be added to the ASM instance. Valid values:
|
0 |
| ForbiddenInfo |
string |
The detailed reason why the data plane cluster cannot be added to the ASM instance. The value is a JSON string in the following format:
The preceding example indicates that the pod CIDR block Valid values of
|
[{"cluster":"cdd55bd6e054b4c6ca18ec02614******", "object":"Pod", "cidr":"172.16.0.0/24"},{"cluster":"cfa37fdf7cb1641e1976f8293ac******", "object":"Pod", "cidr":"172.16.0.0/24"}] |
| NumberOfClusters |
integer |
The total number of container service clusters in the current region. |
5 |
Examples
Success response
JSON format
{
"RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****",
"Clusters": [
{
"SgId": "sg-bp197668l6iupljy****",
"VpcId": "vpc-8vbrwmt95b4zf6wf7****",
"CreationTime": "2020-05-12T15:38:16+08:00",
"UpdateTime": "2020-05-12T15:38:16+08:00",
"ErrorMessage": "fail",
"State": "running",
"ServiceMeshId": "cb8963379255149cb98c8686f274x****",
"RegionId": "cn-hangzhou",
"ClusterDomain": "c.com",
"Version": "v1.16.6-aliyun.1",
"ClusterType": "Ask",
"Name": "ask1",
"ClusterId": "c80f45444b3da447da60a911390c2****",
"ForbiddenFlag": 0,
"ForbiddenInfo": "[{\"cluster\":\"cdd55bd6e054b4c6ca18ec02614******\", \"object\":\"Pod\", \"cidr\":\"172.16.0.0/24\"},{\"cluster\":\"cfa37fdf7cb1641e1976f8293ac******\", \"object\":\"Pod\", \"cidr\":\"172.16.0.0/24\"}]"
}
],
"NumberOfClusters": 5
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.