调用DescribeServiceMeshDetail获取服务网格详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
servicemesh:DescribeServiceMeshDetail | get |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ServiceMeshId | string | 是 | 服务网格实例 ID。 | c08ba3fd1e6484b0f8cc1ad8fe10d**** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "11fd0027-c27e-41bb-a565-75583054****",
"ServiceMesh": {
"Endpoints": {
"IntranetPilotEndpoint": "192.168.**.**:15011",
"PublicPilotEndpoint": "182.92.**.**:15011",
"IntranetApiServerEndpoint": "https://192.168.**.**:6443",
"PublicApiServerEndpoint": "https://123.56.**.**:6443"
},
"ServiceMeshInfo": {
"Profile": "Default",
"CreationTime": "2020-04-21T09:42:20+08:00",
"UpdateTime": "2020-06-03T14:48:54+08:00",
"ErrorMessage": " error",
"Version": "v1.7.4.0-gfb34ba99-aliyun",
"State": "running",
"ServiceMeshId": "c08ba3fd1e6484b0f8cc1ad8fe10d****",
"Name": "mesh1",
"RegionId": "cn-beijing"
},
"Spec": {
"Network": {
"VpcId": "vpc-2zew0rajjkmxy2369****",
"SecurityGroupId": "sg-2ze384sxttxbctnj****",
"VSwitches": [
"vsw-2ze66z3ntvsej0mdo****"
]
},
"LoadBalancer": {
"PilotPublicLoadbalancerId": "lb-2zesa8qs8kbkj9jkl****",
"PilotPublicEip": true,
"PilotPublicEipId": "",
"CanaryPilotPublicEipId": "",
"ApiServerLoadbalancerId": "lb-2zekaak10uxds44vx****",
"ApiServerPublicEip": true,
"ApiServerPublicEipId": ""
},
"MeshConfig": {
"OPA": {
"RequestMemory": "1024Mi",
"LogLevel": "info",
"Enabled": true,
"LimitMemory": "512Mi",
"RequestCPU": "2",
"LimitCPU": "1"
},
"Prometheus": {
"UseExternal": false,
"ExternalUrl": "http://prometheus:9090"
},
"AccessLog": {
"Enabled": true,
"Project": "k8s-log-b7b05d08670e41ca8c8fc0b7718f*****"
},
"Pilot": {
"Http10Enabled": false,
"TraceSampling": 100,
"Feature": {
"FilterGatewayClusterConfig": false,
"EnableSDSServer": false
},
"ConfigSource": {
"Enabled": false,
"NacosID": "mse-cn-tl326******"
}
},
"MSE": {
"Enabled": false
},
"CustomizedZipkin": false,
"SidecarInjector": {
"EnableNamespacesByDefault": false,
"RequestMemory": "512Mi",
"LimitMemory": "2048Mi",
"RequestCPU": "1000m",
"AutoInjectionPolicyEnabled": true,
"LimitCPU": "4000m",
"InitCNIConfiguration": {
"ExcludeNamespaces": "kube-system,istio-system",
"Enabled": false
},
"SidecarInjectorWebhookAsYaml": "{\"injectedAnnotations\":{\"test/istio-init\":\"runtime/default2\",\"test/istio-proxy\":\"runtime/default\"},\"replicaCount\":2,\"nodeSelector\":{\"beta.kubernetes.io/os\":\"linux\"}}",
"SidecarInjectorNum": 1
},
"IncludeIPRanges": "192.168.0.0/16",
"ExcludeIPRanges": "172.16.0.0",
"ExcludeOutboundPorts": "80,81",
"ExcludeInboundPorts": "80,81",
"Telemetry": true,
"Edition": {
"Name": "Pro",
"IstiodImageTag": "v1.9.7.1-3-gb3f1ab3c9c-pro-aliyun",
"ProxyImageTag": "v1.9.7.1-3-gb3f1ab3c9c-pro-aliyun"
},
"ProtocolSupport": {
"MysqlFilterEnabled": false,
"RedisFilterEnabled": false,
"ThriftFilterEnabled": false,
"DubboFilterEnabled": false
},
"OutboundTrafficPolicy": "ALLOW_ANY",
"Kiali": {
"Enabled": false,
"Url": "http://1.2.**.**:20001"
},
"Tracing": true,
"WebAssemblyFilterDeployment": {
"Enabled": false
},
"EnableLocalityLB": true,
"Audit": {
"Enabled": true,
"Project": "audit-project",
"AuditProjectStatus": "audit_project_not_exist"
},
"Proxy": {
"RequestMemory": "128Mi",
"ClusterDomain": "cluster.domain",
"LimitMemory": "1024Mi",
"RequestCPU": "100m",
"EnableDNSProxying": false,
"LimitCPU": "2000m",
"AccessLogServiceEnabled": false,
"AccessLogServiceHost": "0.0.0.0",
"AccessLogServicePort": 9999,
"AccessLogFormat": "{\"authority_for\":\"%REQ(:AUTHORITY)%\",\"bytes_received\":\"%BYTES_RECEIVED%\",\"bytes_sent\":\"%BYTES_SENT%\",\"downstream_local_address\":\"%DOWNSTREAM_LOCAL_ADDRESS%\",\"downstream_remote_address\":\"%DOWNSTREAM_REMOTE_ADDRESS%\",\"duration\":\"%DURATION%\",\"istio_policy_status\":\"%DYNAMIC_METADATA(istio.mixer:status)%\",\"method\":\"%REQ(:METHOD)%\",\"path\":\"%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%\",\"protocol\":\"%PROTOCOL%\",\"request_id\":\"%REQ(X-REQUEST-ID)%\",\"requested_server_name\":\"%REQUESTED_SERVER_NAME%\",\"response_code\":\"%RESPONSE_CODE%\",\"response_flags\":\"%RESPONSE_FLAGS%\",\"route_name\":\"%ROUTE_NAME%\",\"start_time\":\"%START_TIME%\",\"trace_id\":\"%REQ(X-B3-TRACEID)%\",\"upstream_cluster\":\"%UPSTREAM_CLUSTER%\",\"upstream_host\":\"%UPSTREAM_HOST%\",\"upstream_local_address\":\"%UPSTREAM_LOCAL_ADDRESS%\",\"upstream_service_time\":\"%RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)%\",\"upstream_transport_failure_reason\":\"%UPSTREAM_TRANSPORT_FAILURE_REASON%\",\"user_agent\":\"%REQ(USER-AGENT)%\",\"x_forwarded_for\":\"%REQ(X-FORWARDED-FOR)%\"}",
"AccessLogFile": "/dev/stdout"
},
"K8sNewAPIsSupport": {
"GatewayAPIEnabled": false
},
"LocalityLB": {
"Enabled": false,
"Failover": {
"failover": [
{
"from": "cn-hangzhou",
"to": "cn-shanghai"
}
]
},
"Distribute": [
{
"from": "cn-shanghai",
"to": {
"cn-hangzhou/*": 50,
"cn-shanghai/*": 25,
"cn-zhangjiakou/*": 25
}
},
{
"from": "cn-hangzhou",
"to": {
"cn-hangzhou/*": 50,
"cn-shanghai/*": 25,
"cn-zhangjiakou/*": 25
}
}
]
},
"ControlPlaneLogInfo": {
"Enabled": false,
"Project": "mesh-log-cbeb85a09161b4a26ab73e0ac****",
"LogTTL": 30
},
"ExtraConfiguration": {
"IstioCRHistory": {
"EnableHistory": false
},
"CRAggregationEnabled": false,
"MultiBuffer": {
"Enabled": false,
"PollDelay": "0.02s"
},
"TerminationDrainDuration": "5s",
"Lifecycle": {
"postStart": {
"exec": {
"command": [
"sleep 3s"
]
},
"httpGet": {
"port": "80",
"host": "127.xx.xx.1",
"scheme": "http",
"httpHeaders": [
{
"name": "key",
"value": "value"
}
]
},
"tcpSocket": {
"port": "888",
"host": "127.xx.xx.1"
}
},
"preStop": {
"exec": {
"command": [
"sleep 3s"
]
},
"httpGet": {
"port": "80",
"host": "127.xx.xx.1",
"scheme": "http",
"httpHeaders": [
{
"name": "key",
"value": "value"
}
]
},
"tcpSocket": {
"port": "888",
"host": "127.xx.xx.1"
}
}
},
"SidecarProxyInitResourceLimit": {
"ResourceCPULimit": "2000m",
"ResourceMemoryLimit": "1024Mi"
},
"SidecarProxyInitResourceRequest": {
"ResourceCPURequest": "10m",
"ResourceMemoryRequest": "10Mi"
},
"DiscoverySelectors": [
[
{
"matchExpressions": [
{
"key": "asm-discovery",
"operator": "Exists"
}
]
}
]
],
"OPAScopeInjection": {
"OPAScopeInjected": false
},
"CRAggregationConfiguration": {
"Enabled": true
},
"NFDConfiguration": {
"Enabled": true,
"NFDLabelPruned": true
},
"AccessLogExtraConf": {
"GatewayLifecycle": 30,
"SidecarLifecycle": 30,
"GatewayEnabled": true,
"SidecarEnabled": true
},
"AutoDiagnosis": {
"AutoDiagnosisEnabled": true
},
"AdaptiveXdsConfiguration": {
"Enabled": true,
"EgressResources": {
"Requests": {
"cpu": "100m",
"memory": "256Mi"
},
"Limits": {
"cpu": "200m",
"memory": "512Mi"
}
},
"EgressReplicaCount": 2,
"EgressAutoscaleEnabled": true,
"EgressMinReplica": 1,
"EgressMaxReplica": 2,
"EgressHpaCpu": {
"TargetAverageUtilization": 80
},
"EgressHpaMemory": {
"TargetAverageUtilization": 80
}
},
"IstiodExtraConfiguration": {
"LabelsForOffloadedWorkloads": "name=xx,region=xx",
"PilotEnableQuicListeners": false
},
"Playground": {
"Scene": ""
}
}
}
},
"Clusters": [
"[\"caf089e56daba4c51a8906fe43ea1****\",\"c80f45444b3da447da60a911390c2****\"]"
],
"ClusterSpec": "standard",
"OwnerType": "ackone",
"OwnerId": "cc3e96f249d124eb38b72718ec5*****"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-07-18 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-06-26 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-01-29 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-01-27 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2024-01-27 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-08-31 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-04-13 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2022-08-31 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2021-10-28 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2021-09-06 | OpenAPI 返回结构发生变更 | 查看变更详情 |