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

ise.networkaccess.AuthorizationExceptionRuleUpdateRank

Explore with Pulumi AI

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

    This resource is used to 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.AuthorizationExceptionRuleUpdateRank("example", {
        ruleId: "9b3680da-0165-44f6-9cff-88e778d98020",
        policySetId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
        rank: 0,
    });
    
    import pulumi
    import pulumi_ise as ise
    
    example = ise.networkaccess.AuthorizationExceptionRuleUpdateRank("example",
        rule_id="9b3680da-0165-44f6-9cff-88e778d98020",
        policy_set_id="d82952cb-b901-4b09-b363-5ebf39bdbaf9",
        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.NewAuthorizationExceptionRuleUpdateRank(ctx, "example", &networkaccess.AuthorizationExceptionRuleUpdateRankArgs{
    			RuleId:      pulumi.String("9b3680da-0165-44f6-9cff-88e778d98020"),
    			PolicySetId: pulumi.String("d82952cb-b901-4b09-b363-5ebf39bdbaf9"),
    			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.AuthorizationExceptionRuleUpdateRank("example", new()
        {
            RuleId = "9b3680da-0165-44f6-9cff-88e778d98020",
            PolicySetId = "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
            Rank = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ise.networkaccess.AuthorizationExceptionRuleUpdateRank;
    import com.pulumi.ise.networkaccess.AuthorizationExceptionRuleUpdateRankArgs;
    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 AuthorizationExceptionRuleUpdateRank("example", AuthorizationExceptionRuleUpdateRankArgs.builder()
                .ruleId("9b3680da-0165-44f6-9cff-88e778d98020")
                .policySetId("d82952cb-b901-4b09-b363-5ebf39bdbaf9")
                .rank(0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: ise:networkaccess:AuthorizationExceptionRuleUpdateRank
        properties:
          ruleId: 9b3680da-0165-44f6-9cff-88e778d98020
          policySetId: d82952cb-b901-4b09-b363-5ebf39bdbaf9
          rank: 0
    

    Create AuthorizationExceptionRuleUpdateRank Resource

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

    Constructor syntax

    new AuthorizationExceptionRuleUpdateRank(name: string, args: AuthorizationExceptionRuleUpdateRankArgs, opts?: CustomResourceOptions);
    @overload
    def AuthorizationExceptionRuleUpdateRank(resource_name: str,
                                             args: AuthorizationExceptionRuleUpdateRankArgs,
                                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthorizationExceptionRuleUpdateRank(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             policy_set_id: Optional[str] = None,
                                             rank: Optional[int] = None,
                                             rule_id: Optional[str] = None)
    func NewAuthorizationExceptionRuleUpdateRank(ctx *Context, name string, args AuthorizationExceptionRuleUpdateRankArgs, opts ...ResourceOption) (*AuthorizationExceptionRuleUpdateRank, error)
    public AuthorizationExceptionRuleUpdateRank(string name, AuthorizationExceptionRuleUpdateRankArgs args, CustomResourceOptions? opts = null)
    public AuthorizationExceptionRuleUpdateRank(String name, AuthorizationExceptionRuleUpdateRankArgs args)
    public AuthorizationExceptionRuleUpdateRank(String name, AuthorizationExceptionRuleUpdateRankArgs args, CustomResourceOptions options)
    
    type: ise:networkaccess:AuthorizationExceptionRuleUpdateRank
    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 AuthorizationExceptionRuleUpdateRankArgs
    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 AuthorizationExceptionRuleUpdateRankArgs
    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 AuthorizationExceptionRuleUpdateRankArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthorizationExceptionRuleUpdateRankArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthorizationExceptionRuleUpdateRankArgs
    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 iseAuthorizationExceptionRuleUpdateRankResource = new Ise.NetworkAccess.AuthorizationExceptionRuleUpdateRank("iseAuthorizationExceptionRuleUpdateRankResource", new()
    {
        PolicySetId = "string",
        Rank = 0,
        RuleId = "string",
    });
    
    example, err := networkaccess.NewAuthorizationExceptionRuleUpdateRank(ctx, "iseAuthorizationExceptionRuleUpdateRankResource", &networkaccess.AuthorizationExceptionRuleUpdateRankArgs{
    	PolicySetId: pulumi.String("string"),
    	Rank:        pulumi.Int(0),
    	RuleId:      pulumi.String("string"),
    })
    
    var iseAuthorizationExceptionRuleUpdateRankResource = new AuthorizationExceptionRuleUpdateRank("iseAuthorizationExceptionRuleUpdateRankResource", AuthorizationExceptionRuleUpdateRankArgs.builder()
        .policySetId("string")
        .rank(0)
        .ruleId("string")
        .build());
    
    ise_authorization_exception_rule_update_rank_resource = ise.networkaccess.AuthorizationExceptionRuleUpdateRank("iseAuthorizationExceptionRuleUpdateRankResource",
        policy_set_id="string",
        rank=0,
        rule_id="string")
    
    const iseAuthorizationExceptionRuleUpdateRankResource = new ise.networkaccess.AuthorizationExceptionRuleUpdateRank("iseAuthorizationExceptionRuleUpdateRankResource", {
        policySetId: "string",
        rank: 0,
        ruleId: "string",
    });
    
    type: ise:networkaccess:AuthorizationExceptionRuleUpdateRank
    properties:
        policySetId: string
        rank: 0
        ruleId: string
    

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

    PolicySetId string
    Policy set ID
    Rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    RuleId string
    Authorization exception rule ID
    PolicySetId string
    Policy set ID
    Rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    RuleId string
    Authorization exception rule ID
    policySetId String
    Policy set ID
    rank Integer
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    ruleId String
    Authorization exception rule ID
    policySetId string
    Policy set ID
    rank number
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    ruleId string
    Authorization exception rule ID
    policy_set_id str
    Policy set ID
    rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    rule_id str
    Authorization exception rule ID
    policySetId String
    Policy set ID
    rank Number
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    ruleId String
    Authorization exception rule ID

    Outputs

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

    Get an existing AuthorizationExceptionRuleUpdateRank 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?: AuthorizationExceptionRuleUpdateRankState, opts?: CustomResourceOptions): AuthorizationExceptionRuleUpdateRank
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            policy_set_id: Optional[str] = None,
            rank: Optional[int] = None,
            rule_id: Optional[str] = None) -> AuthorizationExceptionRuleUpdateRank
    func GetAuthorizationExceptionRuleUpdateRank(ctx *Context, name string, id IDInput, state *AuthorizationExceptionRuleUpdateRankState, opts ...ResourceOption) (*AuthorizationExceptionRuleUpdateRank, error)
    public static AuthorizationExceptionRuleUpdateRank Get(string name, Input<string> id, AuthorizationExceptionRuleUpdateRankState? state, CustomResourceOptions? opts = null)
    public static AuthorizationExceptionRuleUpdateRank get(String name, Output<String> id, AuthorizationExceptionRuleUpdateRankState 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:
    PolicySetId string
    Policy set ID
    Rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    RuleId string
    Authorization exception rule ID
    PolicySetId string
    Policy set ID
    Rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    RuleId string
    Authorization exception rule ID
    policySetId String
    Policy set ID
    rank Integer
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    ruleId String
    Authorization exception rule ID
    policySetId string
    Policy set ID
    rank number
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    ruleId string
    Authorization exception rule ID
    policy_set_id str
    Policy set ID
    rank int
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    rule_id str
    Authorization exception rule ID
    policySetId String
    Policy set ID
    rank Number
    The rank (priority) in relation to other rules. Lower rank is higher priority.
    ruleId String
    Authorization exception rule ID

    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