调用DescribeServiceMeshDetail接口获取服务网格详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
ServiceMeshId String c08ba3fd1e6484b0f8cc1ad8fe10d****

服务网格ID

返回数据

名称 类型 示例值 描述
RequestId String 11fd0027-c27e-41bb-a565-75583054****

请求ID

ServiceMesh Struct

服务网格详情

Clusters List ["caf089e56daba4c51a8906fe43ea1****","c80f45444b3da447da60a911390c2****"]

集群列表

Endpoints Struct

端点详情

IntranetApiServerEndpoint String https://192.168.xx.xx:6443

API Server 地址(内网)

IntranetPilotEndpoint String 192.168.xx.xx:15011

Istio Pilot 地址(内网)

PublicApiServerEndpoint String https://123.56.xx.xx:6443

API Server 地址(公网)

PublicPilotEndpoint String 182.92.xx.xx:15011

Istio Pilot 地址(公网)

ServiceMeshInfo Struct

服务网格基本信息

CreationTime String 2020-04-21T09:42:20+08:00

服务网格创建时间

ErrorMessage String error

异常信息

Name String mesh1

服务网格名称

RegionId String cn-beijing

服务网格所在地域ID

ServiceMeshId String c08ba3fd1e6484b0f8cc1ad8fe10d****

服务网格ID

State String running

服务网格状态

UpdateTime String 2020-06-03T14:48:54+08:00

服务网格最后修改时间

Version String v1.7.4.0-gfb34ba99-aliyun

服务网格版本号

Spec Struct

服务网格规格信息

LoadBalancer Struct

负载均衡信息

ApiServerLoadbalancerId String lb-2zekaak10uxds44vx****

公网地址暴露API Server对应的负载均衡ID

ApiServerPublicEip Boolean true

是否使用公网地址暴露API Server

PilotPublicEip Boolean true

是否使用公网地址暴露Istio Pilot

PilotPublicLoadbalancerId String lb-2zesa8qs8kbkj9jkl****

公网地址暴露Istio Pilot对应的负载均衡ID

MeshConfig Struct

服务网格配置信息

AccessLog Struct

访问日志配置

Enabled Boolean true

是否启用访问日志

Audit Struct

服务网格审计信息

Enabled Boolean true

是否启用网格审计

Project String audit-project

服务网格审计对应的日志项目

CustomizedZipkin Boolean false

是否启用自定义zipkin

Edition String default

网格实例版本类型(例如:标准版、Pro版等)

EnableLocalityLB Boolean true

是否启用服务就近访问

IncludeIPRanges String *

包含的IP地址段

Kiali Struct

Kiali配置

Enabled Boolean false

是否启用Kiali(必须先开启采集Prometheus 监控指标,当该项配置更新为false时,系统自动设置本项值为false)

Url String http://1.2.3.4:20001

Kiali服务地址

OPA Struct

开放策略代理(OPA)插件信息

Enabled Boolean true

是否集成开放策略代理(OPA)插件

LimitCPU String 1

OPA代理容器的CPU资源限制

LimitMemory String 512Mi

OPA代理容器的内存资源限制

LogLevel String info

OPA代理容器日志级别

RequestCPU String 2

OPA代理容器的CPU资源请求

RequestMemory String 1024Mi

OPA代理容器的内存资源请求

OutboundTrafficPolicy String ALLOW_ANY

出向流量策略

Pilot Struct

链路追踪采样信息

Http10Enabled Boolean false

是否支持HTTP1.0

TraceSampling Float 100

是否启用链路追踪

Prometheus Struct

Prometheus配置

ExternalUrl String http://prometheus:9090

Prometheus服务地址(在启用外部Prometheus时,系统自动填充)

UseExternal Boolean false

是否启用外部Prometheus

Proxy Struct

Proxy配置

ClusterDomain String cluster.domain

信任域

LimitCPU String 2000m

CPU限制资源

LimitMemory String 1024Mi

内存限制资源

RequestCPU String 100m

CPU请求资源

RequestMemory String 128Mi

内存请求资源

SidecarInjector Struct

Sidecar注入器的配置

AutoInjectionPolicyEnabled Boolean true

是否开启通过Pod Annotations实现自动注入Sidecar

EnableNamespacesByDefault Boolean false

是否为所有命名空间开启自动注入功能

InitCNIConfiguration Struct

CNI配置

Enabled Boolean false

启用CNI

ExcludeNamespaces String kube-system,istio-system

排除的命名空间

LimitCPU String 4000m

Sidecar注入器Pod的CPU限制资源

