3.16.2. Create aggregate

 
MethodURIDescription
POST/v2/{tenant_id}/os-aggregates

Creates an aggregate.

Normal response codes: 200200

 3.16.2.1. Request

This table shows the URI parameters for the create aggregate request:

NameTypeDescription

{tenant_id}

​String

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

 

Example 3.117. Create aggregate: XML request

<?xml version="1.0" encoding="UTF-8"?>
<aggregate name="name" availability_zone="nova" />

 

Example 3.118. Create aggregate: JSON request

{
    "aggregate":
    {
        "name": "name",
        "availability_zone": "nova"
    }
}

This operation does not require a request body.

 3.16.2.2. Response

 

Example 3.119. Create aggregate: XML response

<?xml version='1.0' encoding='UTF-8'?>
<aggregate>
  <name>name</name>
  <availability_zone>nova</availability_zone>
  <deleted>False</deleted>
  <created_at>2012-10-01 18:50:35.506667</created_at>
  <updated_at>None</updated_at>
  <deleted_at>None</deleted_at>
  <id>1</id>
</aggregate>

 

Example 3.120. Create aggregate: JSON response

{
    "aggregate": {
        "availability_zone": "nova",
        "created_at": "2012-10-01T18:50:27.781065",
        "deleted": false,
        "deleted_at": null,
        "id": 1,
        "name": "name",
        "updated_at": null
    }
}

This operation does not return a response body.

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


loading table of contents...