-
Notifications
You must be signed in to change notification settings - Fork 52
/
getOrganization.ts
78 lines (73 loc) · 2.28 KB
/
getOrganization.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Use this data source to get information about a Google Cloud Organization.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const org = pulumi.output(gcp.organizations.getOrganization({
* domain: "example.com",
* }));
* const sales = new gcp.organizations.Folder("sales", {
* displayName: "Sales",
* parent: org.name,
* });
* ```
*/
export function getOrganization(args?: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult> {
args = args || {};
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
return pulumi.runtime.invoke("gcp:organizations/getOrganization:getOrganization", {
"domain": args.domain,
"organization": args.organization,
}, opts);
}
/**
* A collection of arguments for invoking getOrganization.
*/
export interface GetOrganizationArgs {
/**
* The domain name of the Organization.
*/
readonly domain?: string;
/**
* The name of the Organization in the form `{organization_id}` or `organizations/{organization_id}`.
*/
readonly 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 Organization's current lifecycle state.
*/
readonly lifecycleState: string;
/**
* The resource name of the Organization in the form `organizations/{organization_id}`.
*/
readonly name: string;
readonly organization?: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}