1. Packages
  2. Hsdp Provider
  3. API Docs
  4. getIamOrg
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.getIamOrg

Explore with Pulumi AI

hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

Retrieve details of an existing organization

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";

const myOrg = hsdp.getIamOrg({
    organizationId: _var.my_org_id,
});
Copy
import pulumi
import pulumi_hsdp as hsdp

my_org = hsdp.get_iam_org(organization_id=var["my_org_id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hsdp.LookupIamOrg(ctx, &hsdp.LookupIamOrgArgs{
			OrganizationId: _var.My_org_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;

return await Deployment.RunAsync(() => 
{
    var myOrg = Hsdp.GetIamOrg.Invoke(new()
    {
        OrganizationId = @var.My_org_id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.HsdpFunctions;
import com.pulumi.hsdp.inputs.GetIamOrgArgs;
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 myOrg = HsdpFunctions.getIamOrg(GetIamOrgArgs.builder()
            .organizationId(var_.my_org_id())
            .build());

    }
}
Copy
variables:
  myOrg:
    fn::invoke:
      function: hsdp:getIamOrg
      arguments:
        organizationId: ${var.my_org_id}
Copy
import * as pulumi from "@pulumi/pulumi";

export const myOrgName = data.hsdp_iam_org.name;
Copy
import pulumi

pulumi.export("myOrgName", data["hsdp_iam_org"]["name"])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ctx.Export("myOrgName", data.Hsdp_iam_org.Name)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
    return new Dictionary<string, object?>
    {
        ["myOrgName"] = data.Hsdp_iam_org.Name,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
        ctx.export("myOrgName", data.hsdp_iam_org().name());
    }
}
Copy
outputs:
  myOrgName: ${data.hsdp_iam_org.name}
Copy

Using getIamOrg

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 getIamOrg(args: GetIamOrgArgs, opts?: InvokeOptions): Promise<GetIamOrgResult>
function getIamOrgOutput(args: GetIamOrgOutputArgs, opts?: InvokeOptions): Output<GetIamOrgResult>
Copy
def get_iam_org(id: Optional[str] = None,
                organization_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetIamOrgResult
def get_iam_org_output(id: Optional[pulumi.Input[str]] = None,
                organization_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetIamOrgResult]
Copy
func LookupIamOrg(ctx *Context, args *LookupIamOrgArgs, opts ...InvokeOption) (*LookupIamOrgResult, error)
func LookupIamOrgOutput(ctx *Context, args *LookupIamOrgOutputArgs, opts ...InvokeOption) LookupIamOrgResultOutput
Copy

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

public static class GetIamOrg 
{
    public static Task<GetIamOrgResult> InvokeAsync(GetIamOrgArgs args, InvokeOptions? opts = null)
    public static Output<GetIamOrgResult> Invoke(GetIamOrgInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIamOrgResult> getIamOrg(GetIamOrgArgs args, InvokeOptions options)
public static Output<GetIamOrgResult> getIamOrg(GetIamOrgArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: hsdp:index/getIamOrg:getIamOrg
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OrganizationId This property is required. string
the UUID of the organization to look up
Id string
OrganizationId This property is required. string
the UUID of the organization to look up
Id string
organizationId This property is required. String
the UUID of the organization to look up
id String
organizationId This property is required. string
the UUID of the organization to look up
id string
organization_id This property is required. str
the UUID of the organization to look up
id str
organizationId This property is required. String
the UUID of the organization to look up
id String

getIamOrg Result

The following output properties are available:

Active bool
Indicates the administrative status of an organization
Description string
The description of the organization
DisplayName string
The name of the organization suitable for display.
ExternalId string
External ID defined by client that identifies the organization at client side.
Id string
Name string
The name of the organization
OrganizationId string
ParentOrgId string
Type string
The organization type e.g. hospital
Active bool
Indicates the administrative status of an organization
Description string
The description of the organization
DisplayName string
The name of the organization suitable for display.
ExternalId string
External ID defined by client that identifies the organization at client side.
Id string
Name string
The name of the organization
OrganizationId string
ParentOrgId string
Type string
The organization type e.g. hospital
active Boolean
Indicates the administrative status of an organization
description String
The description of the organization
displayName String
The name of the organization suitable for display.
externalId String
External ID defined by client that identifies the organization at client side.
id String
name String
The name of the organization
organizationId String
parentOrgId String
type String
The organization type e.g. hospital
active boolean
Indicates the administrative status of an organization
description string
The description of the organization
displayName string
The name of the organization suitable for display.
externalId string
External ID defined by client that identifies the organization at client side.
id string
name string
The name of the organization
organizationId string
parentOrgId string
type string
The organization type e.g. hospital
active bool
Indicates the administrative status of an organization
description str
The description of the organization
display_name str
The name of the organization suitable for display.
external_id str
External ID defined by client that identifies the organization at client side.
id str
name str
The name of the organization
organization_id str
parent_org_id str
type str
The organization type e.g. hospital
active Boolean
Indicates the administrative status of an organization
description String
The description of the organization
displayName String
The name of the organization suitable for display.
externalId String
External ID defined by client that identifies the organization at client side.
id String
name String
The name of the organization
organizationId String
parentOrgId String
type String
The organization type e.g. hospital

Package Details

Repository
hsdp philips-software/terraform-provider-hsdp
License
Notes
This Pulumi package is based on the hsdp Terraform Provider.
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software