I couldn't find any option to Tag a device while creating the device in Customer portal, so I am Using SoftLayer_Tag::setTags Rest API to tag a device:
POST: https://Username:API_KEY@api.softlayer.com/rest/v3/SoftLayer_Tag/setTags.json
BODY:
resourceTableId : 29756959
keyName : march22
But getting error saying:
{ "error": "You do not have permissions to tag this object.",
"code": "SoftLayer_Exception_PermissionDenied" }
There is a mistake in the way that you are sending the body(tags parameter is missing and there is a wrong value for keyName), try this:
Virtual Guests
Hardware
To set tags you need to check the following:
There is no way to set tags at the moment to place the order, you can set them after submit the order
Another way would be to place the order through API, in which it's possible to set tags through it at the moment to create the server, here an example for VSI:
The SoftLayer_Tag::getTagByTagName method provides information about the tag, not the devices which have being tagged with this.
It will provide information from the tag based on tag name, so it's not necessary to send an identifier, so the correct way for this is:
Replace: $user, $apiKey with you own information and test1 and test2 with the tag names that you would like to retrieve
In case that you would like to retrieve devices, take a look this forum(for Vsis, the same idea should be applied for BMS):
If this doesn't help you, please provide more information about your requirements, in order that I can help you