@pulumi/ise 0.2.0-alpha.1729195492 → 0.2.0-alpha.1730384208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deviceadmin/authenticationRuleUpdateRank.d.ts +88 -0
- package/deviceadmin/authenticationRuleUpdateRank.js +78 -0
- package/deviceadmin/authenticationRuleUpdateRank.js.map +1 -0
- package/deviceadmin/authorizationExceptionRuleUpdateRank.d.ts +88 -0
- package/deviceadmin/authorizationExceptionRuleUpdateRank.js +78 -0
- package/deviceadmin/authorizationExceptionRuleUpdateRank.js.map +1 -0
- package/deviceadmin/authorizationGlobalExceptionRuleUpdateRank.d.ts +75 -0
- package/deviceadmin/authorizationGlobalExceptionRuleUpdateRank.js +72 -0
- package/deviceadmin/authorizationGlobalExceptionRuleUpdateRank.js.map +1 -0
- package/deviceadmin/authorizationRuleUpdateRank.d.ts +88 -0
- package/deviceadmin/authorizationRuleUpdateRank.js +78 -0
- package/deviceadmin/authorizationRuleUpdateRank.js.map +1 -0
- package/deviceadmin/index.d.ts +15 -0
- package/deviceadmin/index.js +26 -1
- package/deviceadmin/index.js.map +1 -1
- package/deviceadmin/policySet.d.ts +2 -2
- package/deviceadmin/policySetUpdateRank.d.ts +75 -0
- package/deviceadmin/policySetUpdateRank.js +72 -0
- package/deviceadmin/policySetUpdateRank.js.map +1 -0
- package/networkaccess/authenticationRuleUpdateRank.d.ts +88 -0
- package/networkaccess/authenticationRuleUpdateRank.js +78 -0
- package/networkaccess/authenticationRuleUpdateRank.js.map +1 -0
- package/networkaccess/authorizationExceptionRuleUpdateRank.d.ts +88 -0
- package/networkaccess/authorizationExceptionRuleUpdateRank.js +78 -0
- package/networkaccess/authorizationExceptionRuleUpdateRank.js.map +1 -0
- package/networkaccess/authorizationGlobalExceptionRuleUpdateRank.d.ts +75 -0
- package/networkaccess/authorizationGlobalExceptionRuleUpdateRank.js +72 -0
- package/networkaccess/authorizationGlobalExceptionRuleUpdateRank.js.map +1 -0
- package/networkaccess/authorizationRuleUpdateRank.d.ts +88 -0
- package/networkaccess/authorizationRuleUpdateRank.js +78 -0
- package/networkaccess/authorizationRuleUpdateRank.js.map +1 -0
- package/networkaccess/index.d.ts +15 -0
- package/networkaccess/index.js +26 -1
- package/networkaccess/index.js.map +1 -1
- package/networkaccess/policySet.d.ts +2 -2
- package/networkaccess/policySetUpdateRank.d.ts +75 -0
- package/networkaccess/policySetUpdateRank.js +72 -0
- package/networkaccess/policySetUpdateRank.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource is used to update rank field in device admin authentication 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 deviceAdminAuthenticationRule 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.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as ise from "@pulumi/ise";
|
|
10
|
+
*
|
|
11
|
+
* const example = new ise.deviceadmin.AuthenticationRuleUpdateRank("example", {
|
|
12
|
+
* ruleId: "9b3680da-0165-44f6-9cff-88e778d98020",
|
|
13
|
+
* policySetId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
|
14
|
+
* rank: 0,
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class AuthenticationRuleUpdateRank extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing AuthenticationRuleUpdateRank resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param state Any extra arguments used during the lookup.
|
|
26
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
+
*/
|
|
28
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AuthenticationRuleUpdateRankState, opts?: pulumi.CustomResourceOptions): AuthenticationRuleUpdateRank;
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the given object is an instance of AuthenticationRuleUpdateRank. This is designed to work even
|
|
31
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
32
|
+
*/
|
|
33
|
+
static isInstance(obj: any): obj is AuthenticationRuleUpdateRank;
|
|
34
|
+
/**
|
|
35
|
+
* Policy set ID
|
|
36
|
+
*/
|
|
37
|
+
readonly policySetId: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
40
|
+
*/
|
|
41
|
+
readonly rank: pulumi.Output<number>;
|
|
42
|
+
/**
|
|
43
|
+
* Authentication rule ID
|
|
44
|
+
*/
|
|
45
|
+
readonly ruleId: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a AuthenticationRuleUpdateRank resource with the given unique name, arguments, and options.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resource.
|
|
50
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
51
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, args: AuthenticationRuleUpdateRankArgs, opts?: pulumi.CustomResourceOptions);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Input properties used for looking up and filtering AuthenticationRuleUpdateRank resources.
|
|
57
|
+
*/
|
|
58
|
+
export interface AuthenticationRuleUpdateRankState {
|
|
59
|
+
/**
|
|
60
|
+
* Policy set ID
|
|
61
|
+
*/
|
|
62
|
+
policySetId?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
65
|
+
*/
|
|
66
|
+
rank?: pulumi.Input<number>;
|
|
67
|
+
/**
|
|
68
|
+
* Authentication rule ID
|
|
69
|
+
*/
|
|
70
|
+
ruleId?: pulumi.Input<string>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a AuthenticationRuleUpdateRank resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface AuthenticationRuleUpdateRankArgs {
|
|
76
|
+
/**
|
|
77
|
+
* Policy set ID
|
|
78
|
+
*/
|
|
79
|
+
policySetId: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
82
|
+
*/
|
|
83
|
+
rank: pulumi.Input<number>;
|
|
84
|
+
/**
|
|
85
|
+
* Authentication rule ID
|
|
86
|
+
*/
|
|
87
|
+
ruleId: pulumi.Input<string>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AuthenticationRuleUpdateRank = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource is used to update rank field in device admin authentication 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 deviceAdminAuthenticationRule 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.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as ise from "@pulumi/ise";
|
|
16
|
+
*
|
|
17
|
+
* const example = new ise.deviceadmin.AuthenticationRuleUpdateRank("example", {
|
|
18
|
+
* ruleId: "9b3680da-0165-44f6-9cff-88e778d98020",
|
|
19
|
+
* policySetId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
|
20
|
+
* rank: 0,
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
class AuthenticationRuleUpdateRank extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing AuthenticationRuleUpdateRank resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name, id, state, opts) {
|
|
35
|
+
return new AuthenticationRuleUpdateRank(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of AuthenticationRuleUpdateRank. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj) {
|
|
42
|
+
if (obj === undefined || obj === null) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return obj['__pulumiType'] === AuthenticationRuleUpdateRank.__pulumiType;
|
|
46
|
+
}
|
|
47
|
+
constructor(name, argsOrState, opts) {
|
|
48
|
+
let resourceInputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
if (opts.id) {
|
|
51
|
+
const state = argsOrState;
|
|
52
|
+
resourceInputs["policySetId"] = state ? state.policySetId : undefined;
|
|
53
|
+
resourceInputs["rank"] = state ? state.rank : undefined;
|
|
54
|
+
resourceInputs["ruleId"] = state ? state.ruleId : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.policySetId === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'policySetId'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.rank === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'rank'");
|
|
63
|
+
}
|
|
64
|
+
if ((!args || args.ruleId === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'ruleId'");
|
|
66
|
+
}
|
|
67
|
+
resourceInputs["policySetId"] = args ? args.policySetId : undefined;
|
|
68
|
+
resourceInputs["rank"] = args ? args.rank : undefined;
|
|
69
|
+
resourceInputs["ruleId"] = args ? args.ruleId : undefined;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(AuthenticationRuleUpdateRank.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.AuthenticationRuleUpdateRank = AuthenticationRuleUpdateRank;
|
|
76
|
+
/** @internal */
|
|
77
|
+
AuthenticationRuleUpdateRank.__pulumiType = 'ise:deviceadmin/authenticationRuleUpdateRank:AuthenticationRuleUpdateRank';
|
|
78
|
+
//# sourceMappingURL=authenticationRuleUpdateRank.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationRuleUpdateRank.js","sourceRoot":"","sources":["../../deviceadmin/authenticationRuleUpdateRank.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EA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C,CAAC,CAAC;aACvD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AA1EL,oEA2EC;AA7DG,gBAAgB;AACO,yCAAY,GAAG,2EAA2E,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource is used to update rank field in device admin 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 deviceAdminAuthorizationExceptionRule 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.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as ise from "@pulumi/ise";
|
|
10
|
+
*
|
|
11
|
+
* const example = new ise.deviceadmin.AuthorizationExceptionRuleUpdateRank("example", {
|
|
12
|
+
* ruleId: "9b3680da-0165-44f6-9cff-88e778d98020",
|
|
13
|
+
* policySetId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
|
14
|
+
* rank: 0,
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class AuthorizationExceptionRuleUpdateRank extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing AuthorizationExceptionRuleUpdateRank resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param state Any extra arguments used during the lookup.
|
|
26
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
+
*/
|
|
28
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AuthorizationExceptionRuleUpdateRankState, opts?: pulumi.CustomResourceOptions): AuthorizationExceptionRuleUpdateRank;
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the given object is an instance of AuthorizationExceptionRuleUpdateRank. This is designed to work even
|
|
31
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
32
|
+
*/
|
|
33
|
+
static isInstance(obj: any): obj is AuthorizationExceptionRuleUpdateRank;
|
|
34
|
+
/**
|
|
35
|
+
* Policy set ID
|
|
36
|
+
*/
|
|
37
|
+
readonly policySetId: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
40
|
+
*/
|
|
41
|
+
readonly rank: pulumi.Output<number>;
|
|
42
|
+
/**
|
|
43
|
+
* Authorization exception rule ID
|
|
44
|
+
*/
|
|
45
|
+
readonly ruleId: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a AuthorizationExceptionRuleUpdateRank resource with the given unique name, arguments, and options.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resource.
|
|
50
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
51
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, args: AuthorizationExceptionRuleUpdateRankArgs, opts?: pulumi.CustomResourceOptions);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Input properties used for looking up and filtering AuthorizationExceptionRuleUpdateRank resources.
|
|
57
|
+
*/
|
|
58
|
+
export interface AuthorizationExceptionRuleUpdateRankState {
|
|
59
|
+
/**
|
|
60
|
+
* Policy set ID
|
|
61
|
+
*/
|
|
62
|
+
policySetId?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
65
|
+
*/
|
|
66
|
+
rank?: pulumi.Input<number>;
|
|
67
|
+
/**
|
|
68
|
+
* Authorization exception rule ID
|
|
69
|
+
*/
|
|
70
|
+
ruleId?: pulumi.Input<string>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a AuthorizationExceptionRuleUpdateRank resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface AuthorizationExceptionRuleUpdateRankArgs {
|
|
76
|
+
/**
|
|
77
|
+
* Policy set ID
|
|
78
|
+
*/
|
|
79
|
+
policySetId: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
82
|
+
*/
|
|
83
|
+
rank: pulumi.Input<number>;
|
|
84
|
+
/**
|
|
85
|
+
* Authorization exception rule ID
|
|
86
|
+
*/
|
|
87
|
+
ruleId: pulumi.Input<string>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AuthorizationExceptionRuleUpdateRank = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource is used to update rank field in device admin 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 deviceAdminAuthorizationExceptionRule 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.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as ise from "@pulumi/ise";
|
|
16
|
+
*
|
|
17
|
+
* const example = new ise.deviceadmin.AuthorizationExceptionRuleUpdateRank("example", {
|
|
18
|
+
* ruleId: "9b3680da-0165-44f6-9cff-88e778d98020",
|
|
19
|
+
* policySetId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
|
20
|
+
* rank: 0,
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
class AuthorizationExceptionRuleUpdateRank extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing AuthorizationExceptionRuleUpdateRank resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name, id, state, opts) {
|
|
35
|
+
return new AuthorizationExceptionRuleUpdateRank(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns true if the given object is an instance of AuthorizationExceptionRuleUpdateRank. This is designed to work even
|
|
39
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
40
|
+
*/
|
|
41
|
+
static isInstance(obj) {
|
|
42
|
+
if (obj === undefined || obj === null) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return obj['__pulumiType'] === AuthorizationExceptionRuleUpdateRank.__pulumiType;
|
|
46
|
+
}
|
|
47
|
+
constructor(name, argsOrState, opts) {
|
|
48
|
+
let resourceInputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
if (opts.id) {
|
|
51
|
+
const state = argsOrState;
|
|
52
|
+
resourceInputs["policySetId"] = state ? state.policySetId : undefined;
|
|
53
|
+
resourceInputs["rank"] = state ? state.rank : undefined;
|
|
54
|
+
resourceInputs["ruleId"] = state ? state.ruleId : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.policySetId === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'policySetId'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.rank === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'rank'");
|
|
63
|
+
}
|
|
64
|
+
if ((!args || args.ruleId === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'ruleId'");
|
|
66
|
+
}
|
|
67
|
+
resourceInputs["policySetId"] = args ? args.policySetId : undefined;
|
|
68
|
+
resourceInputs["rank"] = args ? args.rank : undefined;
|
|
69
|
+
resourceInputs["ruleId"] = args ? args.ruleId : undefined;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(AuthorizationExceptionRuleUpdateRank.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.AuthorizationExceptionRuleUpdateRank = AuthorizationExceptionRuleUpdateRank;
|
|
76
|
+
/** @internal */
|
|
77
|
+
AuthorizationExceptionRuleUpdateRank.__pulumiType = 'ise:deviceadmin/authorizationExceptionRuleUpdateRank:AuthorizationExceptionRuleUpdateRank';
|
|
78
|
+
//# sourceMappingURL=authorizationExceptionRuleUpdateRank.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorizationExceptionRuleUpdateRank.js","sourceRoot":"","sources":["../../deviceadmin/authorizationExceptionRuleUpdateRank.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,MAAa,oCAAqC,SAAQ,MAAM,CAAC,cAAc;IAC3E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiD,EAAE,IAAmC;QAC/I,OAAO,IAAI,oCAAoC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3F,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,oCAAoC,CAAC,YAAY,CAAC;IACrF,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkG,EAAE,IAAmC;QAC7J,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoE,CAAC;YACnF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CA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,oCAAoC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzF,CAAC;;AA1EL,oFA2EC;AA7DG,gBAAgB;AACO,iDAAY,GAAG,2FAA2F,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource is used to update rank field in device admin authorization global 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 deviceAdminAuthorizationGlobalExceptionRule 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.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as ise from "@pulumi/ise";
|
|
10
|
+
*
|
|
11
|
+
* const example = new ise.deviceadmin.AuthorizationGlobalExceptionRuleUpdateRank("example", {
|
|
12
|
+
* ruleId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
|
13
|
+
* rank: 0,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare class AuthorizationGlobalExceptionRuleUpdateRank extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing AuthorizationGlobalExceptionRuleUpdateRank resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AuthorizationGlobalExceptionRuleUpdateRankState, opts?: pulumi.CustomResourceOptions): AuthorizationGlobalExceptionRuleUpdateRank;
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of AuthorizationGlobalExceptionRuleUpdateRank. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
static isInstance(obj: any): obj is AuthorizationGlobalExceptionRuleUpdateRank;
|
|
33
|
+
/**
|
|
34
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
35
|
+
*/
|
|
36
|
+
readonly rank: pulumi.Output<number>;
|
|
37
|
+
/**
|
|
38
|
+
* Authorization global exception rule ID
|
|
39
|
+
*/
|
|
40
|
+
readonly ruleId: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Create a AuthorizationGlobalExceptionRuleUpdateRank resource with the given unique name, arguments, and options.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resource.
|
|
45
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
46
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
47
|
+
*/
|
|
48
|
+
constructor(name: string, args: AuthorizationGlobalExceptionRuleUpdateRankArgs, opts?: pulumi.CustomResourceOptions);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Input properties used for looking up and filtering AuthorizationGlobalExceptionRuleUpdateRank resources.
|
|
52
|
+
*/
|
|
53
|
+
export interface AuthorizationGlobalExceptionRuleUpdateRankState {
|
|
54
|
+
/**
|
|
55
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
56
|
+
*/
|
|
57
|
+
rank?: pulumi.Input<number>;
|
|
58
|
+
/**
|
|
59
|
+
* Authorization global exception rule ID
|
|
60
|
+
*/
|
|
61
|
+
ruleId?: pulumi.Input<string>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The set of arguments for constructing a AuthorizationGlobalExceptionRuleUpdateRank resource.
|
|
65
|
+
*/
|
|
66
|
+
export interface AuthorizationGlobalExceptionRuleUpdateRankArgs {
|
|
67
|
+
/**
|
|
68
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
69
|
+
*/
|
|
70
|
+
rank: pulumi.Input<number>;
|
|
71
|
+
/**
|
|
72
|
+
* Authorization global exception rule ID
|
|
73
|
+
*/
|
|
74
|
+
ruleId: pulumi.Input<string>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AuthorizationGlobalExceptionRuleUpdateRank = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource is used to update rank field in device admin authorization global 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 deviceAdminAuthorizationGlobalExceptionRule 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.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as ise from "@pulumi/ise";
|
|
16
|
+
*
|
|
17
|
+
* const example = new ise.deviceadmin.AuthorizationGlobalExceptionRuleUpdateRank("example", {
|
|
18
|
+
* ruleId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
|
19
|
+
* rank: 0,
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
class AuthorizationGlobalExceptionRuleUpdateRank extends pulumi.CustomResource {
|
|
24
|
+
/**
|
|
25
|
+
* Get an existing AuthorizationGlobalExceptionRuleUpdateRank resource's state with the given name, ID, and optional extra
|
|
26
|
+
* properties used to qualify the lookup.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resulting resource.
|
|
29
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
30
|
+
* @param state Any extra arguments used during the lookup.
|
|
31
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
|
+
*/
|
|
33
|
+
static get(name, id, state, opts) {
|
|
34
|
+
return new AuthorizationGlobalExceptionRuleUpdateRank(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns true if the given object is an instance of AuthorizationGlobalExceptionRuleUpdateRank. This is designed to work even
|
|
38
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
39
|
+
*/
|
|
40
|
+
static isInstance(obj) {
|
|
41
|
+
if (obj === undefined || obj === null) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return obj['__pulumiType'] === AuthorizationGlobalExceptionRuleUpdateRank.__pulumiType;
|
|
45
|
+
}
|
|
46
|
+
constructor(name, argsOrState, opts) {
|
|
47
|
+
let resourceInputs = {};
|
|
48
|
+
opts = opts || {};
|
|
49
|
+
if (opts.id) {
|
|
50
|
+
const state = argsOrState;
|
|
51
|
+
resourceInputs["rank"] = state ? state.rank : undefined;
|
|
52
|
+
resourceInputs["ruleId"] = state ? state.ruleId : undefined;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const args = argsOrState;
|
|
56
|
+
if ((!args || args.rank === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'rank'");
|
|
58
|
+
}
|
|
59
|
+
if ((!args || args.ruleId === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'ruleId'");
|
|
61
|
+
}
|
|
62
|
+
resourceInputs["rank"] = args ? args.rank : undefined;
|
|
63
|
+
resourceInputs["ruleId"] = args ? args.ruleId : undefined;
|
|
64
|
+
}
|
|
65
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
66
|
+
super(AuthorizationGlobalExceptionRuleUpdateRank.__pulumiType, name, resourceInputs, opts);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.AuthorizationGlobalExceptionRuleUpdateRank = AuthorizationGlobalExceptionRuleUpdateRank;
|
|
70
|
+
/** @internal */
|
|
71
|
+
AuthorizationGlobalExceptionRuleUpdateRank.__pulumiType = 'ise:deviceadmin/authorizationGlobalExceptionRuleUpdateRank:AuthorizationGlobalExceptionRuleUpdateRank';
|
|
72
|
+
//# sourceMappingURL=authorizationGlobalExceptionRuleUpdateRank.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorizationGlobalExceptionRuleUpdateRank.js","sourceRoot":"","sources":["../../deviceadmin/authorizationGlobalExceptionRuleUpdateRank.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,MAAa,0CAA2C,SAAQ,MAAM,CAAC,cAAc;IACjF;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuD,EAAE,IAAmC;QACrJ,OAAO,IAAI,0CAA0C,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjG,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,0CAA0C,CAAC,YAAY,CAAC;IAC3F,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA8G,EAAE,IAAmC;QACzK,IAAI,cAAc,GAAkB,EA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|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource is used to update rank field in device admin authorization 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 deviceAdminAuthorizationRule 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.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as ise from "@pulumi/ise";
|
|
10
|
+
*
|
|
11
|
+
* const example = new ise.deviceadmin.AuthorizationRuleUpdateRank("example", {
|
|
12
|
+
* ruleId: "9b3680da-0165-44f6-9cff-88e778d98020",
|
|
13
|
+
* policySetId: "d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
|
14
|
+
* rank: 0,
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class AuthorizationRuleUpdateRank extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing AuthorizationRuleUpdateRank resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param state Any extra arguments used during the lookup.
|
|
26
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
27
|
+
*/
|
|
28
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AuthorizationRuleUpdateRankState, opts?: pulumi.CustomResourceOptions): AuthorizationRuleUpdateRank;
|
|
29
|
+
/**
|
|
30
|
+
* Returns true if the given object is an instance of AuthorizationRuleUpdateRank. This is designed to work even
|
|
31
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
32
|
+
*/
|
|
33
|
+
static isInstance(obj: any): obj is AuthorizationRuleUpdateRank;
|
|
34
|
+
/**
|
|
35
|
+
* Policy set ID
|
|
36
|
+
*/
|
|
37
|
+
readonly policySetId: pulumi.Output<string>;
|
|
38
|
+
/**
|
|
39
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
40
|
+
*/
|
|
41
|
+
readonly rank: pulumi.Output<number>;
|
|
42
|
+
/**
|
|
43
|
+
* Authorization rule ID
|
|
44
|
+
*/
|
|
45
|
+
readonly ruleId: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a AuthorizationRuleUpdateRank resource with the given unique name, arguments, and options.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resource.
|
|
50
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
51
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
52
|
+
*/
|
|
53
|
+
constructor(name: string, args: AuthorizationRuleUpdateRankArgs, opts?: pulumi.CustomResourceOptions);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Input properties used for looking up and filtering AuthorizationRuleUpdateRank resources.
|
|
57
|
+
*/
|
|
58
|
+
export interface AuthorizationRuleUpdateRankState {
|
|
59
|
+
/**
|
|
60
|
+
* Policy set ID
|
|
61
|
+
*/
|
|
62
|
+
policySetId?: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
65
|
+
*/
|
|
66
|
+
rank?: pulumi.Input<number>;
|
|
67
|
+
/**
|
|
68
|
+
* Authorization rule ID
|
|
69
|
+
*/
|
|
70
|
+
ruleId?: pulumi.Input<string>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a AuthorizationRuleUpdateRank resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface AuthorizationRuleUpdateRankArgs {
|
|
76
|
+
/**
|
|
77
|
+
* Policy set ID
|
|
78
|
+
*/
|
|
79
|
+
policySetId: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The rank (priority) in relation to other rules. Lower rank is higher priority.
|
|
82
|
+
*/
|
|
83
|
+
rank: pulumi.Input<number>;
|
|
84
|
+
/**
|
|
85
|
+
* Authorization rule ID
|
|
86
|
+
*/
|
|
87
|
+
ruleId: pulumi.Input<string>;
|
|
88
|
+
}
|