forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
8.9 KiB
8.9 KiB
Removing a Security Group
Function
This API is used to remove a security group from an ECS.
URI
POST /v2.1/{project_id}/servers/{server_id}/action
POST /v2/{project_id}/servers/{server_id}/action
Table 1 describes the parameters in the URI.
Request
Table 2 describes the request parameters.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
removeSecurityGroup |
Yes |
Object |
Specifies the security group to be removed from an ECS. For details, see Table 3. |
Response
None
Example Request
Remove a security group from an ECS.
POST https://{endpoint}/v2.1/{project_id}/servers/{server_id}/action { "removeSecurityGroup": { "name": "sg-test" } }
Example Response
None
Returned Values
Parent topic: Security Group Management