All Products
Search
Document Center

Alibaba Cloud Service Mesh:CreateGatewaySecret

Last Updated:Mar 05, 2024

Creates a secret for a Service Mesh (ASM) gateway.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ServiceMeshIdstringYes

The ASM instance ID.

c08ba3fd1e6484b0f8cc1ad8fe10d****
IstioGatewayNamestringNo

The name of the ASM gateway.

ingressgateway
SecretNamestringNo

The name of the secret.

bookinfo-secret
CertstringNo

The content of the certificate.

-----BEGIN CERTIFICATE----- MIIC2DCCAcACA-----END CERTIF****-----
KeystringNo

The private key of the certificate.

MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC2ag/Bzcgm****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

31d3a0f0-07ed-4f6e-9004-1804498c****
SecretCreateRecordobject

The record of creating the secret.

object

The information about the creation record.

Statestring

The result of creating the secret. Valid values:

  • success: The secret was created.
  • fail: The secret failed to be created.
success
ClusterIdstring

The ID of the cluster on the data plane.

c08ba3fd1e6484b0f8cc1ad8xe10d****
Messagestring

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

timeout

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history