Querying the Service Mesh List
Function
This API is used to obtain details about all service meshes.
URI
GET /v1/{project_id}/meshes
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
apiVersion |
String |
API version. The value is fixed at v1 and cannot be changed. |
kind |
String |
API type. The value is fixed at MeshList and cannot be changed. |
items |
Array of Table 4 objects |
Service mesh list. |
Parameter |
Type |
Description |
---|---|---|
apiVersion |
String |
API version. The value is fixed at v1 and cannot be changed. |
kind |
String |
API type. The value is fixed at Mesh or mesh and cannot be changed. |
metadata |
Table 5 object |
Basic information about the service mesh. Metadata is a collection of attributes. |
spec |
Table 6 object |
Detailed description of the service mesh. ASM creates or updates the service mesh by spec. |
status |
Table 19 object |
Service mesh status, which is automatically generated by ASM. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Service mesh name. Enter 4 to 64 characters. The name must start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed. |
uid |
String |
Service mesh ID, which is unique and automatically generated after the service mesh is created. |
creationTimestamp |
String |
Time when the service mesh was created. |
Parameter |
Type |
Description |
---|---|---|
type |
String |
Service mesh type. InCluster: service mesh with an in-cluster control plane. The value is InCluster for the service mesh of the Basic edition. |
version |
String |
Service mesh version. |
extendParams |
Table 7 object |
Extensions of the service mesh. |
ipv6Enable |
Boolean |
Whether the service mesh supports IPv6. |
config |
Table 9 object |
Service mesh configuration. |
Parameter |
Type |
Description |
---|---|---|
clusters |
Array of Table 8 objects |
Cluster information in the service mesh. |
Parameter |
Type |
Description |
---|---|---|
clusterID |
String |
Cluster ID, which is unique and can be used to query the cluster to be added. |
Parameter |
Type |
Description |
---|---|---|
proxyConfig |
Table 10 object |
Data plane configuration of the service mesh. |
telemetryConfig |
Table 11 object |
Observability configuration of the service mesh. |
Parameter |
Type |
Description |
---|---|---|
includeIPRanges |
String |
IP address ranges that will be included for outbound traffic redirection. Use commas (,) to separate the IP address ranges. |
excludeIPRanges |
String |
IP address ranges that will be excluded for outbound traffic redirection. Use commas (,) to separate the IP address ranges. |
excludeOutboundPorts |
String |
Ports that will be excluded for outbound traffic redirection. Use commas (,) to separate the ports. |
excludeInboundPorts |
String |
Ports that will be excluded for inbound traffic redirection. Use commas (,) to separate the ports. |
includeOutboundPorts |
String |
Ports that will be included for outbound traffic redirection. Use commas (,) to separate the ports. |
includeInboundPorts |
String |
Ports that will be included for inbound traffic redirection. Use commas (,) to separate the ports. |
Parameter |
Type |
Description |
---|---|---|
metrics |
Table 12 object |
Application metric configuration, which is used to report service mesh metrics. To enable this configuration, you need to install the Cloud Native Cluster Monitoring add-on in the cluster. |
accessLogging |
Table 14 object |
Access log configuration, which is used to report access logs of Istio proxies in the service mesh. To enable this configuration, you need to install the Cloud Native Log Collection add-on in the cluster. |
tracing |
Table 16 object |
Tracing configuration, which is used to report traces in the service mesh. |
Parameter |
Type |
Description |
---|---|---|
aom |
Array of Table 13 objects |
AOM instance configuration. |
Parameter |
Type |
Description |
---|---|---|
logGroupID |
String |
Log group ID of access logs. |
logStreamID |
String |
Log stream ID of access logs. |
Parameter |
Type |
Description |
---|---|---|
randomSamplingPercentage |
Float |
Tracing sampling rate. |
defaultProviders |
Array of strings |
Name of the default provider that tracing reports data to, which must match the name field in extensionProviders or use the preset provider apm-otel of ASM. If apm-otel is used, ensure that APM 2.0 is supported in the current region and the service mesh version is later than 1.18. |
extensionProviders |
Array of Table 17 objects |
User-defined provider. Currently, Zipkin is supported. If you configure the Zipkin provider, ensure that the service mesh version is 1.15 or later. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Provider name. |
zipkin |
Table 18 object |
Self-defined configuration of Zipkin. |
Parameter |
Type |
Description |
---|---|---|
service |
String |
Service address of Zipkin. |
port |
Integer |
Service port of Zipkin. |
Parameter |
Type |
Description |
---|---|---|
phase |
String |
Service mesh status. The options are as follows:
|
updateTimestamp |
String |
Time when the service mesh was updated. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
errorCode |
String |
Error code. Minimum length: 8 Maximum length: 36 |
errorMsg |
String |
Error message. Minimum length: 2 Maximum length: 512 |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
errorCode |
String |
Error code. Minimum length: 8 Maximum length: 36 |
errorMsg |
String |
Error message. Minimum length: 2 Maximum length: 512 |
Example Request
None
Example Response
Status code: 200
The details about all service meshes are obtained.
{
"kind" : "MeshList",
"apiVersion" : "v1",
"items" : [ {
"kind" : "Mesh",
"apiVersion" : "v1",
"metadata" : {
"name" : "mesh-test-api",
"uid" : "a1efdc3e-xxxx-xxxx-xxxx-94bef433347e",
"creationTimestamp" : "2025-04-10T07:48:37Z"
},
"spec" : {
"type" : "InCluster",
"version" : "1.18.7-r5",
"config" : {
"telemetryConfig" : {
"metrics" : {
"aom" : [ {
"instanceID" : "602a5b7e-xxxx-xxxx-xxxx-4268c35b0424"
} ]
},
"accessLogging" : {
"lts" : [ {
"logGroupID" : "b884eaeb-xxxx-xxxx-xxxx-f442de73c392",
"logStreamID" : "362e11e8-xxxx-xxxx-xxxx-0afdc68da7d2"
} ]
},
"tracing" : {
"randomSamplingPercentage" : 1,
"defaultProviders" : [ "zipkin" ],
"extensionProviders" : [ {
"name" : "zipkin",
"zipkin" : {
"service" : "zipkin.monitoring.svc.cluster.local",
"port" : 9411
}
} ]
}
},
"proxyConfig" : {
"includeIPRanges" : "10.247.0.0/16"
}
},
"extendParams" : {
"clusters" : [ {
"clusterID" : "cb0ef541-xxxx-xxxx-xxxx-0255ac1001b7"
} ]
}
},
"status" : {
"phase" : "Running",
"updateTimestamp" : "2025-04-10T07:58:43Z"
}
} ]
}
Status Codes
Status Code |
Description |
---|---|
200 |
The details about all service meshes are obtained. |
400 |
Verification failed due to incorrect parameters for obtaining the details about all service meshes. |
500 |
An error occurs during the service mesh query. |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot