Class GetCertificate
Inheritance
System.Object
GetCertificate
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.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetCertificate
Methods
View SourceInvokeAsync(GetCertificateArgs, InvokeOptions)
Get info about a Google Compute SSL Certificate from its name.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var myCert = Output.Create(Gcp.Compute.GetCertificate.InvokeAsync(new Gcp.Compute.GetCertificateArgs
{
Name = "my-cert",
}));
this.Certificate = myCert.Apply(myCert => myCert.Certificate);
this.CertificateId = myCert.Apply(myCert => myCert.CertificateId);
this.SelfLink = myCert.Apply(myCert => myCert.SelfLink);
}
[Output("certificate")]
public Output<string> Certificate { get; set; }
[Output("certificateId")]
public Output<string> CertificateId { get; set; }
[Output("selfLink")]
public Output<string> SelfLink { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCertificateArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetCertificateResult> |