Add a New Group

 
MethodURIDescription
POST/v2.0/RAX-GRPADM/groups​{?marker,​limit,​name}

Adds a group.

Normal response codes: 201

Error response codes: identityFault (400, 500, ), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), itemNotFound (404), badMediaType (415)

 Request

This table shows the header parameters for the add a new group request:

NameTypeDescription

X-Auth-Token

​String

(Required)

A valid authentication token for an administrative user.

This table shows the body parameters for the add a new group request:

NameTypeDescription

group

​Group​For​Create

(Required)

 

Example 6.1. Add a New Group: XML request

<group name="group1" xmlns="http://docs.rackspace.com/identity/api/ext/RAX-KSGRP/v1.0">
    <description>A Description of the group</description>
</group>

 

Example 6.2. Add a New Group: JSON request

{
  "RAX-KSGRP:group": {
      "name": "group1",
      "description": "A Description of the group"
  }
}

 Response

This table shows the header parameters for the add a new group response:

NameTypeDescription

Location

​Any​U​RI

(Required)

The full URL to the new group is returned in the Location header.

 

Example 6.3. Add a New Group: XML response

<group id="1234" name="group1" xmlns="http://docs.rackspace.com/identity/api/ext/RAX-KSGRP/v1.0">
    <description>A Description of the group</description>
</group>

 

Example 6.4. Add a New Group: JSON response

{
  "RAX-KSGRP:group": {
      "id": "1234",
      "name": "group1",
      "description": "A Description of the group"
  }
}

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

loading table of contents...