setTags

Classes SoftLayer_Tag
Tags method sldn tag

SoftLayer_Tag::setTags

Set the tags for a given object.

Description

Tag an object by passing in one or more tags separated by a comma. Tag references are cleared out every time this method is called. If your object is already tagged you will need to pass the current tags along with any new ones. To remove all tag references pass an empty string. To remove one or more tags omit them from the tag list. The characters permitted are A-Z, 0-9, whitespace, _ (underscore), - (hypen), . (period), and : (colon). All other characters will be stripped away. You must pass 3 string arguments into this method or you will receive an exception.

Parameters

Name Type Description
tags string List of tags.
keyName string Key name of a tag type.
resourceTableId int $resourceTableId ID of the object being tagged.

Required Headers

Optional Headers

  • None

Return Values

  • boolean
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, string, int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Tag/setTags'