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"),
});
}
}
Inherited Members
Namespace: Pulumi.Consul
Assembly: Pulumi.Consul.dll
Syntax
public class License : CustomResource
Constructors
View SourceLicense(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 SourceConsulLicense
The Consul license to use.
Declaration
public Output<string> ConsulLicense { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CustomerId
The ID of the customer the license is attached to.
Declaration
public Output<string> CustomerId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
ExpirationTime
The expiration time of the license.
Declaration
public Output<string> ExpirationTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
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>> |
InstallationId
The ID of the current installation.
Declaration
public Output<string> InstallationId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IssueTime
The date the license was issued.
Declaration
public Output<string> IssueTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LicenseId
The ID of the license used.
Declaration
public Output<string> LicenseId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Product
The product for which the license is valid.
Declaration
public Output<string> Product { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StartTime
The start time of the license.
Declaration
public Output<string> StartTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Valid
Whether the license is valid.
Declaration
public Output<bool> Valid { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
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 SourceGet(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 |