Update Metadata Entry
Update the value of a single key-value metadata entry.
Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/entities/{id}/metadata/{metadataId}
COPY
Path Parameters
string
id
Required
the URN of the entity the entry is attached to.
string
metadataId
Required
a metadata vcloud id urn
Request Body
MetadataEntry
of type(s)
application/json
Optional
Show optional properties
{
"keyValue": {
"domain": "string",
"key": "string",
"value": {
"value": {},
"type": "string"
}
}
}
{
"id": "string",
"persistent": false,
"readOnly": false,
"keyValue": {
"domain": "string",
"namespace": "string",
"key": "string",
"value": {
"value": {},
"type": "string"
}
}
}
Responses
200
OK
Returns
MetadataEntry
of type(s)
application/json;version=39.1
"MetadataEntry Object"
string
id
Optional
id
boolean
persistent
Optional
Persistent entries can be copied over on some entity operation, for example: | Creating a copy of an Org VDC | Capturing a vApp to a template | Instantiating a catalog item as a VM
boolean
readOnly
Optional
The kind of level of access organizations of the entry's domain have
keyValue
Required
Containins core metadata entry data.
202
The request have been accepted and the task to monitor the request is in the Location header.
Operation doesn't return any data structure
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"keyValue":"{}"}' https://{api_host}/cloudapi/1.0.0/entities/{id}/metadata/{metadataId}
Availability
Added in 37.0
On This Page
Defined Entity Operations
POST
Migrate Defined Entities Of Type
GET
Get Defined Entity
PUT
Update Defined Entity
DELETE
Delete Defined Entity
GET
Get Defined Entity Full Contents
POST
Resolve Defined Entity
GET
Get Metadata
POST
Create Metadata Entry
GET
Get Metadata Entry
PUT
Update Metadata Entry
DELETE
Delete Metadata Entry
GET
Get Metadata File Content
GET
Get Defined Entities By Entity Type Id
GET
Get Defined Entities By Entity Type
GET
Get Defined Entities By Entity Type No Version Specified
GET
Get Defined Entities By Interface
GET
Get Defined Entities By Interface Id