3.1.14. Add security group

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

Assigns the specified security group to the server.

Normal response codes: 200

 3.1.14.1. Request

This table shows the URI parameters for the add security group request:

NameTypeDescription

{tenant_id}

​String

The ID for the tenant or account in a multi-tenancy cloud.

{server_id}

​U​U​ID

The UUID for the server of interest to you.

 

Example 3.29. Add security group: JSON request

{
    "addSecurityGroup" : {
        "name" : "test"
    }
}

 

Example 3.30. Add security group: XML request

<?xml version="1.0" encoding="UTF-8"?>
<addSecurityGroup>
  <name>test</name>
</addSecurityGroup>

This operation does not require a request body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...