VMware Cloud Director API - PUT-CatalogItem
PUT /catalogItem/{id}
- Operation:
- PUT /catalogItem/{id}
- Description:
- Modify a catalog item.
- Since:
- 0.9
- Input parameters
-
- Consume media type(s):
-
application/vnd.vmware.vcloud.catalogItem+xml
application/vnd.vmware.vcloud.catalogItem+json
- Input type:
- CatalogItemType
- Output parameters
-
CatalogItemType
- Produce media type(s):
-
application/vnd.vmware.vcloud.catalogItem+xml
application/vnd.vmware.vcloud.catalogItem+json
- Output type:
- CatalogItemType
- Examples
-
- Request
-
HTTP 1.1
PUT /api/catalogItem/016ed9ac-c9cc-4455-bcfb-1393edcae000
Headers:
Content-Length: 409
Content-Type: application/vnd.vmware.vcloud.catalogItem+xml; charset=ISO-8859-1
x-vcloud-authorization: 4Ezv8QOCNMOaWCVI6gEHOXEG299HZAsmcB0qrgPRp1I=
Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:CatalogItem
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
name="NewCatalogItem">
<vcloud:Description>Catalog description</vcloud:Description>
<vcloud:Entity
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-fa813d19-3936-4099-bff9-e0ad8d1e34bb"
name="imported"
type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>
</vcloud:CatalogItem>
- Response
-
HTTP/1.1 200 OK
Headers:
Content-Length: 1424
Content-Type: application/vnd.vmware.vcloud.catalogitem+xml;version=5.5
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?><CatalogItem
xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
href="https://vcloud.example.com/api/catalogItem/016ed9ac-c9cc-4455-bcfb-1393edcae000"
id="urn:vcloud:catalogitem:016ed9ac-c9cc-4455-bcfb-1393edcae000"
name="NewCatalogItem"
type="application/vnd.vmware.vcloud.catalogItem+xml"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
<Link
href="https://vcloud.example.com/api/catalog/39867ab4-04e0-4b13-b468-08abcc1de810"
rel="up"
type="application/vnd.vmware.vcloud.catalog+xml"/>
<Link
href="https://vcloud.example.com/api/catalogItem/016ed9ac-c9cc-4455-bcfb-1393edcae000/metadata"
rel="down"
type="application/vnd.vmware.vcloud.metadata+xml"/>
<Link
href="https://vcloud.example.com/api/catalogItem/016ed9ac-c9cc-4455-bcfb-1393edcae000"
rel="edit"
type="application/vnd.vmware.vcloud.catalogItem+xml"/>
<Link
href="https://vcloud.example.com/api/catalogItem/016ed9ac-c9cc-4455-bcfb-1393edcae000"
rel="remove"/>
<Description>Catalog description</Description>
<Entity
href="https://vcloud.example.com/api/vAppTemplate/vappTemplate-fa813d19-3936-4099-bff9-e0ad8d1e34bb"
name="NewCatalogItem"
type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>
<DateCreated>2013-02-14T13:06:46.227+02:00</DateCreated>
<VersionNumber>2</VersionNumber>
</CatalogItem>