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.DigitalOcean
Assembly: Pulumi.DigitalOcean.dll
Syntax
public static class GetProject
Methods
View SourceInvokeAsync(GetProjectArgs, InvokeOptions)
Get information on a single DigitalOcean project. If neither the id nor name attributes are provided,
then this data source returns the default project.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
class MyStack : Stack
{
public MyStack()
{
var @default = Output.Create(DigitalOcean.GetProject.InvokeAsync());
var staging = Output.Create(DigitalOcean.GetProject.InvokeAsync(new DigitalOcean.GetProjectArgs
{
Name = "My Staging Project",
}));
}
}
{{% /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> |