调用DescribeNamespaceScopeSidecarConfig查询命名空间级别的Sidecar配置设置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ServiceMeshId | string | 是 | ASM 实例 ID。 | c7120e75a202d4fd8acb028a86b6a**** |
Namespace | string | 否 | 命名空间。 | default |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****",
"ConfigPatches": {
"TerminationDrainDuration": "6s",
"SidecarProxyInitResourceLimit": {
"ResourceCPULimit": "2000 m",
"ResourceMemoryLimit": "50 Mi"
},
"SidecarProxyInitResourceRequest": {
"ResourceCPURequest": "60 m",
"ResourceMemoryRequest": "30 Mi"
},
"SidecarProxyResourceLimit": {
"ResourceCPULimit": "2000 m",
"ResourceMemoryLimit": "50 Mi"
},
"SidecarProxyResourceRequest": {
"ResourceCPURequest": "60 m",
"ResourceMemoryRequest": "30 Mi"
},
"ExcludeOutboundPorts": "81",
"ExcludeOutboundIPRanges": "192.168.1.3/31",
"IncludeOutboundIPRanges": "192.168.1.4/31",
"ExcludeInboundPorts": "82",
"IncludeInboundPorts": "83",
"IncludeOutboundPorts": "84",
"IstioDNSProxyEnabled": true,
"LifecycleStr": "{\"postStart\":{\"exec\":{\"command\":[\"pilot-agent\",\"wait\"]}},\"preStop\":{\"exec\":{\"command\":[\"/bin/sh\",\"-c\",\"sleep 15\"]}}}",
"Concurrency": 2,
"LogLevel": "info",
"HoldApplicationUntilProxyStarts": true,
"ProxyStatsMatcher": {
"InclusionPrefixes": [
"server"
],
"InclusionSuffixes": [
"cluster.outbound"
],
"InclusionRegexps": [
"listener.*.downstream_cx_total"
]
},
"Tracing": {
"Sampling": 99.8,
"CustomTags": {
"test": {
"literal": {
"value": "test"
}
}
},
"MaxPathTagLength": 10
},
"InterceptionMode": "TPROXY",
"ProxyMetadata": {
"key": "\"true\""
},
"SidecarProxyInitAckSloResource": {
"Requests": {
"key": "128Mi"
},
"Limits": {
"key": "2048Mi"
}
},
"SidecarProxyAckSloResource": {
"Requests": {
"key": "128Mi"
},
"Limits": {
"key": "2048Mi"
}
},
"Privileged": false,
"EnableCoreDump": false,
"ReadinessInitialDelaySeconds": 2,
"ReadinessPeriodSeconds": 3,
"ReadinessFailureThreshold": 5
}
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||
---|---|---|---|---|
2023-08-31 | OpenAPI 返回结构发生变更 | 看变更集 | ||
| ||||
2023-03-27 | OpenAPI 返回结构发生变更 | 看变更集 | ||
|