Show / Hide Table of Contents

Class License

NOTE: This feature requires Consul Enterprise.

The consul..License resource provides datacenter-level management of the Consul Enterprise license. If ACLs are enabled then a token with operator privileges may be required in order to use this command.

Example Usage

using System.IO;
using Pulumi;
using Consul = Pulumi.Consul;

class MyStack : Stack
{
public MyStack()
{
    var license = new Consul.License("license", new Consul.LicenseArgs
    {
        License = File.ReadAllText("license.hclic"),
    });
}

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

Constructors

View Source

License(String, LicenseArgs, CustomResourceOptions)

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

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

The unique name of the resource

LicenseArgs 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

ConsulLicense

The Consul license to use.

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

CustomerId

The ID of the customer the license is attached to.

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

Datacenter

The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.

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

ExpirationTime

The expiration time of the license.

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

Features

The features for which the license is valid.

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

Flags

The metadata attached to the license.

Declaration
public Output<ImmutableDictionary<string, string>> Flags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

InstallationId

The ID of the current installation.

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

IssueTime

The date the license was issued.

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

LicenseId

The ID of the license used.

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

Product

The product for which the license is valid.

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

StartTime

The start time of the license.

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

Valid

Whether the license is valid.

Declaration
public Output<bool> Valid { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Warnings

A list of warning messages regarding the license validity.

Declaration
public Output<ImmutableArray<string>> Warnings { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>

Methods

View Source

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

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

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

LicenseState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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