All Products
Search
Document Center

Alibaba Cloud Service Mesh:GetDeploymentBySelector

Last Updated:Mar 05, 2024

Queries a list of workloads specified by a label selector.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceMeshIdstringYes

The ID of the Alibaba Cloud Service Mesh (ASM) instance.

ce9fc65def2aa4c918747b9360fbd****
GuestClusterstringNo

The name of the cluster.

cbe80a56d07ed45818b4d39273e23****
NameSpacestringNo

The namespace.

default
LimitlongNo

The maximum number of returned data entries.

10
MarkstringNo

The marker of data queried last time.

eyJ2IjoibWV0YS5rOHMuaW8vdjEiLCJydiI6NzgxODk3MCwic3RhcnQiOiJuZ2lueDQ1N1x1MDAw****
LabelSelectorobjectNo

The label selector information.

stringNo

The label selector.

app=perth-gateway

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

946690C2-41D3-55A0-A501-E2FFAB5F****
DeploymentNameListarray

The queried workloads.

byte

The names of the workloads.

httpbin
Markstring

The end-of-data marker.

eyJ2IjoibWV0YS5rOHMuaW8vdjEiLCJydiI6NTgyMDUzMzk5MCwic3RhcnQiOiJwbXMtYWRhcHRlci1kZGxsXHUwMDA****

Examples

Sample success responses

JSONformat

{
  "RequestId": "946690C2-41D3-55A0-A501-E2FFAB5F****",
  "DeploymentNameList": [
    "httpbin"
  ],
  "Mark": "eyJ2IjoibWV0YS5rOHMuaW8vdjEiLCJydiI6NTgyMDUzMzk5MCwic3RhcnQiOiJwbXMtYWRhcHRlci1kZGxsXHUwMDA****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-09-28Add Operationsee changesets