LimitMemory String 2048Mi

Sidecar注入器Pod的内存限制资源

RequestCPU String 1000m

Sidecar注入器Pod的CPU请求资源

RequestMemory String 512Mi

Sidecar注入器Pod的内存请求资源

SidecarInjectorWebhookAsYaml String {"injectedAnnotations":{"test/istio-init":"runtime/default2","test/istio-proxy":"runtime/default"},"replicaCount":2,"nodeSelector":{"beta.kubernetes.io/os":"linux"}}

其他自动注入Sidecar的配置(YAML格式)

Telemetry Boolean true

是否开启采集Prometheus 监控指标(建议使用阿里云Prometheus监控

Tracing Boolean true

是否启用链路追踪(需要开通 阿里云链路追踪服务

Network Struct

服务网格网络配置信息

SecurityGroupId String sg-2ze384sxttxbctnj****

安全组ID

VSwitches List vsw-2ze66z3ntvsej0mdo****

虚拟交换机ID

VpcId String vpc-2zew0rajjkmxy2369****

专有网络ID

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeServiceMeshDetail
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&<公共请求参数>

正常返回示例

XML格式

<RequestId>11fd0027-c27e-41bb-a565-75583054****</RequestId>
<ServiceMesh>
    <Endpoints>
        <PublicPilotEndpoint>182.92.xx.xx:15011</PublicPilotEndpoint>
        <IntranetApiServerEndpoint>https://192.168.xx.xx:6443</IntranetApiServerEndpoint>
        <PublicApiServerEndpoint>https://123.56.xx.xx:6443</PublicApiServerEndpoint>
        <IntranetPilotEndpoint>192.168.xx.xx:15011</IntranetPilotEndpoint>
    </Endpoints>
    <Clusters>["caf089e56daba4c51a8906fe43ea1****","c80f45444b3da447da60a911390c2****"]</Clusters>
    <ServiceMeshInfo>
        <Version>v1.7.4.0-gfb34ba99-aliyun</Version>
        <ServiceMeshId>c08ba3fd1e6484b0f8cc1ad8fe10d****</ServiceMeshId>
        <State>running</State>
        <UpdateTime>2020-06-03T14:48:54+08:00</UpdateTime>
        <CreationTime>2020-04-21T09:42:20+08:00</CreationTime>
        <RegionId>cn-beijing</RegionId>
        <ErrorMessage> error</ErrorMessage>
        <Name>mesh1</Name>
    </ServiceMeshInfo>
    <Spec>
        <MeshConfig>
            <Pilot>
                <Http10Enabled>false</Http10Enabled>
                <TraceSampling>100</TraceSampling>
            </Pilot>
            <AccessLog>
                <Enabled>true</Enabled>
            </AccessLog>
            <OPA>
                <LimitMemory>512Mi</LimitMemory>
                <RequestMemory>1024Mi</RequestMemory>
                <LimitCPU>1</LimitCPU>
                <Enabled>true</Enabled>
                <RequestCPU>2</RequestCPU>
                <LogLevel>info</LogLevel>
            </OPA>
            <Prometheus>
                <UseExternal>false</UseExternal>
                <ExternalUrl>http://prometheus:9090</ExternalUrl>
            </Prometheus>
            <OutboundTrafficPolicy>ALLOW_ANY</OutboundTrafficPolicy>
            <Telemetry>true</Telemetry>
            <Edition>default</Edition>
            <SidecarInjector>
                <LimitMemory>2048Mi</LimitMemory>
                <AutoInjectionPolicyEnabled>true</AutoInjectionPolicyEnabled>
                <RequestMemory>512Mi</RequestMemory>
                <LimitCPU>4000m</LimitCPU>
                <EnableNamespacesByDefault>false</EnableNamespacesByDefault>
                <InitCNIConfiguration>
                    <Enabled>false</Enabled>
                    <ExcludeNamespaces>kube-system,istio-system</ExcludeNamespaces>
                </InitCNIConfiguration>
                <RequestCPU>1000m</RequestCPU>
                <SidecarInjectorWebhookAsYaml>{"injectedAnnotations":{"test/istio-init":"runtime/default2","test/istio-proxy":"runtime/default"},"replicaCount":2,"nodeSelector":{"beta.kubernetes.io/os":"linux"}}</SidecarInjectorWebhookAsYaml>
            </SidecarInjector>
            <Audit>
                <Project>audit-project</Project>
                <Enabled>true</Enabled>
            </Audit>
            <Proxy>
                <LimitMemory>1024Mi</LimitMemory>
                <RequestMemory>128Mi</RequestMemory>
                <ClusterDomain>cluster.domain</ClusterDomain>
                <LimitCPU>2000m</LimitCPU>
                <RequestCPU>100m</RequestCPU>
            </Proxy>
            <Kiali>
                <Enabled>false</Enabled>
                <Url>http://1.2.3.4:20001</Url>
            </Kiali>
            <IncludeIPRanges>*</IncludeIPRanges>
            <EnableLocalityLB>true</EnableLocalityLB>
            <Tracing>true</Tracing>
            <CustomizedZipkin>false</CustomizedZipkin>
        </MeshConfig>
        <Network>
            <VpcId>vpc-2zew0rajjkmxy2369****</VpcId>
            <SecurityGroupId>sg-2ze384sxttxbctnj****</SecurityGroupId>
            <VSwitches>vsw-2ze66z3ntvsej0mdo****</VSwitches>
        </Network>
        <LoadBalancer>
            <ApiServerLoadbalancerId>lb-2zekaak10uxds44vx****</ApiServerLoadbalancerId>
            <PilotPublicEip>true</PilotPublicEip>
            <PilotPublicLoadbalancerId>lb-2zesa8qs8kbkj9jkl****</PilotPublicLoadbalancerId>
            <ApiServerPublicEip>true</ApiServerPublicEip>
        </LoadBalancer>
    </Spec>
</ServiceMesh>

JSON格式

{"RequestId":"11fd0027-c27e-41bb-a565-75583054****","ServiceMesh":{"Endpoints":{"PublicPilotEndpoint":"182.92.xx.xx:15011","IntranetApiServerEndpoint":"https://192.168.xx.xx:6443","PublicApiServerEndpoint":"https://123.56.xx.xx:6443","IntranetPilotEndpoint":"192.168.xx.xx:15011"},"Clusters":"[\"caf089e56daba4c51a8906fe43ea1****\",\"c80f45444b3da447da60a911390c2****\"]","ServiceMeshInfo":{"Version":"v1.7.4.0-gfb34ba99-aliyun","ServiceMeshId":"c08ba3fd1e6484b0f8cc1ad8fe10d****","State":"running","UpdateTime":"2020-06-03T14:48:54+08:00","CreationTime":"2020-04-21T09:42:20+08:00","RegionId":"cn-beijing","ErrorMessage":" error","Name":"mesh1"},"Spec":{"MeshConfig":{"Pilot":{"Http10Enabled":"false","TraceSampling":"100"},"AccessLog":{"Enabled":"true"},"OPA":{"LimitMemory":"512Mi","RequestMemory":"1024Mi","LimitCPU":"1","Enabled":"true","RequestCPU":"2","LogLevel":"info"},"Prometheus":{"UseExternal":"false","ExternalUrl":"http://prometheus:9090"},"OutboundTrafficPolicy":"ALLOW_ANY","Telemetry":"true","Edition":"default","SidecarInjector":{"LimitMemory":"2048Mi","AutoInjectionPolicyEnabled":"true","RequestMemory":"512Mi","LimitCPU":"4000m","EnableNamespacesByDefault":"false","InitCNIConfiguration":{"Enabled":"false","ExcludeNamespaces":"kube-system,istio-system"},"RequestCPU":"1000m","SidecarInjectorWebhookAsYaml":"{\"injectedAnnotations\":{\"test/istio-init\":\"runtime/default2\",\"test/istio-proxy\":\"runtime/default\"},\"replicaCount\":2,\"nodeSelector\":{\"beta.kubernetes.io/os\":\"linux\"}}"},"Audit":{"Project":"audit-project","Enabled":"true"},"Proxy":{"LimitMemory":"1024Mi","RequestMemory":"128Mi","ClusterDomain":"cluster.domain","LimitCPU":"2000m","RequestCPU":"100m"},"Kiali":{"Enabled":"false","Url":"http://1.2.3.4:20001"},"IncludeIPRanges":"*","EnableLocalityLB":"true","Tracing":"true","CustomizedZipkin":"false"},"Network":{"VpcId":"vpc-2zew0rajjkmxy2369****","SecurityGroupId":"sg-2ze384sxttxbctnj****","VSwitches":"vsw-2ze66z3ntvsej0mdo****"},"LoadBalancer":{"ApiServerLoadbalancerId":"lb-2zekaak10uxds44vx****","PilotPublicEip":"true","PilotPublicLoadbalancerId":"lb-2zesa8qs8kbkj9jkl****","ApiServerPublicEip":"true"}}}}

错误码

访问错误中心查看更多错误码。