Class CloudCredential
Provides a Rancher v2 Cloud Credential resource. This can be used to create Cloud Credential for Rancher v2.2.x and retrieve their information.
amazonec2, azure, digitalocean, linode, openstack and vsphere credentials config are supported for Cloud Credential.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
// Create a new rancher2 Cloud Credential
var foo = new Rancher2.CloudCredential("foo", new Rancher2.CloudCredentialArgs
{
Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs
{
AccessKey = "<AWS_ACCESS_KEY>",
SecretKey = "<AWS_SECRET_KEY>",
},
Description = "foo test",
});
}
}
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class CloudCredential : CustomResource
Constructors
View SourceCloudCredential(String, CloudCredentialArgs, CustomResourceOptions)
Create a CloudCredential resource with the given unique name, arguments, and options.
Declaration
public CloudCredential(string name, CloudCredentialArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| CloudCredentialArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAmazonec2CredentialConfig
AWS config for the Cloud Credential (list maxitems:1)
Declaration
public Output<CloudCredentialAmazonec2CredentialConfig> Amazonec2CredentialConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<CloudCredentialAmazonec2CredentialConfig> |
Annotations
Annotations for Cloud Credential object (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
AzureCredentialConfig
Azure config for the Cloud Credential (list maxitems:1)
Declaration
public Output<CloudCredentialAzureCredentialConfig> AzureCredentialConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<CloudCredentialAzureCredentialConfig> |
Description
Description for the Cloud Credential (string)
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DigitaloceanCredentialConfig
DigitalOcean config for the Cloud Credential (list maxitems:1)
Declaration
public Output<CloudCredentialDigitaloceanCredentialConfig> DigitaloceanCredentialConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<CloudCredentialDigitaloceanCredentialConfig> |
Driver
(Computed) The driver of the Cloud Credential (string)
Declaration
public Output<string> Driver { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
Labels for Cloud Credential object (map)
Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
LinodeCredentialConfig
Linode config for the Cloud Credential (list maxitems:1)
Declaration
public Output<CloudCredentialLinodeCredentialConfig> LinodeCredentialConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<CloudCredentialLinodeCredentialConfig> |
Name
The name of the Cloud Credential (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OpenstackCredentialConfig
OpenStack config for the Cloud Credential (list maxitems:1)
Declaration
public Output<CloudCredentialOpenstackCredentialConfig> OpenstackCredentialConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<CloudCredentialOpenstackCredentialConfig> |
VsphereCredentialConfig
vSphere config for the Cloud Credential (list maxitems:1)
Declaration
public Output<CloudCredentialVsphereCredentialConfig> VsphereCredentialConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<CloudCredentialVsphereCredentialConfig> |
Methods
View SourceGet(String, Input<String>, CloudCredentialState, CustomResourceOptions)
Get an existing CloudCredential resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static CloudCredential Get(string name, Input<string> id, CloudCredentialState 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. |
| CloudCredentialState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| CloudCredential |