Deletes a secret for an Alibaba Cloud Service Mesh (ASM) gateway.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DeleteGatewaySecret |
The operation that you want to perform. Set the value to DeleteGatewaySecret. |
| 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. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | BD65C0AD-D3C6-48D3-8D93-38D2015C**** |
The ID of the request. |
| SecretDeleteRecord | Map |
The record of deleting the secret. |
|
| Object |
The information of the deletion record. |
||
| State | String | success |
The result of deleting the secret. Valid values:
|
| ClusterId | String | BD65C0AD-D3C6-48D3-8D93-38D2015C**** |
The ID of the cluster. |
| Message | String | timeout |
The error message returned when exceptions occur. Otherwise, an empty value is returned. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteGatewaySecret
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&IstioGatewayName=ingressgateway
&SecretName=bookinfo-secret
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteGatewaySecretResponse>
<RequestId>BD65C0AD-D3C6-48D3-8D93-38D2015C****</RequestId>
<SecretDeleteRecord>
<key>
<State>success</State>
<ClusterId>BD65C0AD-D3C6-48D3-8D93-38D2015C****</ClusterId>
<Message>timeout</Message>
</key>
</SecretDeleteRecord>
</DeleteGatewaySecretResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "BD65C0AD-D3C6-48D3-8D93-38D2015C****",
"SecretDeleteRecord" : {
"key" : {
"State" : "success",
"ClusterId" : "BD65C0AD-D3C6-48D3-8D93-38D2015C****",
"Message" : "timeout"
}
}
}
Error codes
For a list of error codes, visit the API Error Center.