analogsea (version 0.8.0)

tag_resource: Tag a resource

Description

Tag a resource

Usage

tag_resource(
  name,
  resource_id = NULL,
  resource_type = "droplet",
  resources = NULL,
  ...
)

Arguments

name

(character) Name of the tag

resource_id

(integer) a droplet id

resource_type

(character) only "droplet" for now. Default: "droplet"

resources

(list) instead of resource_id and resource_type you can pass in a list to this parameter. see examples

...

Additional options passed down to POST

Value

logical, TRUE if successful

Examples

Run this code
# NOT RUN {
d <- droplet_create()
tag_resource(name = "stuffthings", resource_id = d$id,
  resource_type = "droplet")
tag_resource("stuffthings", resources = list(list(resource_id = d$id,
  resource_type = "droplet")))
# }

Run the code above in your browser using DataCamp Workspace