Changed1
[{"label":"Latest (5.0.0)","version":"latest"},{"version":"4.5.1"},{"version":"4.5.0"},{"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 Domain

Description

Assign Tags to Domain

Request

Request

URL

URL


post
https://sfo-vcf01.rainpole.io/v1/domains/{id}/tags/attach
Copy

Path Parameters

Path Parameters

string
id Required

Domain ID


Request Body

Request Body

TagsForObjectSpec of type(s) application/json Required

tagsForObjectSpec

{
	"object_id": {
		"id": "string",
		"type": "string"
	},
	"tag_ids": [
		"string"
	]
}
object_id Optional

Dynamic Id of vCenter object


array of string
tag_ids Optional

Tags IDs

Response

Response

Response Body

Response 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

Errors

Error
400

Bad Request


Error
500

InternalServerError

Code Samples

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/domains/{id}/tags/attach


[{"label":"Latest (5.0.0)","version":"latest"},{"version":"4.5.1"},{"version":"4.5.0"},{"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
Feedback

Was this page helpful?