Creates a secret for an Alibaba Cloud Service Mesh (ASM) gateway.


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

Request parameters

Parameter Type Required Example Description
Action String Yes CreateGatewaySecret

The operation that you want to perform. Set the value to CreateGatewaySecret.

ServiceMeshId String Yes c08ba3fd1e6484b0f8cc1ad8fe10d****

The ID of the ASM instance.

IstioGatewayName String No ingressgateway

The name of the ASM gateway.

SecretName String No bookinfo-secret

The name of the secret.

Cert String No -----BEGIN CERTIFICATE----- MIIC2DCCAcACA-----END CERTIF****-----

The content of the certificate.

Key String No MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC2ag/Bzcgm****

The private key of the certificate.

Response parameters

Parameter Type Example Description
RequestId String 31d3a0f0-07ed-4f6e-9004-1804498c****

The ID of the request.

SecretCreateRecord Map

The record of creating the secret.


The information of the creation record.

State String success

The result of creating the secret. Valid values:

  • success: The secret was created.
  • fail: The secret failed to be created.
ClusterId String c08ba3fd1e6484b0f8cc1ad8xe10d****

The ID of the cluster on the data plane.

Message String timeout

The error message returned when exceptions occur. Otherwise, an empty value is returned.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "31d3a0f0-07ed-4f6e-9004-1804498c****",
  "SecretCreateRecord" : {
    "key" : {
      "State" : "success",
      "ClusterId" : "c08ba3fd1e6484b0f8cc1ad8xe10d****",
      "Message" : "timeout"

Error codes

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