Create Catalog
To create a catalog, use the following request:
1
2
| POST /catalogs.xml
POST /catalogs.json
|
XML Request Example
1
| curl -i -X POST -u user:userpass --url http://onapp.test/catalogs.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<vcloud_catalog><organization_id>11</organization_id><data_store_id>9</data_store_id><vdc_id>6</vdc_id><label>TestCatalog</label><description>This is a description of a catalog</description></vcloud_catalog>'
|
JSON Request Example
1
| curl -i -X POST -u user:userpass --url http://onapp.test/catalogs.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"vcloud_catalog": {"organization_id": "11", "data_store_id": "9", "vdc_id": "6", "label": "TestCatalog", "description": "This is a description of a catalog"}}'
|
Where:
organization_id - the ID of the organization to which the catalog will be assigned
data_store_id - the ID of the data store to which the catalog will be assigned
vdc_id - the ID of the resource pool to which the catalog will be assigned
label - the name of the catalog
description - the description of the catalog