Class GetProject
Inheritance
System.Object
GetProject
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.Organizations
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetProject
Methods
View SourceInvokeAsync(GetProjectArgs, InvokeOptions)
Use this data source to get project details. For more information see API
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var project = Output.Create(Gcp.Organizations.GetProject.InvokeAsync());
this.ProjectNumber = project.Apply(project => project.Number);
}
[Output("projectNumber")]
public Output<string> ProjectNumber { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetProjectArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetProjectResult> |