1. Packages
  2. Qovery
  3. API Docs
  4. getOrganization
Qovery v0.28.10 published on Friday, Jun 7, 2024 by dirien

qovery.getOrganization

Explore with Pulumi AI

qovery logo
Qovery v0.28.10 published on Friday, Jun 7, 2024 by dirien

    # qovery.Organization (Data Source)

    Provides a Qovery organization resource. This can be used to create and manage Qovery organizations.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as qovery from "@pulumi/qovery";
    
    const myOrganization = qovery.getOrganization({
        id: "<organization_id>",
    });
    
    import pulumi
    import pulumi_qovery as qovery
    
    my_organization = qovery.get_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.LookupOrganization(ctx, &qovery.LookupOrganizationArgs{
    			Id: "<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 myOrganization = Qovery.GetOrganization.Invoke(new()
        {
            Id = "<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.GetOrganizationArgs;
    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 myOrganization = QoveryFunctions.getOrganization(GetOrganizationArgs.builder()
                .id("<organization_id>")
                .build());
    
        }
    }
    
    variables:
      myOrganization:
        fn::invoke:
          Function: qovery:getOrganization
          Arguments:
            id: <organization_id>
    

    Using getOrganization

    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 getOrganization(args: GetOrganizationArgs, opts?: InvokeOptions): Promise<GetOrganizationResult>
    function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: InvokeOptions): Output<GetOrganizationResult>
    def get_organization(id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
    def get_organization_output(id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationResult]
    func LookupOrganization(ctx *Context, args *LookupOrganizationArgs, opts ...InvokeOption) (*LookupOrganizationResult, error)
    func LookupOrganizationOutput(ctx *Context, args *LookupOrganizationOutputArgs, opts ...InvokeOption) LookupOrganizationResultOutput

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

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

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getOrganization Result

    The following output properties are available:

    Description string
    Id string
    Name string
    Plan string
    Description string
    Id string
    Name string
    Plan string
    description String
    id String
    name String
    plan String
    description string
    id string
    name string
    plan string
    description str
    id str
    name str
    plan str
    description String
    id String
    name String
    plan 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.28.10 published on Friday, Jun 7, 2024 by dirien