Set instance metadata entry
PUT
Sets a single persistent metadata entry for the instance. Creates the namespace and key if they don't exist, or updates if they do.
header
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringThe unique identifier (UUID) of the instance.
Format
uuidnamespace*stringThe namespace for the metadata entry.
key*stringThe key for the metadata entry within the namespace.
application/json- body
Request to set a single persistent metadata entry for an instance.
value*unknownThe value to set. Supports JSON value types.
Response after successfully setting an instance metadata entry.
application/json- response
Response after successfully setting an instance metadata entry. Empty response indicates success.
curl -X PUT 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/metadata/namespaces/string/entries/string' \
-H 'Content-Type: application/json' \
-d '{
"value": null
}'Example Response
{}Was this page helpful?
