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.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public static class GetCertificate
Methods
View SourceInvokeAsync(GetCertificateArgs, InvokeOptions)
Use this data source to retrieve information about a Rancher v2 certificate.
Depending of the availability, there are 2 types of Rancher v2 certificates:
- Project certificate: Available to all namespaces in the
project_id - Namespaced certificate: Available to just
namespace_idin theproject_id
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetCertificate.InvokeAsync(new Rancher2.GetCertificateArgs
{
Name = "<name>",
ProjectId = "<project_id>",
}));
}
}
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetCertificate.InvokeAsync(new Rancher2.GetCertificateArgs
{
Name = "<name>",
NamespaceId = "<namespace_id>",
ProjectId = "<project_id>",
}));
}
}
{{% /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> |