Class Certificate
Provides a Rancher v2 certificate resource. This can be used to create certificates for Rancher v2 environments and retrieve their information.
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
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class Certificate : CustomResource
Constructors
View SourceCertificate(String, CertificateArgs, CustomResourceOptions)
Create a Certificate resource with the given unique name, arguments, and options.
Declaration
public Certificate(string name, CertificateArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| CertificateArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAnnotations
Annotations for certificate object (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Certs
Base64 encoded public certs (string)
Declaration
public Output<string> Certs { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
A certificate description (string)
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Key
Base64 encoded private key (string)
Declaration
public Output<string> Key { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
Labels for certificate object (map)
Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Name
The name of the certificate (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NamespaceId
The namespace id where the namespaced certificate should be created (string)
Declaration
public Output<string> NamespaceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProjectId
The project id where the certificate should be created (string)
Declaration
public Output<string> ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, CertificateState, CustomResourceOptions)
Get an existing Certificate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Certificate Get(string name, Input<string> id, CertificateState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| CertificateState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Certificate |