1. Packages
  2. Cisco ISE
  3. API Docs
  4. system
  5. LicenseTierState
Cisco ISE v0.1.10 published on Tuesday, Nov 19, 2024 by Pulumi

ise.system.LicenseTierState

Explore with Pulumi AI

ise logo
Cisco ISE v0.1.10 published on Tuesday, Nov 19, 2024 by Pulumi

    This resource can manage a License Tier State.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ise from "@pulumi/ise";
    
    const example = new ise.system.LicenseTierState("example", {licenses: [{
        name: "ESSENTIAL",
        status: "ENABLED",
    }]});
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.system.LicenseTierState("example", licenses=[{
        "name": "ESSENTIAL",
        "status": "ENABLED",
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-ise/sdk/go/ise/system"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := system.NewLicenseTierState(ctx, "example", &system.LicenseTierStateArgs{
    			Licenses: system.LicenseTierStateLicenseArray{
    				&system.LicenseTierStateLicenseArgs{
    					Name:   pulumi.String("ESSENTIAL"),
    					Status: pulumi.String("ENABLED"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ise = Pulumi.Ise;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ise.System.LicenseTierState("example", new()
        {
            Licenses = new[]
            {
                new Ise.System.Inputs.LicenseTierStateLicenseArgs
                {
                    Name = "ESSENTIAL",
                    Status = "ENABLED",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ise.system.LicenseTierState;
    import com.pulumi.ise.system.LicenseTierStateArgs;
    import com.pulumi.ise.system.inputs.LicenseTierStateLicenseArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new LicenseTierState("example", LicenseTierStateArgs.builder()
                .licenses(LicenseTierStateLicenseArgs.builder()
                    .name("ESSENTIAL")
                    .status("ENABLED")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ise:system:LicenseTierState
        properties:
          licenses:
            - name: ESSENTIAL
              status: ENABLED
    

    Create LicenseTierState Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LicenseTierState(name: string, args: LicenseTierStateArgs, opts?: CustomResourceOptions);
    @overload
    def LicenseTierState(resource_name: str,
                         args: LicenseTierStateArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def LicenseTierState(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         licenses: Optional[Sequence[LicenseTierStateLicenseArgs]] = None)
    func NewLicenseTierState(ctx *Context, name string, args LicenseTierStateArgs, opts ...ResourceOption) (*LicenseTierState, error)
    public LicenseTierState(string name, LicenseTierStateArgs args, CustomResourceOptions? opts = null)
    public LicenseTierState(String name, LicenseTierStateArgs args)
    public LicenseTierState(String name, LicenseTierStateArgs args, CustomResourceOptions options)
    
    type: ise:system:LicenseTierState
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LicenseTierStateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LicenseTierStateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LicenseTierStateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LicenseTierStateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LicenseTierStateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var licenseTierStateResource = new Ise.System.LicenseTierState("licenseTierStateResource", new()
    {
        Licenses = new[]
        {
            new Ise.System.Inputs.LicenseTierStateLicenseArgs
            {
                Name = "string",
                Status = "string",
            },
        },
    });
    
    example, err := system.NewLicenseTierState(ctx, "licenseTierStateResource", &system.LicenseTierStateArgs{
    	Licenses: system.LicenseTierStateLicenseArray{
    		&system.LicenseTierStateLicenseArgs{
    			Name:   pulumi.String("string"),
    			Status: pulumi.String("string"),
    		},
    	},
    })
    
    var licenseTierStateResource = new LicenseTierState("licenseTierStateResource", LicenseTierStateArgs.builder()
        .licenses(LicenseTierStateLicenseArgs.builder()
            .name("string")
            .status("string")
            .build())
        .build());
    
    license_tier_state_resource = ise.system.LicenseTierState("licenseTierStateResource", licenses=[{
        "name": "string",
        "status": "string",
    }])
    
    const licenseTierStateResource = new ise.system.LicenseTierState("licenseTierStateResource", {licenses: [{
        name: "string",
        status: "string",
    }]});
    
    type: ise:system:LicenseTierState
    properties:
        licenses:
            - name: string
              status: string
    

    LicenseTierState Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LicenseTierState resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LicenseTierState resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LicenseTierState Resource

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

    public static get(name: string, id: Input<ID>, state?: LicenseTierStateState, opts?: CustomResourceOptions): LicenseTierState
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            licenses: Optional[Sequence[LicenseTierStateLicenseArgs]] = None) -> LicenseTierState
    func GetLicenseTierState(ctx *Context, name string, id IDInput, state *LicenseTierStateState, opts ...ResourceOption) (*LicenseTierState, error)
    public static LicenseTierState Get(string name, Input<string> id, LicenseTierStateState? state, CustomResourceOptions? opts = null)
    public static LicenseTierState get(String name, Output<String> id, LicenseTierStateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Supporting Types

    LicenseTierStateLicense, LicenseTierStateLicenseArgs

    Name string
    License name

    • Choices: ESSENTIAL, ADVANTAGE, PREMIER, DEVICEADMIN, VM
    Status string
    License status

    • Choices: ENABLED, DISABLED
    Name string
    License name

    • Choices: ESSENTIAL, ADVANTAGE, PREMIER, DEVICEADMIN, VM
    Status string
    License status

    • Choices: ENABLED, DISABLED
    name String
    License name

    • Choices: ESSENTIAL, ADVANTAGE, PREMIER, DEVICEADMIN, VM
    status String
    License status

    • Choices: ENABLED, DISABLED
    name string
    License name

    • Choices: ESSENTIAL, ADVANTAGE, PREMIER, DEVICEADMIN, VM
    status string
    License status

    • Choices: ENABLED, DISABLED
    name str
    License name

    • Choices: ESSENTIAL, ADVANTAGE, PREMIER, DEVICEADMIN, VM
    status str
    License status

    • Choices: ENABLED, DISABLED
    name String
    License name

    • Choices: ESSENTIAL, ADVANTAGE, PREMIER, DEVICEADMIN, VM
    status String
    License status

    • Choices: ENABLED, DISABLED

    Import

    $ pulumi import ise:system/licenseTierState:LicenseTierState example "76d24097-41c4-4558-a4d0-a8c07ac08470"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ise pulumi/pulumi-ise
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ise Terraform Provider.
    ise logo
    Cisco ISE v0.1.10 published on Tuesday, Nov 19, 2024 by Pulumi