1. Packages
  2. Qovery
  3. API Docs
  4. getLabelsGroup
Qovery v0.41.0 published on Saturday, Sep 28, 2024 by dirien

qovery.getLabelsGroup

Explore with Pulumi AI

qovery logo
Qovery v0.41.0 published on Saturday, Sep 28, 2024 by dirien

    # qovery.LabelsGroup (Data Source)

    Provides a Qovery labels group resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as qovery from "@pulumi/qovery";
    
    const myLabelsGroup = qovery.getLabelsGroup({
        id: "<labels_group_id>",
        organizationId: "<organization_id>",
    });
    
    import pulumi
    import pulumi_qovery as qovery
    
    my_labels_group = qovery.get_labels_group(id="<labels_group_id>",
        organization_id="<organization_id>")
    
    package main
    
    import (
    	"github.com/dirien/pulumi-qovery/sdk/go/qovery"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := qovery.LookupLabelsGroup(ctx, &qovery.LookupLabelsGroupArgs{
    			Id:             "<labels_group_id>",
    			OrganizationId: "<organization_id>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Qovery = Pulumi.Qovery;
    
    return await Deployment.RunAsync(() => 
    {
        var myLabelsGroup = Qovery.GetLabelsGroup.Invoke(new()
        {
            Id = "<labels_group_id>",
            OrganizationId = "<organization_id>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.qovery.QoveryFunctions;
    import com.pulumi.qovery.inputs.GetLabelsGroupArgs;
    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 myLabelsGroup = QoveryFunctions.getLabelsGroup(GetLabelsGroupArgs.builder()
                .id("<labels_group_id>")
                .organizationId("<organization_id>")
                .build());
    
        }
    }
    
    variables:
      myLabelsGroup:
        fn::invoke:
          Function: qovery:getLabelsGroup
          Arguments:
            id: <labels_group_id>
            organizationId: <organization_id>
    

    Using getLabelsGroup

    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 getLabelsGroup(args: GetLabelsGroupArgs, opts?: InvokeOptions): Promise<GetLabelsGroupResult>
    function getLabelsGroupOutput(args: GetLabelsGroupOutputArgs, opts?: InvokeOptions): Output<GetLabelsGroupResult>
    def get_labels_group(id: Optional[str] = None,
                         labels: Optional[Sequence[GetLabelsGroupLabel]] = None,
                         name: Optional[str] = None,
                         organization_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetLabelsGroupResult
    def get_labels_group_output(id: Optional[pulumi.Input[str]] = None,
                         labels: Optional[pulumi.Input[Sequence[pulumi.Input[GetLabelsGroupLabelArgs]]]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         organization_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetLabelsGroupResult]
    func LookupLabelsGroup(ctx *Context, args *LookupLabelsGroupArgs, opts ...InvokeOption) (*LookupLabelsGroupResult, error)
    func LookupLabelsGroupOutput(ctx *Context, args *LookupLabelsGroupOutputArgs, opts ...InvokeOption) LookupLabelsGroupResultOutput

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

    public static class GetLabelsGroup 
    {
        public static Task<GetLabelsGroupResult> InvokeAsync(GetLabelsGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetLabelsGroupResult> Invoke(GetLabelsGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLabelsGroupResult> getLabelsGroup(GetLabelsGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: qovery:index/getLabelsGroup:getLabelsGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id of the labels group
    OrganizationId string
    Id of the organization.
    Labels List<ediri.Qovery.Inputs.GetLabelsGroupLabel>
    labels
    Name string
    name of the labels group
    Id string
    Id of the labels group
    OrganizationId string
    Id of the organization.
    Labels []GetLabelsGroupLabel
    labels
    Name string
    name of the labels group
    id String
    Id of the labels group
    organizationId String
    Id of the organization.
    labels List<GetLabelsGroupLabel>
    labels
    name String
    name of the labels group
    id string
    Id of the labels group
    organizationId string
    Id of the organization.
    labels GetLabelsGroupLabel[]
    labels
    name string
    name of the labels group
    id str
    Id of the labels group
    organization_id str
    Id of the organization.
    labels Sequence[GetLabelsGroupLabel]
    labels
    name str
    name of the labels group
    id String
    Id of the labels group
    organizationId String
    Id of the organization.
    labels List<Property Map>
    labels
    name String
    name of the labels group

    getLabelsGroup Result

    The following output properties are available:

    Id string
    Id of the labels group
    OrganizationId string
    Id of the organization.
    Labels List<ediri.Qovery.Outputs.GetLabelsGroupLabel>
    labels
    Name string
    name of the labels group
    Id string
    Id of the labels group
    OrganizationId string
    Id of the organization.
    Labels []GetLabelsGroupLabel
    labels
    Name string
    name of the labels group
    id String
    Id of the labels group
    organizationId String
    Id of the organization.
    labels List<GetLabelsGroupLabel>
    labels
    name String
    name of the labels group
    id string
    Id of the labels group
    organizationId string
    Id of the organization.
    labels GetLabelsGroupLabel[]
    labels
    name string
    name of the labels group
    id str
    Id of the labels group
    organization_id str
    Id of the organization.
    labels Sequence[GetLabelsGroupLabel]
    labels
    name str
    name of the labels group
    id String
    Id of the labels group
    organizationId String
    Id of the organization.
    labels List<Property Map>
    labels
    name String
    name of the labels group

    Supporting Types

    GetLabelsGroupLabel

    key String
    propagateToCloudProvider Boolean
    value String
    key string
    propagateToCloudProvider boolean
    value string
    key String
    propagateToCloudProvider Boolean
    value String

    Package Details

    Repository
    qovery dirien/pulumi-qovery
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the qovery Terraform Provider.
    qovery logo
    Qovery v0.41.0 published on Saturday, Sep 28, 2024 by dirien