Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getNdbTag
Explore with Pulumi AI
Describes a tag in Nutanix Database Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const tag = nutanix.getNdbTag({
id: "{{ tag id }}",
});
import pulumi
import pulumi_nutanix as nutanix
tag = nutanix.get_ndb_tag(id="{{ tag id }}")
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.LookupNdbTag(ctx, &nutanix.LookupNdbTagArgs{
Id: pulumi.StringRef("{{ tag id }}"),
}, 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 tag = Nutanix.GetNdbTag.Invoke(new()
{
Id = "{{ tag id }}",
});
});
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.GetNdbTagArgs;
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 tag = NutanixFunctions.getNdbTag(GetNdbTagArgs.builder()
.id("{{ tag id }}")
.build());
}
}
variables:
tag:
fn::invoke:
Function: nutanix:getNdbTag
Arguments:
id: '{{ tag id }}'
Using getNdbTag
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 getNdbTag(args: GetNdbTagArgs, opts?: InvokeOptions): Promise<GetNdbTagResult>
function getNdbTagOutput(args: GetNdbTagOutputArgs, opts?: InvokeOptions): Output<GetNdbTagResult>
def get_ndb_tag(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNdbTagResult
def get_ndb_tag_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNdbTagResult]
func LookupNdbTag(ctx *Context, args *LookupNdbTagArgs, opts ...InvokeOption) (*LookupNdbTagResult, error)
func LookupNdbTagOutput(ctx *Context, args *LookupNdbTagOutputArgs, opts ...InvokeOption) LookupNdbTagResultOutput
> Note: This function is named LookupNdbTag
in the Go SDK.
public static class GetNdbTag
{
public static Task<GetNdbTagResult> InvokeAsync(GetNdbTagArgs args, InvokeOptions? opts = null)
public static Output<GetNdbTagResult> Invoke(GetNdbTagInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNdbTagResult> getNdbTag(GetNdbTagArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nutanix:index/getNdbTag:getNdbTag
arguments:
# arguments dictionary
The following arguments are supported:
getNdbTag Result
The following output properties are available:
- Date
Created string - date created of the tag
- Date
Modified string - modified date of tha tag
- Description string
- description for the tag
- Entity
Type 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
- Date
Created string - date created of the tag
- Date
Modified string - modified date of tha tag
- Description string
- description for the tag
- Entity
Type 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
- date
Created String - date created of the tag
- date
Modified String - modified date of tha tag
- description String
- description for the tag
- entity
Type 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
- date
Created string - date created of the tag
- date
Modified string - modified date of tha tag
- description string
- description for the tag
- entity
Type 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
- date
Created String - date created of the tag
- date
Modified String - modified date of tha tag
- description String
- description for the tag
- entity
Type 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.