Queries the clusters that can be added to a Service Mesh (ASM) instance.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ServiceMeshId | string | No | The ASM instance ID. | cb8963379255149cb98c8686f274x**** |
Offset | long | No | The position where the query starts. | 20 |
Limit | long | No | The maximum number of entries per page. | 30 |
Response parameters
Examples
Sample success responses
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
For a list of error codes, visit the Service error codes.