Show / Hide Table of Contents

Class ContainerV1

Manages a V1 Barbican container resource within OpenStack.

Example Usage

Simple secret

using System.IO;
using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var certificate1 = new OpenStack.KeyManager.SecretV1("certificate1", new OpenStack.KeyManager.SecretV1Args
    {
        Payload = File.ReadAllText("cert.pem"),
        PayloadContentType = "text/plain",
        SecretType = "certificate",
    });
    var privateKey1 = new OpenStack.KeyManager.SecretV1("privateKey1", new OpenStack.KeyManager.SecretV1Args
    {
        Payload = File.ReadAllText("cert-key.pem"),
        PayloadContentType = "text/plain",
        SecretType = "private",
    });
    var intermediate1 = new OpenStack.KeyManager.SecretV1("intermediate1", new OpenStack.KeyManager.SecretV1Args
    {
        Payload = File.ReadAllText("intermediate-ca.pem"),
        PayloadContentType = "text/plain",
        SecretType = "certificate",
    });
    var tls1 = new OpenStack.KeyManager.ContainerV1("tls1", new OpenStack.KeyManager.ContainerV1Args
    {
        SecretRefs = 
        {
            new OpenStack.KeyManager.Inputs.ContainerV1SecretRefArgs
            {
                Name = "certificate",
                SecretRef = certificate1.SecretRef,
            },
            new OpenStack.KeyManager.Inputs.ContainerV1SecretRefArgs
            {
                Name = "private_key",
                SecretRef = privateKey1.SecretRef,
            },
            new OpenStack.KeyManager.Inputs.ContainerV1SecretRefArgs
            {
                Name = "intermediates",
                SecretRef = intermediate1.SecretRef,
            },
        },
        Type = "certificate",
    });
    var subnet1 = Output.Create(OpenStack.Networking.GetSubnet.InvokeAsync(new OpenStack.Networking.GetSubnetArgs
    {
        Name = "my-subnet",
    }));
    var lb1 = new OpenStack.LoadBalancer.LoadBalancer("lb1", new OpenStack.LoadBalancer.LoadBalancerArgs
    {
        VipSubnetId = subnet1.Apply(subnet1 => subnet1.Id),
    });
    var listener1 = new OpenStack.LoadBalancer.Listener("listener1", new OpenStack.LoadBalancer.ListenerArgs
    {
        DefaultTlsContainerRef = tls1.ContainerRef,
        LoadbalancerId = lb1.Id,
        Protocol = "TERMINATED_HTTPS",
        ProtocolPort = 443,
    });
}

}

Container with the ACL

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var tls1 = new OpenStack.KeyManager.ContainerV1("tls1", new OpenStack.KeyManager.ContainerV1Args
    {
        Acl = new OpenStack.KeyManager.Inputs.ContainerV1AclArgs
        {
            Read = new OpenStack.KeyManager.Inputs.ContainerV1AclReadArgs
            {
                ProjectAccess = false,
                Users = 
                {
                    "userid1",
                    "userid2",
                },
            },
        },
        SecretRefs = 
        {
            new OpenStack.KeyManager.Inputs.ContainerV1SecretRefArgs
            {
                Name = "certificate",
                SecretRef = openstack_keymanager_secret_v1.Certificate_1.Secret_ref,
            },
            new OpenStack.KeyManager.Inputs.ContainerV1SecretRefArgs
            {
                Name = "private_key",
                SecretRef = openstack_keymanager_secret_v1.Private_key_1.Secret_ref,
            },
            new OpenStack.KeyManager.Inputs.ContainerV1SecretRefArgs
            {
                Name = "intermediates",
                SecretRef = openstack_keymanager_secret_v1.Intermediate_1.Secret_ref,
            },
        },
        Type = "certificate",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ContainerV1
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.OpenStack.KeyManager
Assembly: Pulumi.OpenStack.dll
Syntax
public class ContainerV1 : CustomResource

Constructors

View Source

ContainerV1(String, ContainerV1Args, CustomResourceOptions)

Create a ContainerV1 resource with the given unique name, arguments, and options.

Declaration
public ContainerV1(string name, ContainerV1Args args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ContainerV1Args 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

Acl

Allows to control an access to a container. Currently only the read operation is supported. If not specified, the container is accessible project wide. The read structure is described below.

Declaration
public Output<ContainerV1Acl> Acl { get; }
Property Value
Type Description
Output<ContainerV1Acl>
View Source

Consumers

The list of the container consumers. The structure is described below.

Declaration
public Output<ImmutableArray<ContainerV1Consumer>> Consumers { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ContainerV1Consumer>>
View Source

ContainerRef

The container reference / where to find the container.

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

CreatedAt

The date the container ACL was created.

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

CreatorId

The creator of the container.

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

Name

The name of the secret reference. The reference names must correspond the container type, more details are available here.

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

Region

The region in which to obtain the V1 KeyManager client. A KeyManager client is needed to create a container. If omitted, the region argument of the provider is used. Changing this creates a new V1 container.

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

SecretRefs

A set of dictionaries containing references to secrets. The structure is described below.

Declaration
public Output<ImmutableArray<ContainerV1SecretRef>> SecretRefs { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ContainerV1SecretRef>>
View Source

Status

The status of the container.

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

Type

Used to indicate the type of container. Must be one of generic, rsa or certificate.

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

UpdatedAt

The date the container ACL was last updated.

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

Methods

View Source

Get(String, Input<String>, ContainerV1State, CustomResourceOptions)

Get an existing ContainerV1 resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ContainerV1 Get(string name, Input<string> id, ContainerV1State 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.

ContainerV1State state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ContainerV1
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.