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.Projects
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetOrganizationPolicy
Methods
View SourceInvokeAsync(GetOrganizationPolicyArgs, InvokeOptions)
Allows management of Organization policies for a Google Project. 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.Projects.GetOrganizationPolicy.InvokeAsync(new Gcp.Projects.GetOrganizationPolicyArgs
{
Project = "project-id",
Constraint = "constraints/serviceuser.services",
}));
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> |