@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
214 lines • 12.8 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,
* snmpVersion: "THREE",
* snmpUsername: "user123",
* snmpSecurityLevel: "PRIV",
* snmpAuthProtocol: "SHA2",
* snmpAuthPassword: "Cisco123",
* snmpPrivacyProtocol: "AES256",
* snmpPrivacyPassword: "Cisco12345",
* 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, { ...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?.authenticationDtlsRequired;
resourceInputs["authenticationEnableKeyWrap"] = state?.authenticationEnableKeyWrap;
resourceInputs["authenticationEnableMultiSecret"] = state?.authenticationEnableMultiSecret;
resourceInputs["authenticationEncryptionKey"] = state?.authenticationEncryptionKey;
resourceInputs["authenticationEncryptionKeyFormat"] = state?.authenticationEncryptionKeyFormat;
resourceInputs["authenticationMessageAuthenticatorCodeKey"] = state?.authenticationMessageAuthenticatorCodeKey;
resourceInputs["authenticationNetworkProtocol"] = state?.authenticationNetworkProtocol;
resourceInputs["authenticationRadiusSharedSecret"] = state?.authenticationRadiusSharedSecret;
resourceInputs["authenticationSecondRadiusSharedSecret"] = state?.authenticationSecondRadiusSharedSecret;
resourceInputs["coaPort"] = state?.coaPort;
resourceInputs["description"] = state?.description;
resourceInputs["dtlsDnsName"] = state?.dtlsDnsName;
resourceInputs["ips"] = state?.ips;
resourceInputs["modelName"] = state?.modelName;
resourceInputs["name"] = state?.name;
resourceInputs["networkDeviceGroups"] = state?.networkDeviceGroups;
resourceInputs["profileName"] = state?.profileName;
resourceInputs["snmpAuthPassword"] = state?.snmpAuthPassword;
resourceInputs["snmpAuthProtocol"] = state?.snmpAuthProtocol;
resourceInputs["snmpLinkTrapQuery"] = state?.snmpLinkTrapQuery;
resourceInputs["snmpMacTrapQuery"] = state?.snmpMacTrapQuery;
resourceInputs["snmpOriginatingPolicyServiceNode"] = state?.snmpOriginatingPolicyServiceNode;
resourceInputs["snmpPollingInterval"] = state?.snmpPollingInterval;
resourceInputs["snmpPrivacyPassword"] = state?.snmpPrivacyPassword;
resourceInputs["snmpPrivacyProtocol"] = state?.snmpPrivacyProtocol;
resourceInputs["snmpRoCommunity"] = state?.snmpRoCommunity;
resourceInputs["snmpSecurityLevel"] = state?.snmpSecurityLevel;
resourceInputs["snmpUsername"] = state?.snmpUsername;
resourceInputs["snmpVersion"] = state?.snmpVersion;
resourceInputs["softwareVersion"] = state?.softwareVersion;
resourceInputs["tacacsConnectModeOptions"] = state?.tacacsConnectModeOptions;
resourceInputs["tacacsSharedSecret"] = state?.tacacsSharedSecret;
resourceInputs["trustsecCoaSourceHost"] = state?.trustsecCoaSourceHost;
resourceInputs["trustsecDeviceId"] = state?.trustsecDeviceId;
resourceInputs["trustsecDevicePassword"] = state?.trustsecDevicePassword;
resourceInputs["trustsecDownloadEnvironmentDataEveryXSeconds"] = state?.trustsecDownloadEnvironmentDataEveryXSeconds;
resourceInputs["trustsecDownloadPeerAuthorizationPolicyEveryXSeconds"] = state?.trustsecDownloadPeerAuthorizationPolicyEveryXSeconds;
resourceInputs["trustsecDownloadSgaclListsEveryXSeconds"] = state?.trustsecDownloadSgaclListsEveryXSeconds;
resourceInputs["trustsecEnableModePassword"] = state?.trustsecEnableModePassword;
resourceInputs["trustsecExecModePassword"] = state?.trustsecExecModePassword;
resourceInputs["trustsecExecModeUsername"] = state?.trustsecExecModeUsername;
resourceInputs["trustsecIncludeWhenDeployingSgtUpdates"] = state?.trustsecIncludeWhenDeployingSgtUpdates;
resourceInputs["trustsecOtherSgaDevicesToTrustThisDevice"] = state?.trustsecOtherSgaDevicesToTrustThisDevice;
resourceInputs["trustsecReAuthenticationEveryXSeconds"] = state?.trustsecReAuthenticationEveryXSeconds;
resourceInputs["trustsecRestApiPassword"] = state?.trustsecRestApiPassword;
resourceInputs["trustsecRestApiUsername"] = state?.trustsecRestApiUsername;
resourceInputs["trustsecSendConfigurationToDevice"] = state?.trustsecSendConfigurationToDevice;
resourceInputs["trustsecSendConfigurationToDeviceUsing"] = state?.trustsecSendConfigurationToDeviceUsing;
}
else {
const args = argsOrState;
if (args?.ips === undefined && !opts.urn) {
throw new Error("Missing required property 'ips'");
}
resourceInputs["authenticationDtlsRequired"] = args?.authenticationDtlsRequired;
resourceInputs["authenticationEnableKeyWrap"] = args?.authenticationEnableKeyWrap;
resourceInputs["authenticationEnableMultiSecret"] = args?.authenticationEnableMultiSecret;
resourceInputs["authenticationEncryptionKey"] = args?.authenticationEncryptionKey;
resourceInputs["authenticationEncryptionKeyFormat"] = args?.authenticationEncryptionKeyFormat;
resourceInputs["authenticationMessageAuthenticatorCodeKey"] = args?.authenticationMessageAuthenticatorCodeKey;
resourceInputs["authenticationNetworkProtocol"] = args?.authenticationNetworkProtocol;
resourceInputs["authenticationRadiusSharedSecret"] = args?.authenticationRadiusSharedSecret;
resourceInputs["authenticationSecondRadiusSharedSecret"] = args?.authenticationSecondRadiusSharedSecret;
resourceInputs["coaPort"] = args?.coaPort;
resourceInputs["description"] = args?.description;
resourceInputs["dtlsDnsName"] = args?.dtlsDnsName;
resourceInputs["ips"] = args?.ips;
resourceInputs["modelName"] = args?.modelName;
resourceInputs["name"] = args?.name;
resourceInputs["networkDeviceGroups"] = args?.networkDeviceGroups;
resourceInputs["profileName"] = args?.profileName;
resourceInputs["snmpAuthPassword"] = args?.snmpAuthPassword;
resourceInputs["snmpAuthProtocol"] = args?.snmpAuthProtocol;
resourceInputs["snmpLinkTrapQuery"] = args?.snmpLinkTrapQuery;
resourceInputs["snmpMacTrapQuery"] = args?.snmpMacTrapQuery;
resourceInputs["snmpOriginatingPolicyServiceNode"] = args?.snmpOriginatingPolicyServiceNode;
resourceInputs["snmpPollingInterval"] = args?.snmpPollingInterval;
resourceInputs["snmpPrivacyPassword"] = args?.snmpPrivacyPassword;
resourceInputs["snmpPrivacyProtocol"] = args?.snmpPrivacyProtocol;
resourceInputs["snmpRoCommunity"] = args?.snmpRoCommunity;
resourceInputs["snmpSecurityLevel"] = args?.snmpSecurityLevel;
resourceInputs["snmpUsername"] = args?.snmpUsername;
resourceInputs["snmpVersion"] = args?.snmpVersion;
resourceInputs["softwareVersion"] = args?.softwareVersion;
resourceInputs["tacacsConnectModeOptions"] = args?.tacacsConnectModeOptions;
resourceInputs["tacacsSharedSecret"] = args?.tacacsSharedSecret;
resourceInputs["trustsecCoaSourceHost"] = args?.trustsecCoaSourceHost;
resourceInputs["trustsecDeviceId"] = args?.trustsecDeviceId;
resourceInputs["trustsecDevicePassword"] = args?.trustsecDevicePassword;
resourceInputs["trustsecDownloadEnvironmentDataEveryXSeconds"] = args?.trustsecDownloadEnvironmentDataEveryXSeconds;
resourceInputs["trustsecDownloadPeerAuthorizationPolicyEveryXSeconds"] = args?.trustsecDownloadPeerAuthorizationPolicyEveryXSeconds;
resourceInputs["trustsecDownloadSgaclListsEveryXSeconds"] = args?.trustsecDownloadSgaclListsEveryXSeconds;
resourceInputs["trustsecEnableModePassword"] = args?.trustsecEnableModePassword;
resourceInputs["trustsecExecModePassword"] = args?.trustsecExecModePassword;
resourceInputs["trustsecExecModeUsername"] = args?.trustsecExecModeUsername;
resourceInputs["trustsecIncludeWhenDeployingSgtUpdates"] = args?.trustsecIncludeWhenDeployingSgtUpdates;
resourceInputs["trustsecOtherSgaDevicesToTrustThisDevice"] = args?.trustsecOtherSgaDevicesToTrustThisDevice;
resourceInputs["trustsecReAuthenticationEveryXSeconds"] = args?.trustsecReAuthenticationEveryXSeconds;
resourceInputs["trustsecRestApiPassword"] = args?.trustsecRestApiPassword;
resourceInputs["trustsecRestApiUsername"] = args?.trustsecRestApiUsername;
resourceInputs["trustsecSendConfigurationToDevice"] = args?.trustsecSendConfigurationToDevice;
resourceInputs["trustsecSendConfigurationToDeviceUsing"] = args?.trustsecSendConfigurationToDeviceUsing;
}
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