获取VM网格化所需的元数据信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| ServiceMeshId | string | 是 | 服务网格ID | ce51a7de4a5144db88a864ed91**** |
| TrustDomain | string | 否 | 信任域。在同时填写命名空间和服务账号时,默认值为cluster.local;否则将被忽略。 | cluster.local |
| Namespace | string | 否 | 命名空间。在同时填写命名空间和服务账号时生效,否则将被忽略。 | hello |
| ServiceAccount | string | 否 | 服务账号。在同时填写命名空间和服务账号时生效,否则将被忽略。 | http-sa |
返回参数
示例
正常返回示例
JSON格式
{
"RequestId": "9522f7c9-63a1-4603-b850-37d12a****",
"VmMetaInfo": {
"TokenPath": "/.../token",
"HostsContent": "....",
"EnvoyEnvPath": "/.../cluster.env",
"TokenContent": "....",
"CertChainPath": "/.../cert-chain.pem",
"RootCertContent": "....",
"KeyContent": "....",
"RootCertPath": "/.../root-cert.pem",
"CertChainContent": "....",
"HostsPath": "/.../hosts",
"KeyPath": "/.../key.pem",
"EnvoyEnvContent": "...."
}
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 404 | ServiceMesh.NotFound | The Service Mesh cluster does not exist. | 服务网格实例不存在 |
访问错误中心查看更多错误码。
调试