Show / Hide Table of Contents

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

}
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.VSphere
Assembly: Pulumi.VSphere.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

EditionKey

The product edition of the license key.

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

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

LicenseKey

The license key to add.

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

Name

The display name for the license.

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

Total

Total number of units (example: CPUs) contained in the license.

Declaration
public Output<int> Total { get; }
Property Value
Type Description
Output<System.Int32>
View Source

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 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.