1. Packages
  2. Equinix Metal (Deprecated)
  3. API Docs
  4. getOrganization

This package is deprecated. We recommend using the new Equinix package.

Equinix Metal v3.2.1 published on Thursday, Dec 30, 2021 by DEPRECATED

equinix-metal.getOrganization

Explore with Pulumi AI

equinix-metal logo

This package is deprecated. We recommend using the new Equinix package.

Equinix Metal v3.2.1 published on Thursday, Dec 30, 2021 by DEPRECATED

    Provides an Equinix Metal organization datasource.

    Example Usage

    using Pulumi;
    using EquinixMetal = Pulumi.EquinixMetal;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var test = Output.Create(EquinixMetal.GetOrganization.InvokeAsync(new EquinixMetal.GetOrganizationArgs
            {
                OrganizationId = local.Org_id,
            }));
            this.ProjectsInTheOrg = test.Apply(test => test.ProjectIds);
        }
    
        [Output("projectsInTheOrg")]
        public Output<string> ProjectsInTheOrg { get; set; }
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-equinix-metal/sdk/v3/go/equinix-metal"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		opt0 := local.Org_id
    		test, err := equinix - metal.LookupOrganization(ctx, &GetOrganizationArgs{
    			OrganizationId: &opt0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("projectsInTheOrg", test.ProjectIds)
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_equinix_metal as equinix_metal
    
    test = equinix_metal.get_organization(organization_id=local["org_id"])
    pulumi.export("projectsInTheOrg", test.project_ids)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as equinix_metal from "@pulumi/equinix-metal";
    
    const test = equinix_metal.getOrganization({
        organizationId: local.org_id,
    });
    export const projectsInTheOrg = test.then(test => test.projectIds);
    

    Coming soon!

    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(name: Optional[str] = None,
                         organization_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
    def get_organization_output(name: Optional[pulumi.Input[str]] = None,
                         organization_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: equinix-metal:index/getOrganization:getOrganization
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The organization name
    OrganizationId string
    The UUID of the organization resource
    Name string
    The organization name
    OrganizationId string
    The UUID of the organization resource
    name String
    The organization name
    organizationId String
    The UUID of the organization resource
    name string
    The organization name
    organizationId string
    The UUID of the organization resource
    name str
    The organization name
    organization_id str
    The UUID of the organization resource
    name String
    The organization name
    organizationId String
    The UUID of the organization resource

    getOrganization Result

    The following output properties are available:

    Description string
    Description string
    Id string
    The provider-assigned unique ID for this managed resource.
    Logo string
    Logo URL
    Name string
    OrganizationId string
    ProjectIds List<string>
    UUIDs of project resources which belong to this organization
    Twitter string
    Twitter handle
    Website string
    Website link
    Description string
    Description string
    Id string
    The provider-assigned unique ID for this managed resource.
    Logo string
    Logo URL
    Name string
    OrganizationId string
    ProjectIds []string
    UUIDs of project resources which belong to this organization
    Twitter string
    Twitter handle
    Website string
    Website link
    description String
    Description string
    id String
    The provider-assigned unique ID for this managed resource.
    logo String
    Logo URL
    name String
    organizationId String
    projectIds List<String>
    UUIDs of project resources which belong to this organization
    twitter String
    Twitter handle
    website String
    Website link
    description string
    Description string
    id string
    The provider-assigned unique ID for this managed resource.
    logo string
    Logo URL
    name string
    organizationId string
    projectIds string[]
    UUIDs of project resources which belong to this organization
    twitter string
    Twitter handle
    website string
    Website link
    description str
    Description string
    id str
    The provider-assigned unique ID for this managed resource.
    logo str
    Logo URL
    name str
    organization_id str
    project_ids Sequence[str]
    UUIDs of project resources which belong to this organization
    twitter str
    Twitter handle
    website str
    Website link
    description String
    Description string
    id String
    The provider-assigned unique ID for this managed resource.
    logo String
    Logo URL
    name String
    organizationId String
    projectIds List<String>
    UUIDs of project resources which belong to this organization
    twitter String
    Twitter handle
    website String
    Website link

    Package Details

    Repository
    Equinix Metal pulumi/pulumi-equinix-metal
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the metal Terraform Provider.
    equinix-metal logo

    This package is deprecated. We recommend using the new Equinix package.

    Equinix Metal v3.2.1 published on Thursday, Dec 30, 2021 by DEPRECATED