DigitalOcean.Tag (digital_ocean v0.3.0)
Link to this section Summary
Functions
Create a tag.
Delete a tag.
Retrieve details about a specific tag.
Retrieve a list of tags.
Tag the given resources with specific tag.
Untag the given resources with specific tag.
Link to this section Functions
Link to this function
create(opts)
Specs
create(Keyword.t()) :: DigitalOcean.Operation.t()
Create a tag.
Examples
iex> DigitalOcean.Tag.create(
...> name: "mytag",
...> ) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }
Link to this function
delete(tag_name)
Specs
delete(String.t()) :: DigitalOcean.Operation.t()
Delete a tag.
Examples
iex> DigitalOcean.Domain.delete("mytag") |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }
Link to this function
get(tag_name)
Specs
get(String.t()) :: DigitalOcean.Operation.t()
Retrieve details about a specific tag.
Examples
iex> DigitalOcean.Domain.get("mytag") |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }
Link to this function
list(opts \\ [])
Specs
list(Keyword.t()) :: DigitalOcean.Operation.t()
Retrieve a list of tags.
Examples
iex> DigitalOcean.Domain.list() |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }
Link to this function
tag_resources(tag_name, opts)
Specs
tag_resources(String.t(), Keyword.t()) :: DigitalOcean.Operation.t()
Tag the given resources with specific tag.
Examples
iex> DigitalOcean.Tag.tag_resources("mytag", resources: [resource_id: "123", resource_name: "mydroplet"]) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }
Link to this function
untag_resources(tag_name, opts)
Specs
untag_resources(String.t(), Keyword.t()) :: DigitalOcean.Operation.t()
Untag the given resources with specific tag.
Examples
iex> DigitalOcean.Tag.untag_resources("mytag", resources: [resource_id: "123", resource_name: "mydroplet"]) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }