Fingerprint Metamodel Component
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Retrieves the fingerprint computed from the metamodel metadata of the component element corresponding to componentId. The fingerprint provides clients an efficient way to check if the metadata for a particular component element has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of Component.get.
Request
URLURL
https://{api_host}/rest/com/vmware/vapi/metadata/metamodel/component/id:{component_id}?~action=fingerprint
Parameters
Parameters
string
component_id
Required
Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
MetadataMetamodelComponentFingerprintResponseBody
of type application/json
The fingerprint computed from the metamodel metadata of the component element.
{
"value": "string"
}
string
value
Optional
The fingerprint computed from the metamodel metadata of the component element.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/vapi/metadata/metamodel/component/id:{component_id}?~action=fingerprint
Errors
404
com.vmware.vapi.std.errors.not_found : if the component element associated with componentId is not registered with the infrastructure.