1. Packages
  2. Nutanix
  3. API Docs
  4. getNdbTags
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

nutanix.getNdbTags

Explore with Pulumi AI

nutanix logo
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

    List of tags in Nutanix Database Service

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const tags = nutanix.getNdbTags({});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    tags = nutanix.get_ndb_tags()
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.GetNdbTags(ctx, &nutanix.GetNdbTagsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = Pulumi.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var tags = Nutanix.GetNdbTags.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    import com.pulumi.nutanix.inputs.GetNdbTagsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var tags = NutanixFunctions.getNdbTags();
    
        }
    }
    
    variables:
      tags:
        fn::invoke:
          Function: nutanix:getNdbTags
          Arguments: {}
    

    Using getNdbTags

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getNdbTags(args: GetNdbTagsArgs, opts?: InvokeOptions): Promise<GetNdbTagsResult>
    function getNdbTagsOutput(args: GetNdbTagsOutputArgs, opts?: InvokeOptions): Output<GetNdbTagsResult>
    def get_ndb_tags(entity_type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNdbTagsResult
    def get_ndb_tags_output(entity_type: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNdbTagsResult]
    func GetNdbTags(ctx *Context, args *GetNdbTagsArgs, opts ...InvokeOption) (*GetNdbTagsResult, error)
    func GetNdbTagsOutput(ctx *Context, args *GetNdbTagsOutputArgs, opts ...InvokeOption) GetNdbTagsResultOutput

    > Note: This function is named GetNdbTags in the Go SDK.

    public static class GetNdbTags 
    {
        public static Task<GetNdbTagsResult> InvokeAsync(GetNdbTagsArgs args, InvokeOptions? opts = null)
        public static Output<GetNdbTagsResult> Invoke(GetNdbTagsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNdbTagsResult> getNdbTags(GetNdbTagsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nutanix:index/getNdbTags:getNdbTags
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EntityType string
    entity for the tag to be associated with.
    EntityType string
    entity for the tag to be associated with.
    entityType String
    entity for the tag to be associated with.
    entityType string
    entity for the tag to be associated with.
    entity_type str
    entity for the tag to be associated with.
    entityType String
    entity for the tag to be associated with.

    getNdbTags Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Tags List<PiersKarsenbarg.Nutanix.Outputs.GetNdbTagsTag>
    List of tags present in NDB.
    EntityType string
    entity for the tag to be associated with.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tags []GetNdbTagsTag
    List of tags present in NDB.
    EntityType string
    entity for the tag to be associated with.
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<GetNdbTagsTag>
    List of tags present in NDB.
    entityType String
    entity for the tag to be associated with.
    id string
    The provider-assigned unique ID for this managed resource.
    tags GetNdbTagsTag[]
    List of tags present in NDB.
    entityType string
    entity for the tag to be associated with.
    id str
    The provider-assigned unique ID for this managed resource.
    tags Sequence[GetNdbTagsTag]
    List of tags present in NDB.
    entity_type str
    entity for the tag to be associated with.
    id String
    The provider-assigned unique ID for this managed resource.
    tags List<Property Map>
    List of tags present in NDB.
    entityType String
    entity for the tag to be associated with.

    Supporting Types

    GetNdbTagsTag

    DateCreated string
    date created of the tag
    DateModified string
    modified date of tha tag
    Description string
    description for the tag
    EntityType string
    entity for the tag to be associated with.
    Id string
    Name string
    name for the tag
    Owner string
    owner id of the tag
    Required bool
    tag value for entities.
    Status string
    Status of the tag
    Values int
    value for the tag
    DateCreated string
    date created of the tag
    DateModified string
    modified date of tha tag
    Description string
    description for the tag
    EntityType string
    entity for the tag to be associated with.
    Id string
    Name string
    name for the tag
    Owner string
    owner id of the tag
    Required bool
    tag value for entities.
    Status string
    Status of the tag
    Values int
    value for the tag
    dateCreated String
    date created of the tag
    dateModified String
    modified date of tha tag
    description String
    description for the tag
    entityType String
    entity for the tag to be associated with.
    id String
    name String
    name for the tag
    owner String
    owner id of the tag
    required Boolean
    tag value for entities.
    status String
    Status of the tag
    values Integer
    value for the tag
    dateCreated string
    date created of the tag
    dateModified string
    modified date of tha tag
    description string
    description for the tag
    entityType string
    entity for the tag to be associated with.
    id string
    name string
    name for the tag
    owner string
    owner id of the tag
    required boolean
    tag value for entities.
    status string
    Status of the tag
    values number
    value for the tag
    date_created str
    date created of the tag
    date_modified str
    modified date of tha tag
    description str
    description for the tag
    entity_type str
    entity for the tag to be associated with.
    id str
    name str
    name for the tag
    owner str
    owner id of the tag
    required bool
    tag value for entities.
    status str
    Status of the tag
    values int
    value for the tag
    dateCreated String
    date created of the tag
    dateModified String
    modified date of tha tag
    description String
    description for the tag
    entityType String
    entity for the tag to be associated with.
    id String
    name String
    name for the tag
    owner String
    owner id of the tag
    required Boolean
    tag value for entities.
    status String
    Status of the tag
    values Number
    value for the tag

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg