DeleteGateway
Deletes the specified gateway.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayId |
string |
Yes |
The gateway ID. |
dg-nmz841r7b681**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
200 |
| Data |
string |
The result of the operation. |
SUCCESS |
| ErrorMsg |
string |
The error message. |
Gateway exception, please launch local dg first |
| RequestId |
string |
The Request ID. Use this ID to trace logs and troubleshoot issues. |
8F29E3E9-2847-53BF-ADF0-130E3CEA5C63 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| AccessDeniedDetail |
object |
Details about the authorization failure. |
|
| AuthAction |
string |
The API operation. |
dms-dg:DeleteGateway |
| AuthPrincipalDisplayName |
string |
The display name of the principal that requested authorization. |
23894333884425**** |
| AuthPrincipalOwnerId |
string |
The ID of the principal's owner. |
1218522260143*** |
| AuthPrincipalType |
string |
The principal type. |
SubUser |
| EncodedDiagnosticMessage |
string |
The full, encrypted diagnostic message. |
AQEAAAAAaYFcQjgzQThBRTMyLUE0RTItNUVDNy1BNkI3LTZFMjVCMUEyQUEzRQ== |
| NoPermissionType |
string |
The cause of the authorization failure. |
ExplicitDeny |
| PolicyType |
string |
The policy type that caused the authorization failure. |
COST_OPTIMIZED |
Examples
Success response
JSON format
{
"Code": "200",
"Data": "SUCCESS",
"ErrorMsg": "Gateway exception, please launch local dg first",
"RequestId": "8F29E3E9-2847-53BF-ADF0-130E3CEA5C63",
"Success": true,
"AccessDeniedDetail": {
"AuthAction": "dms-dg:DeleteGateway",
"AuthPrincipalDisplayName": "23894333884425****",
"AuthPrincipalOwnerId": "1218522260143***",
"AuthPrincipalType": "SubUser",
"EncodedDiagnosticMessage": "AQEAAAAAaYFcQjgzQThBRTMyLUE0RTItNUVDNy1BNkI3LTZFMjVCMUEyQUEzRQ==",
"NoPermissionType": "ExplicitDeny",
"PolicyType": "COST_OPTIMIZED"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.