@pulumi/ise
Version:
A Pulumi package for managing resources on a Cisco ISE (Identity Service Engine) instance.. Based on terraform-provider-ise: version v0.2.1
197 lines • 13.3 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Device = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource can manage a Network Device.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ise from "@pulumi/ise";
*
* const example = new ise.network.Device("example", {
* name: "Device1",
* description: "My device",
* authenticationEnableKeyWrap: true,
* authenticationEncryptionKey: "cisco123cisco123",
* authenticationEncryptionKeyFormat: "ASCII",
* authenticationMessageAuthenticatorCodeKey: "cisco123cisco1235678",
* authenticationNetworkProtocol: "RADIUS",
* authenticationRadiusSharedSecret: "cisco123",
* authenticationEnableMultiSecret: true,
* authenticationSecondRadiusSharedSecret: "cisco12345",
* authenticationDtlsRequired: true,
* coaPort: 12345,
* dtlsDnsName: "cisco.com",
* ips: [{
* ipaddress: "2.3.4.5",
* mask: "32",
* }],
* modelName: "Unknown",
* softwareVersion: "Unknown",
* profileName: "Cisco",
* snmpLinkTrapQuery: true,
* snmpMacTrapQuery: true,
* snmpPollingInterval: 1200,
* snmpRoCommunity: "rocom",
* snmpVersion: "TWO_C",
* tacacsConnectModeOptions: "OFF",
* tacacsSharedSecret: "cisco123",
* trustsecDeviceId: "device123",
* trustsecDevicePassword: "cisco123",
* trustsecRestApiUsername: "user123",
* trustsecRestApiPassword: "Cisco123",
* trustsecEnableModePassword: "cisco123",
* trustsecExecModePassword: "cisco123",
* trustsecExecModeUsername: "user456",
* trustsecIncludeWhenDeployingSgtUpdates: true,
* trustsecDownloadEnvironmentDataEveryXSeconds: 1000,
* trustsecDownloadPeerAuthorizationPolicyEveryXSeconds: 1000,
* trustsecDownloadSgaclListsEveryXSeconds: 1000,
* trustsecOtherSgaDevicesToTrustThisDevice: true,
* trustsecReAuthenticationEveryXSeconds: 1000,
* trustsecSendConfigurationToDevice: true,
* trustsecSendConfigurationToDeviceUsing: "ENABLE_USING_COA",
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import ise:network/device:Device example "76d24097-41c4-4558-a4d0-a8c07ac08470"
* ```
*/
class Device extends pulumi.CustomResource {
/**
* Get an existing Device resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new Device(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Device. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Device.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["authenticationDtlsRequired"] = state ? state.authenticationDtlsRequired : undefined;
resourceInputs["authenticationEnableKeyWrap"] = state ? state.authenticationEnableKeyWrap : undefined;
resourceInputs["authenticationEnableMultiSecret"] = state ? state.authenticationEnableMultiSecret : undefined;
resourceInputs["authenticationEncryptionKey"] = state ? state.authenticationEncryptionKey : undefined;
resourceInputs["authenticationEncryptionKeyFormat"] = state ? state.authenticationEncryptionKeyFormat : undefined;
resourceInputs["authenticationMessageAuthenticatorCodeKey"] = state ? state.authenticationMessageAuthenticatorCodeKey : undefined;
resourceInputs["authenticationNetworkProtocol"] = state ? state.authenticationNetworkProtocol : undefined;
resourceInputs["authenticationRadiusSharedSecret"] = state ? state.authenticationRadiusSharedSecret : undefined;
resourceInputs["authenticationSecondRadiusSharedSecret"] = state ? state.authenticationSecondRadiusSharedSecret : undefined;
resourceInputs["coaPort"] = state ? state.coaPort : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["dtlsDnsName"] = state ? state.dtlsDnsName : undefined;
resourceInputs["ips"] = state ? state.ips : undefined;
resourceInputs["modelName"] = state ? state.modelName : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["networkDeviceGroups"] = state ? state.networkDeviceGroups : undefined;
resourceInputs["profileName"] = state ? state.profileName : undefined;
resourceInputs["snmpLinkTrapQuery"] = state ? state.snmpLinkTrapQuery : undefined;
resourceInputs["snmpMacTrapQuery"] = state ? state.snmpMacTrapQuery : undefined;
resourceInputs["snmpOriginatingPolicyServiceNode"] = state ? state.snmpOriginatingPolicyServiceNode : undefined;
resourceInputs["snmpPollingInterval"] = state ? state.snmpPollingInterval : undefined;
resourceInputs["snmpRoCommunity"] = state ? state.snmpRoCommunity : undefined;
resourceInputs["snmpVersion"] = state ? state.snmpVersion : undefined;
resourceInputs["softwareVersion"] = state ? state.softwareVersion : undefined;
resourceInputs["tacacsConnectModeOptions"] = state ? state.tacacsConnectModeOptions : undefined;
resourceInputs["tacacsSharedSecret"] = state ? state.tacacsSharedSecret : undefined;
resourceInputs["trustsecCoaSourceHost"] = state ? state.trustsecCoaSourceHost : undefined;
resourceInputs["trustsecDeviceId"] = state ? state.trustsecDeviceId : undefined;
resourceInputs["trustsecDevicePassword"] = state ? state.trustsecDevicePassword : undefined;
resourceInputs["trustsecDownloadEnvironmentDataEveryXSeconds"] = state ? state.trustsecDownloadEnvironmentDataEveryXSeconds : undefined;
resourceInputs["trustsecDownloadPeerAuthorizationPolicyEveryXSeconds"] = state ? state.trustsecDownloadPeerAuthorizationPolicyEveryXSeconds : undefined;
resourceInputs["trustsecDownloadSgaclListsEveryXSeconds"] = state ? state.trustsecDownloadSgaclListsEveryXSeconds : undefined;
resourceInputs["trustsecEnableModePassword"] = state ? state.trustsecEnableModePassword : undefined;
resourceInputs["trustsecExecModePassword"] = state ? state.trustsecExecModePassword : undefined;
resourceInputs["trustsecExecModeUsername"] = state ? state.trustsecExecModeUsername : undefined;
resourceInputs["trustsecIncludeWhenDeployingSgtUpdates"] = state ? state.trustsecIncludeWhenDeployingSgtUpdates : undefined;
resourceInputs["trustsecOtherSgaDevicesToTrustThisDevice"] = state ? state.trustsecOtherSgaDevicesToTrustThisDevice : undefined;
resourceInputs["trustsecReAuthenticationEveryXSeconds"] = state ? state.trustsecReAuthenticationEveryXSeconds : undefined;
resourceInputs["trustsecRestApiPassword"] = state ? state.trustsecRestApiPassword : undefined;
resourceInputs["trustsecRestApiUsername"] = state ? state.trustsecRestApiUsername : undefined;
resourceInputs["trustsecSendConfigurationToDevice"] = state ? state.trustsecSendConfigurationToDevice : undefined;
resourceInputs["trustsecSendConfigurationToDeviceUsing"] = state ? state.trustsecSendConfigurationToDeviceUsing : undefined;
}
else {
const args = argsOrState;
if ((!args || args.ips === undefined) && !opts.urn) {
throw new Error("Missing required property 'ips'");
}
resourceInputs["authenticationDtlsRequired"] = args ? args.authenticationDtlsRequired : undefined;
resourceInputs["authenticationEnableKeyWrap"] = args ? args.authenticationEnableKeyWrap : undefined;
resourceInputs["authenticationEnableMultiSecret"] = args ? args.authenticationEnableMultiSecret : undefined;
resourceInputs["authenticationEncryptionKey"] = args ? args.authenticationEncryptionKey : undefined;
resourceInputs["authenticationEncryptionKeyFormat"] = args ? args.authenticationEncryptionKeyFormat : undefined;
resourceInputs["authenticationMessageAuthenticatorCodeKey"] = args ? args.authenticationMessageAuthenticatorCodeKey : undefined;
resourceInputs["authenticationNetworkProtocol"] = args ? args.authenticationNetworkProtocol : undefined;
resourceInputs["authenticationRadiusSharedSecret"] = args ? args.authenticationRadiusSharedSecret : undefined;
resourceInputs["authenticationSecondRadiusSharedSecret"] = args ? args.authenticationSecondRadiusSharedSecret : undefined;
resourceInputs["coaPort"] = args ? args.coaPort : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["dtlsDnsName"] = args ? args.dtlsDnsName : undefined;
resourceInputs["ips"] = args ? args.ips : undefined;
resourceInputs["modelName"] = args ? args.modelName : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["networkDeviceGroups"] = args ? args.networkDeviceGroups : undefined;
resourceInputs["profileName"] = args ? args.profileName : undefined;
resourceInputs["snmpLinkTrapQuery"] = args ? args.snmpLinkTrapQuery : undefined;
resourceInputs["snmpMacTrapQuery"] = args ? args.snmpMacTrapQuery : undefined;
resourceInputs["snmpOriginatingPolicyServiceNode"] = args ? args.snmpOriginatingPolicyServiceNode : undefined;
resourceInputs["snmpPollingInterval"] = args ? args.snmpPollingInterval : undefined;
resourceInputs["snmpRoCommunity"] = args ? args.snmpRoCommunity : undefined;
resourceInputs["snmpVersion"] = args ? args.snmpVersion : undefined;
resourceInputs["softwareVersion"] = args ? args.softwareVersion : undefined;
resourceInputs["tacacsConnectModeOptions"] = args ? args.tacacsConnectModeOptions : undefined;
resourceInputs["tacacsSharedSecret"] = args ? args.tacacsSharedSecret : undefined;
resourceInputs["trustsecCoaSourceHost"] = args ? args.trustsecCoaSourceHost : undefined;
resourceInputs["trustsecDeviceId"] = args ? args.trustsecDeviceId : undefined;
resourceInputs["trustsecDevicePassword"] = args ? args.trustsecDevicePassword : undefined;
resourceInputs["trustsecDownloadEnvironmentDataEveryXSeconds"] = args ? args.trustsecDownloadEnvironmentDataEveryXSeconds : undefined;
resourceInputs["trustsecDownloadPeerAuthorizationPolicyEveryXSeconds"] = args ? args.trustsecDownloadPeerAuthorizationPolicyEveryXSeconds : undefined;
resourceInputs["trustsecDownloadSgaclListsEveryXSeconds"] = args ? args.trustsecDownloadSgaclListsEveryXSeconds : undefined;
resourceInputs["trustsecEnableModePassword"] = args ? args.trustsecEnableModePassword : undefined;
resourceInputs["trustsecExecModePassword"] = args ? args.trustsecExecModePassword : undefined;
resourceInputs["trustsecExecModeUsername"] = args ? args.trustsecExecModeUsername : undefined;
resourceInputs["trustsecIncludeWhenDeployingSgtUpdates"] = args ? args.trustsecIncludeWhenDeployingSgtUpdates : undefined;
resourceInputs["trustsecOtherSgaDevicesToTrustThisDevice"] = args ? args.trustsecOtherSgaDevicesToTrustThisDevice : undefined;
resourceInputs["trustsecReAuthenticationEveryXSeconds"] = args ? args.trustsecReAuthenticationEveryXSeconds : undefined;
resourceInputs["trustsecRestApiPassword"] = args ? args.trustsecRestApiPassword : undefined;
resourceInputs["trustsecRestApiUsername"] = args ? args.trustsecRestApiUsername : undefined;
resourceInputs["trustsecSendConfigurationToDevice"] = args ? args.trustsecSendConfigurationToDevice : undefined;
resourceInputs["trustsecSendConfigurationToDeviceUsing"] = args ? args.trustsecSendConfigurationToDeviceUsing : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Device.__pulumiType, name, resourceInputs, opts);
}
}
exports.Device = Device;
/** @internal */
Device.__pulumiType = 'ise:network/device:Device';
//# sourceMappingURL=device.js.map