Available in VPC
Delete ACG.
Syntax
The deleteAccessControlGroup syntax is as follows:
./ncloud vserver deleteAccessControlGroup \
--vpcNo <vpc-no> \
--accessControlGroupNo <acg-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running deleteAccessControlGroup.
Required options
The following options are required for deleteAccessControlGroup.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Required | VPC number
|
--accessControlGroupNo |
String | Required | ACG number |
Common options
For information about the options common to all vserver subcommands, see Server (VPC) options.
Examples
If an ACG deletion request is successful, the identification information and termination status of the ACG are returned.
Command
The command example is as follows:
./ncloud vserver deleteAccessControlGroup \
--vpcNo 12345678 \
--accessControlGroupNo 67890123 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"deleteAccessControlGroupResponse": {
"totalRows": 1,
"accessControlGroupList": [
{
"accessControlGroupNo": "67890123",
"accessControlGroupName": "test-acg-01",
"isDefault": false,
"vpcNo": "12345678",
"accessControlGroupStatus": {
"code": "TERMT",
"codeName": "Deletion"
},
"accessControlGroupDescription": "ACG for web tier"
}
],
"requestId": "29012345-6789-abcd-2345-901234567890",
"returnCode": "0",
"returnMessage": "success"
}
}