Changed2
[{"label":"Latest (4.5.0)","version":"latest"},{"version":"4.4.0"},{"version":"4.3.1"},{"link":"https://developer.vmware.com/apis/1127/vmware-cloud-foundation","version":"4.3"},{"link":"https://developer.vmware.com/apis/1078/vmware-cloud-foundation","version":"4.2"},{"link":"https://developer.vmware.com/apis/1033/vmware-cloud-foundation","version":"4.1"},{"link":"https://developer.vmware.com/apis/1003/vmware-cloud-foundation","version":"4.0.1"},{"link":"https://developer.vmware.com/apis/939/vmware-cloud-foundation","version":"4.0"}]
vcf-for-vxrail
Assign Tags To Host
DescriptionAssign Tags to Host
Request
URLURL
https://sfo-vcf01.rainpole.io/v1/hosts/{id}/tags/attach
Path Parameters
Path Parameters
string
id
Required
id
Request Body
Request Body
{
"object_id": {
"id": "string",
"type": "string"
},
"tag_ids": [
"string"
]
}
array of
string
tag_ids
Optional
Tags IDs
Response
Response
Response BodyResponse Body
200 OK
Returns
TagAssignmentResult
of type(s) application/json
{
"defaultErrorMessages": [
"string"
],
"success": false
}
array of
string
defaultErrorMessages
Optional
Default Error messages for Assign/Detach Tags operation
boolean
success
Optional
Success value of Assign/Detach Tags operation
Errors
Error
400
Bad Request
Error
500
InternalServerError
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"object_id":{"id":"string","type":"string"},"tag_ids":["string"]}' https://sfo-vcf01.rainpole.io/v1/hosts/{id}/tags/attach
[{"label":"Latest (4.5.0)","version":"latest"},{"version":"4.4.0"},{"version":"4.3.1"},{"link":"https://developer.vmware.com/apis/1127/vmware-cloud-foundation","version":"4.3"},{"link":"https://developer.vmware.com/apis/1078/vmware-cloud-foundation","version":"4.2"},{"link":"https://developer.vmware.com/apis/1033/vmware-cloud-foundation","version":"4.1"},{"link":"https://developer.vmware.com/apis/1003/vmware-cloud-foundation","version":"4.0.1"},{"link":"https://developer.vmware.com/apis/939/vmware-cloud-foundation","version":"4.0"}]
vcf-for-vxrail
What's changed in 4.4.0?
INTRODUCED
New in this version
On This Page
Hosts Operations
post
Assign Tags To Host
Introduced
get
Attachable Tags To Host
Introduced
post
Detach Tags From Host
Introduced
get
get
get
get
Get Host Tag Manager URL
Introduced
get
get
Get Tags Assigned To Host
Introduced
post