1. Packages
  2. Cisco ISE Provider
  3. API Docs
  4. networkaccess
  5. AuthorizationExceptionRuleUpdateRanks
Cisco ISE v0.2.2 published on Friday, Apr 25, 2025 by Pulumi

ise.networkaccess.AuthorizationExceptionRuleUpdateRanks

Explore with Pulumi AI

ise logo
Cisco ISE v0.2.2 published on Friday, Apr 25, 2025 by Pulumi

    This resource is used to bulk update rank field in network access authorization exception rule. It serves as a workaround for the ISE API/Backend limitation which restricts rank assignments to a strictly incremental sequence. By utilizing this resource and network_access_authorization_exception_rule resource, you can bypass the APIs limitation. Creation of this resource is performing PUT operation (Update) and it only tracks rank field. When this resource is destroyed, no action is performed on ISE and resource is just removed from state.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ise from "@pulumi/ise";
    
    const example = new ise.networkaccess.AuthorizationExceptionRuleUpdateRanks("example", {
        policySetId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
        rules: [{
            id: "3741aca3-db08-4899-af73-2e3f65ec31e1",
            rank: 0,
        }],
    });
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.networkaccess.AuthorizationExceptionRuleUpdateRanks("example",
        policy_set_id="d82952cb-b901-4b09-b363-5ebf39bdbaf9",
        rules=[{
            "id": "3741aca3-db08-4899-af73-2e3f65ec31e1",
            "rank": 0,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-ise/sdk/go/ise/networkaccess"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := networkaccess.NewAuthorizationExceptionRuleUpdateRanks(ctx, "example", &networkaccess.AuthorizationExceptionRuleUpdateRanksArgs{
    			PolicySetId: pulumi.String("d82952cb-b901-4b09-b363-5ebf39bdbaf9"),
    			Rules: networkaccess.AuthorizationExceptionRuleUpdateRanksRuleArray{
    				&networkaccess.AuthorizationExceptionRuleUpdateRanksRuleArgs{
    					Id:   pulumi.String("3741aca3-db08-4899-af73-2e3f65ec31e1"),
    					Rank: pulumi.Int(0),
    				},
    			},
    		})
    		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.NetworkAccess.AuthorizationExceptionRuleUpdateRanks("example", new()
        {
            PolicySetId = "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
            Rules = new[]
            {
                new Ise.NetworkAccess.Inputs.AuthorizationExceptionRuleUpdateRanksRuleArgs
                {
                    Id = "3741aca3-db08-4899-af73-2e3f65ec31e1",
                    Rank = 0,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ise.networkaccess.AuthorizationExceptionRuleUpdateRanks;
    import com.pulumi.ise.networkaccess.AuthorizationExceptionRuleUpdateRanksArgs;
    import com.pulumi.ise.networkaccess.inputs.AuthorizationExceptionRuleUpdateRanksRuleArgs;
    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 AuthorizationExceptionRuleUpdateRanks("example", AuthorizationExceptionRuleUpdateRanksArgs.builder()
                .policySetId("d82952cb-b901-4b09-b363-5ebf39bdbaf9")
                .rules(AuthorizationExceptionRuleUpdateRanksRuleArgs.builder()
                    .id("3741aca3-db08-4899-af73-2e3f65ec31e1")
                    .rank(0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ise:networkaccess:AuthorizationExceptionRuleUpdateRanks
        properties:
          policySetId: d82952cb-b901-4b09-b363-5ebf39bdbaf9
          rules:
            - id: 3741aca3-db08-4899-af73-2e3f65ec31e1
              rank: 0
    

    Create AuthorizationExceptionRuleUpdateRanks Resource

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

    Constructor syntax

    new AuthorizationExceptionRuleUpdateRanks(name: string, args: AuthorizationExceptionRuleUpdateRanksArgs, opts?: CustomResourceOptions);
    @overload
    def AuthorizationExceptionRuleUpdateRanks(resource_name: str,
                                              args: AuthorizationExceptionRuleUpdateRanksArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthorizationExceptionRuleUpdateRanks(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              policy_set_id: Optional[str] = None,
                                              rules: Optional[Sequence[AuthorizationExceptionRuleUpdateRanksRuleArgs]] = None)
    func NewAuthorizationExceptionRuleUpdateRanks(ctx *Context, name string, args AuthorizationExceptionRuleUpdateRanksArgs, opts ...ResourceOption) (*AuthorizationExceptionRuleUpdateRanks, error)
    public AuthorizationExceptionRuleUpdateRanks(string name, AuthorizationExceptionRuleUpdateRanksArgs args, CustomResourceOptions? opts = null)
    public AuthorizationExceptionRuleUpdateRanks(String name, AuthorizationExceptionRuleUpdateRanksArgs args)
    public AuthorizationExceptionRuleUpdateRanks(String name, AuthorizationExceptionRuleUpdateRanksArgs args, CustomResourceOptions options)
    
    type: ise:networkaccess:AuthorizationExceptionRuleUpdateRanks
    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 AuthorizationExceptionRuleUpdateRanksArgs
    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 AuthorizationExceptionRuleUpdateRanksArgs
    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 AuthorizationExceptionRuleUpdateRanksArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthorizationExceptionRuleUpdateRanksArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthorizationExceptionRuleUpdateRanksArgs
    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 iseAuthorizationExceptionRuleUpdateRanksResource = new Ise.NetworkAccess.AuthorizationExceptionRuleUpdateRanks("iseAuthorizationExceptionRuleUpdateRanksResource", new()
    {
        PolicySetId = "string",
        Rules = new[]
        {
            new Ise.NetworkAccess.Inputs.AuthorizationExceptionRuleUpdateRanksRuleArgs
            {
                Id = "string",
                Rank = 0,
            },
        },
    });
    
    example, err := networkaccess.NewAuthorizationExceptionRuleUpdateRanks(ctx, "iseAuthorizationExceptionRuleUpdateRanksResource", &networkaccess.AuthorizationExceptionRuleUpdateRanksArgs{
    	PolicySetId: pulumi.String("string"),
    	Rules: networkaccess.AuthorizationExceptionRuleUpdateRanksRuleArray{
    		&networkaccess.AuthorizationExceptionRuleUpdateRanksRuleArgs{
    			Id:   pulumi.String("string"),
    			Rank: pulumi.Int(0),
    		},
    	},
    })
    
    var iseAuthorizationExceptionRuleUpdateRanksResource = new com.pulumi.ise.networkaccess.AuthorizationExceptionRuleUpdateRanks("iseAuthorizationExceptionRuleUpdateRanksResource", com.pulumi.ise.networkaccess.AuthorizationExceptionRuleUpdateRanksArgs.builder()
        .policySetId("string")
        .rules(AuthorizationExceptionRuleUpdateRanksRuleArgs.builder()
            .id("string")
            .rank(0)
            .build())
        .build());
    
    ise_authorization_exception_rule_update_ranks_resource = ise.networkaccess.AuthorizationExceptionRuleUpdateRanks("iseAuthorizationExceptionRuleUpdateRanksResource",
        policy_set_id="string",
        rules=[{
            "id": "string",
            "rank": 0,
        }])
    
    const iseAuthorizationExceptionRuleUpdateRanksResource = new ise.networkaccess.AuthorizationExceptionRuleUpdateRanks("iseAuthorizationExceptionRuleUpdateRanksResource", {
        policySetId: "string",
        rules: [{
            id: "string",
            rank: 0,
        }],
    });
    
    type: ise:networkaccess:AuthorizationExceptionRuleUpdateRanks
    properties:
        policySetId: string
        rules:
            - id: string
              rank: 0
    

    AuthorizationExceptionRuleUpdateRanks 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 AuthorizationExceptionRuleUpdateRanks resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AuthorizationExceptionRuleUpdateRanks 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 AuthorizationExceptionRuleUpdateRanks Resource

    Get an existing AuthorizationExceptionRuleUpdateRanks 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?: AuthorizationExceptionRuleUpdateRanksState, opts?: CustomResourceOptions): AuthorizationExceptionRuleUpdateRanks
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            policy_set_id: Optional[str] = None,
            rules: Optional[Sequence[AuthorizationExceptionRuleUpdateRanksRuleArgs]] = None) -> AuthorizationExceptionRuleUpdateRanks
    func GetAuthorizationExceptionRuleUpdateRanks(ctx *Context, name string, id IDInput, state *AuthorizationExceptionRuleUpdateRanksState, opts ...ResourceOption) (*AuthorizationExceptionRuleUpdateRanks, error)
    public static AuthorizationExceptionRuleUpdateRanks Get(string name, Input<string> id, AuthorizationExceptionRuleUpdateRanksState? state, CustomResourceOptions? opts = null)
    public static AuthorizationExceptionRuleUpdateRanks get(String name, Output<String> id, AuthorizationExceptionRuleUpdateRanksState state, CustomResourceOptions options)
    resources:  _:    type: ise:networkaccess:AuthorizationExceptionRuleUpdateRanks    get:      id: ${id}
    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.

    Supporting Types

    AuthorizationExceptionRuleUpdateRanksRule, AuthorizationExceptionRuleUpdateRanksRuleArgs

    Id string
    Authorization rule ID
    Rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    Id string
    Authorization rule ID
    Rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    id String
    Authorization rule ID
    rank Integer
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    id string
    Authorization rule ID
    rank number
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    id str
    Authorization rule ID
    rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    id String
    Authorization rule ID
    rank Number
    The rank (priority) in relation to other rules. Lower rank is higher priority.

    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.2.2 published on Friday, Apr 25, 2025 by Pulumi