Creates a secret for an Alibaba Cloud Service Mesh (ASM) gateway.
Debugging
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. |
|
Object |
The information of the creation record. |
||
State | String | success |
The result of creating the secret. Valid values:
|
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateGatewaySecret
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&IstioGatewayName=ingressgateway
&SecretName=bookinfo-secret
&Cert=-----BEGIN CERTIFICATE----- MIIC2DCCAcACA-----END CERTIF****-----
&Key=MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC2ag/Bzcgm****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateGatewaySecretResponse>
<RequestId>31d3a0f0-07ed-4f6e-9004-1804498c****</RequestId>
<SecretCreateRecord>
<key>
<State>success</State>
<ClusterId>c08ba3fd1e6484b0f8cc1ad8xe10d****</ClusterId>
<Message>timeout</Message>
</key>
</SecretCreateRecord>
</CreateGatewaySecretResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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.