GetTags
Returns a list of tags in your DigitalOcean account, with the ability to filter and sort the results. If no filters are specified, all tags will be returned.
Using GetTags
function getTags(args: GetTagsArgs, opts?: InvokeOptions): Promise<GetTagsResult>function get_tags(filters=None, sorts=None, opts=None)func GetTags(ctx *Context, args *GetTagsArgs, opts ...InvokeOption) (*GetTagsResult, error)public static class GetTags {
public static Task<GetTagsResult> InvokeAsync(GetTagsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Filters
List<Pulumi.
Digital Ocean. Inputs. Get Tags Filter Args> Filter the results. The
filterblock is documented below.- Sorts
List<Pulumi.
Digital Ocean. Inputs. Get Tags Sort Args> Sort the results. The
sortblock is documented below.
- Filters
[]Get
Tags Filter Filter the results. The
filterblock is documented below.- Sorts
[]Get
Tags Sort Sort the results. The
sortblock is documented below.
- filters
Get
Tags Filter[] Filter the results. The
filterblock is documented below.- sorts
Get
Tags Sort[] Sort the results. The
sortblock is documented below.
- filters
List[Get
Tags Filter] Filter the results. The
filterblock is documented below.- sorts
List[Get
Tags Sort] Sort the results. The
sortblock is documented below.
GetTags Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
-
List<Pulumi.
Digital Ocean. Outputs. Get Tags Tag> - Filters
List<Pulumi.
Digital Ocean. Outputs. Get Tags Filter> - Sorts
List<Pulumi.
Digital Ocean. Outputs. Get Tags Sort>
- Id string
The provider-assigned unique ID for this managed resource.
-
[]Get
Tags Tag - Filters
[]Get
Tags Filter - Sorts
[]Get
Tags Sort
- id string
The provider-assigned unique ID for this managed resource.
-
Get
Tags Tag[] - filters
Get
Tags Filter[] - sorts
Get
Tags Sort[]
- id str
The provider-assigned unique ID for this managed resource.
-
List[Get
Tags Tag] - filters
List[Get
Tags Filter] - sorts
List[Get
Tags Sort]
Supporting Types
GetTagsFilter
- Key string
Filter the tags by this key. This may be one of
name,total_resource_count,droplets_count,images_count,volumes_count,volume_snapshots_count, ordatabases_count.- Values List<string>
Only retrieves tags which keys has value that matches one of the values provided here.
GetTagsSort
GetTagsTag
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Databases
Count int A count of the database clusters that the tag is applied to.
- Droplets
Count int A count of the Droplets the tag is applied to.
- Images
Count int A count of the images that the tag is applied to.
- Name string
The name of the tag.
- Total
Resource intCount A count of the total number of resources that the tag is applied to.
- Volume
Snapshots intCount A count of the volume snapshots that the tag is applied to.
- Volumes
Count int A count of the volumes that the tag is applied to.
- Databases
Count int A count of the database clusters that the tag is applied to.
- Droplets
Count int A count of the Droplets the tag is applied to.
- Images
Count int A count of the images that the tag is applied to.
- Name string
The name of the tag.
- Total
Resource intCount A count of the total number of resources that the tag is applied to.
- Volume
Snapshots intCount A count of the volume snapshots that the tag is applied to.
- Volumes
Count int A count of the volumes that the tag is applied to.
- databases
Count number A count of the database clusters that the tag is applied to.
- droplets
Count number A count of the Droplets the tag is applied to.
- images
Count number A count of the images that the tag is applied to.
- name string
The name of the tag.
- total
Resource numberCount A count of the total number of resources that the tag is applied to.
- volume
Snapshots numberCount A count of the volume snapshots that the tag is applied to.
- volumes
Count number A count of the volumes that the tag is applied to.
- databases_
count float A count of the database clusters that the tag is applied to.
- droplets_
count float A count of the Droplets the tag is applied to.
- images_
count float A count of the images that the tag is applied to.
- name str
The name of the tag.
- total_
resource_ floatcount A count of the total number of resources that the tag is applied to.
- volume_
snapshots_ floatcount A count of the volume snapshots that the tag is applied to.
- volumes_
count float A count of the volumes that the tag is applied to.
Package Details
- Repository
- https://github.com/pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.