• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Server Actions
  6. Deleting a Security Group

Deleting a Security Group

Function Description

This interface is used to remove a security group from an ECS.

URI

  • URI format

    POST /v2/{tenant_id}/servers/{server_id}/action

    POST /v2.1/{tenant_id}/servers/{server_id}/action

  • Parameter description

    Parameter

    Mandatory

    Description

    tenant_id

    Yes

    Specifies the tenant or project ID.

    server_id

    Yes

    Specifies the ECS ID.

Extension Description

N/A

Request

Table 1 Request parameter

Parameter

Type

Mandatory

Description

removeSecurityGroup

Dict

Yes

Removes a security group from an ECS.

Table 2 removeSecurityGroup parameter description

Parameter

Type

Mandatory

Description

name

String

Yes

Specifies the name of the security group from which the ECS is removed. The name takes effect for the NICs on the ECS.

Response

N/A

Example Request

{ 
    "removeSecurityGroup": { 
        "name": "sg-test"
    }
}

Returned Value

See General Request Returned Values.