Queries the metadata that is required to add a non-containerized application to an Alibaba Cloud Service Mesh (ASM) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
ServiceMeshId String Yes ce51a7de4a5144db88a864ed91****

The ID of the ASM instance.

TrustDomain String No cluster.local

The trusted domain. Default value: cluster.local. This parameter is valid only after you set the Namespace and the ServiceAccount parameters.

Namespace String No hello

The namespace. This parameter is valid only after you set the Namespace and the ServiceAccount parameters.

ServiceAccount String No http-sa

The service account. This parameter is valid only after you set the Namespace and the ServiceAccount parameters.

Response parameters

Parameter Type Example Description
RequestId String 9522f7c9-63a1-4603-b850-37d12a****

The ID of the request.

VmMetaInfo Struct

The metadata that is required to add a non-containerized application to the ASM instance.

CertChainContent String ....

The content of the CertChain file.

CertChainPath String /.../cert-chain.pem

The path of the CertChain file.

EnvoyEnvContent String ....

The content of the EnvoyEnv file.

EnvoyEnvPath String /.../cluster.env

The path of the EnvoyEnv file.

HostsContent String ....

The content of the hosts file.

HostsPath String /.../hosts

The path of the hosts file.

KeyContent String ....

The content of the key file.

KeyPath String /.../key.pem

The path of the key file.

RootCertContent String ....

The content of the RootCert file.

RootCertPath String /.../root-cert.pem

The path of the RootCert file.

TokenContent String ....

The content of the Token file.

TokenPath String /.../token

The path of the Token file.

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetVmMeta
&Namespace=hello
&ServiceAccount=http-sa
&ServiceMeshId=ce51a7de4a5144db88a864ed91****
&<Common request parameters>

Sample success responses

XML format

<VmMetaInfo>
    <TokenPath>/.../token</TokenPath>
    <EnvoyEnvContent>.... </EnvoyEnvContent>
    <CertChainContent>.... </CertChainContent>
    <CertChainPath>/.../cert-chain.pem</CertChainPath>
    <HostsPath>/.../hosts</HostsPath>
    <RootCertContent>.... </RootCertContent>
    <RootCertPath>/.../root-cert.pem</RootCertPath>
    <TokenContent>.... </TokenContent>
    <HostsContent>.... </HostsContent>
    <EnvoyEnvPath>/.../cluster.env</EnvoyEnvPath>
    <KeyContent>.... </KeyContent>
    <KeyPath>/.../key.pem</KeyPath>
</VmMetaInfo>
<RequestId>9522f7c9-63a1-4603-b850-37d12a****</RequestId>

JSON format

{"VmMetaInfo":{"TokenPath":"/.../token","EnvoyEnvContent":"....","CertChainContent":"....","CertChainPath":"/.../cert-chain.pem","HostsPath":"/.../hosts","RootCertContent":"....","RootCertPath":"/.../root-cert.pem","TokenContent":"....","HostsContent":"....","EnvoyEnvPath":"/.../cluster.env","KeyContent":"....","KeyPath":"/.../key.pem"},"RequestId":"9522f7c9-63a1-4603-b850-37d12a****"}

Error codes

HttpCode Error code Error message Description
404 ServiceMesh.NotFound The Service Mesh cluster does not exist. The error message returned because the ASM instance does not exist.

For a list of error codes, visit the API Error Center.