Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
CloudCredential
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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 class CloudCredential : CustomResource

Constructors

View Source

CloudCredential(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 Source

Amazonec2CredentialConfig

AWS config for the Cloud Credential (list maxitems:1)

Declaration
public Output<CloudCredentialAmazonec2CredentialConfig> Amazonec2CredentialConfig { get; }
Property Value
Type Description
Output<CloudCredentialAmazonec2CredentialConfig>
View Source

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>>
View Source

AzureCredentialConfig

Azure config for the Cloud Credential (list maxitems:1)

Declaration
public Output<CloudCredentialAzureCredentialConfig> AzureCredentialConfig { get; }
Property Value
Type Description
Output<CloudCredentialAzureCredentialConfig>
View Source

Description

Description for the Cloud Credential (string)

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

DigitaloceanCredentialConfig

DigitalOcean config for the Cloud Credential (list maxitems:1)

Declaration
public Output<CloudCredentialDigitaloceanCredentialConfig> DigitaloceanCredentialConfig { get; }
Property Value
Type Description
Output<CloudCredentialDigitaloceanCredentialConfig>
View Source

Driver

(Computed) The driver of the Cloud Credential (string)

Declaration
public Output<string> Driver { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

LinodeCredentialConfig

Linode config for the Cloud Credential (list maxitems:1)

Declaration
public Output<CloudCredentialLinodeCredentialConfig> LinodeCredentialConfig { get; }
Property Value
Type Description
Output<CloudCredentialLinodeCredentialConfig>
View Source

Name

The name of the Cloud Credential (string)

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

OpenstackCredentialConfig

OpenStack config for the Cloud Credential (list maxitems:1)

Declaration
public Output<CloudCredentialOpenstackCredentialConfig> OpenstackCredentialConfig { get; }
Property Value
Type Description
Output<CloudCredentialOpenstackCredentialConfig>
View Source

VsphereCredentialConfig

vSphere config for the Cloud Credential (list maxitems:1)

Declaration
public Output<CloudCredentialVsphereCredentialConfig> VsphereCredentialConfig { get; }
Property Value
Type Description
Output<CloudCredentialVsphereCredentialConfig>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.