Class License
Provides a VMware vSphere license resource. This can be used to add and remove license keys.
Example Usage
using Pulumi;
using VSphere = Pulumi.VSphere;
class MyStack : Stack
{
public MyStack()
{
var licenseKey = new VSphere.License("licenseKey", new VSphere.LicenseArgs
{
Labels =
{
{ "VpxClientLicenseLabel", "Hello World" },
{ "Workflow", "Hello World" },
},
LicenseKey = "452CQ-2EK54-K8742-00000-00000",
});
}
}
Inherited Members
Namespace: Pulumi.VSphere
Assembly: Pulumi.VSphere.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 SourceEditionKey
The product edition of the license key.
Declaration
public Output<string> EditionKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
A map of key/value pairs to be attached as labels (tags) to the license key.
Declaration
public Output<ImmutableDictionary<string, string>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
LicenseKey
The license key to add.
Declaration
public Output<string> LicenseKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The display name for the license.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Total
Total number of units (example: CPUs) contained in the license.
Declaration
public Output<int> Total { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Used
The number of units (example: CPUs) assigned to this license.
Declaration
public Output<int> Used { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
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 |