@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
97 lines • 3.25 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get information about a Google Cloud Organization. Note that you must have the `roles/resourcemanager.organizationViewer` role (or equivalent permissions) at the organization level to use this datasource.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const org = gcp.organizations.getOrganization({
* domain: "example.com",
* });
* const sales = new gcp.organizations.Folder("sales", {
* displayName: "Sales",
* parent: org.then(org => org.name),
* });
* ```
*/
export declare function getOrganization(args?: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
/**
* A collection of arguments for invoking getOrganization.
*/
export interface GetOrganizationArgs {
/**
* The domain name of the Organization.
*
* > **NOTE:** One of `organization` or `domain` must be specified.
*/
domain?: string;
/**
* The Organization's numeric ID, including an optional `organizations/` prefix.
*/
organization?: string;
}
/**
* A collection of values returned by getOrganization.
*/
export interface GetOrganizationResult {
/**
* Timestamp when the Organization was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
*/
readonly createTime: string;
/**
* The Google for Work customer ID of the Organization.
*/
readonly directoryCustomerId: string;
readonly domain: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The Organization's current lifecycle state.
*/
readonly lifecycleState: string;
/**
* The resource name of the Organization in the form `organizations/{organization_id}`.
*/
readonly name: string;
/**
* The Organization ID.
*/
readonly orgId: string;
readonly organization?: string;
}
/**
* Get information about a Google Cloud Organization. Note that you must have the `roles/resourcemanager.organizationViewer` role (or equivalent permissions) at the organization level to use this datasource.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const org = gcp.organizations.getOrganization({
* domain: "example.com",
* });
* const sales = new gcp.organizations.Folder("sales", {
* displayName: "Sales",
* parent: org.then(org => org.name),
* });
* ```
*/
export declare function getOrganizationOutput(args?: GetOrganizationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationResult>;
/**
* A collection of arguments for invoking getOrganization.
*/
export interface GetOrganizationOutputArgs {
/**
* The domain name of the Organization.
*
* > **NOTE:** One of `organization` or `domain` must be specified.
*/
domain?: pulumi.Input<string | undefined>;
/**
* The Organization's numeric ID, including an optional `organizations/` prefix.
*/
organization?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getOrganization.d.ts.map