new Tag(api_keyopt)
Parameters:
Name |
Type |
Attributes |
Description |
api_key |
string
|
<optional>
|
|
- Source:
Methods
delete(aws_id, asset_idopt, tags, cb)
delete tags from an account or asset
Parameters:
Name |
Type |
Attributes |
Description |
aws_id |
number
|
|
the aws id (owner_id) of the account |
asset_id |
string
|
<optional>
|
the id of the asset |
tags |
Array.<string>
|
object
|
|
the tags to delete |
cb |
stringCallback
|
|
called with a message saying how many tags were deleted |
- Source:
set(aws_id, asset_idopt, tags, cb)
adds/updates tags for an account or asset
Parameters:
Name |
Type |
Attributes |
Description |
aws_id |
number
|
|
the aws id (owner_id) of the account |
asset_id |
string
|
<optional>
|
the id of the asset |
tags |
object
|
|
the tags to set |
cb |
stringCallback
|
|
called with a message saying how many tags were set |
- Source:
set_api_key(api_key)
sets the api key to use when making calls to CloudHealth's API
Parameters:
Name |
Type |
Description |
api_key |
string
|
|
- Source: