Class GetOrganizationPolicy
Inheritance
System.Object
GetOrganizationPolicy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Folder
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetOrganizationPolicy
Methods
View SourceInvokeAsync(GetOrganizationPolicyArgs, InvokeOptions)
Allows management of Organization policies for a Google Folder. For more information see the official documentation
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var policy = Output.Create(Gcp.Folder.GetOrganizationPolicy.InvokeAsync(new Gcp.Folder.GetOrganizationPolicyArgs
{
Folder = "folders/folderid",
Constraint = "constraints/compute.trustedImageProjects",
}));
this.Version = policy.Apply(policy => policy.Version);
}
[Output("version")]
public Output<string> Version { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetOrganizationPolicyResult> InvokeAsync(GetOrganizationPolicyArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetOrganizationPolicyArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetOrganizationPolicyResult> |