@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
230 lines • 15.1 kB
JavaScript
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Radius = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure RADIUS server entries.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.user.Radius("trname", {
* acctAllServers: "disable",
* allUsergroup: "disable",
* authType: "auto",
* h3cCompatibility: "disable",
* nasIp: "0.0.0.0",
* passwordEncoding: "auto",
* passwordRenewal: "disable",
* radiusCoa: "disable",
* radiusPort: 0,
* rsso: "disable",
* rssoContextTimeout: 28800,
* rssoEndpointAttribute: "Calling-Station-Id",
* rssoEpOneIpOnly: "disable",
* rssoFlushIpSession: "disable",
* rssoLogFlags: "protocol-error profile-missing accounting-stop-missed accounting-event endpoint-block radiusd-other",
* rssoLogPeriod: 0,
* rssoRadiusResponse: "disable",
* rssoRadiusServerPort: 1813,
* rssoValidateRequestSecret: "disable",
* secret: "FDaaewjkeiw32",
* server: "1.1.1.1",
* ssoAttribute: "Class",
* ssoAttributeValueOverride: "enable",
* timeout: 5,
* useManagementVdom: "disable",
* usernameCaseSensitive: "disable",
* });
* ```
*
* ## Import
*
* User Radius can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:user/radius:Radius labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:user/radius:Radius labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Radius extends pulumi.CustomResource {
/**
* Get an existing Radius 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 Radius(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Radius. 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'] === Radius.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accountKeyCertField"] = state ? state.accountKeyCertField : undefined;
resourceInputs["accountKeyProcessing"] = state ? state.accountKeyProcessing : undefined;
resourceInputs["accountingServers"] = state ? state.accountingServers : undefined;
resourceInputs["acctAllServers"] = state ? state.acctAllServers : undefined;
resourceInputs["acctInterimInterval"] = state ? state.acctInterimInterval : undefined;
resourceInputs["allUsergroup"] = state ? state.allUsergroup : undefined;
resourceInputs["authType"] = state ? state.authType : undefined;
resourceInputs["caCert"] = state ? state.caCert : undefined;
resourceInputs["callStationIdType"] = state ? state.callStationIdType : undefined;
resourceInputs["classes"] = state ? state.classes : undefined;
resourceInputs["clientCert"] = state ? state.clientCert : undefined;
resourceInputs["delimiter"] = state ? state.delimiter : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["groupOverrideAttrType"] = state ? state.groupOverrideAttrType : undefined;
resourceInputs["h3cCompatibility"] = state ? state.h3cCompatibility : undefined;
resourceInputs["interface"] = state ? state.interface : undefined;
resourceInputs["interfaceSelectMethod"] = state ? state.interfaceSelectMethod : undefined;
resourceInputs["macCase"] = state ? state.macCase : undefined;
resourceInputs["macPasswordDelimiter"] = state ? state.macPasswordDelimiter : undefined;
resourceInputs["macUsernameDelimiter"] = state ? state.macUsernameDelimiter : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["nasId"] = state ? state.nasId : undefined;
resourceInputs["nasIdType"] = state ? state.nasIdType : undefined;
resourceInputs["nasIp"] = state ? state.nasIp : undefined;
resourceInputs["passwordEncoding"] = state ? state.passwordEncoding : undefined;
resourceInputs["passwordRenewal"] = state ? state.passwordRenewal : undefined;
resourceInputs["radiusCoa"] = state ? state.radiusCoa : undefined;
resourceInputs["radiusPort"] = state ? state.radiusPort : undefined;
resourceInputs["rsso"] = state ? state.rsso : undefined;
resourceInputs["rssoContextTimeout"] = state ? state.rssoContextTimeout : undefined;
resourceInputs["rssoEndpointAttribute"] = state ? state.rssoEndpointAttribute : undefined;
resourceInputs["rssoEndpointBlockAttribute"] = state ? state.rssoEndpointBlockAttribute : undefined;
resourceInputs["rssoEpOneIpOnly"] = state ? state.rssoEpOneIpOnly : undefined;
resourceInputs["rssoFlushIpSession"] = state ? state.rssoFlushIpSession : undefined;
resourceInputs["rssoLogFlags"] = state ? state.rssoLogFlags : undefined;
resourceInputs["rssoLogPeriod"] = state ? state.rssoLogPeriod : undefined;
resourceInputs["rssoRadiusResponse"] = state ? state.rssoRadiusResponse : undefined;
resourceInputs["rssoRadiusServerPort"] = state ? state.rssoRadiusServerPort : undefined;
resourceInputs["rssoSecret"] = state ? state.rssoSecret : undefined;
resourceInputs["rssoValidateRequestSecret"] = state ? state.rssoValidateRequestSecret : undefined;
resourceInputs["secondarySecret"] = state ? state.secondarySecret : undefined;
resourceInputs["secondaryServer"] = state ? state.secondaryServer : undefined;
resourceInputs["secret"] = state ? state.secret : undefined;
resourceInputs["server"] = state ? state.server : undefined;
resourceInputs["serverIdentityCheck"] = state ? state.serverIdentityCheck : undefined;
resourceInputs["sourceIp"] = state ? state.sourceIp : undefined;
resourceInputs["ssoAttribute"] = state ? state.ssoAttribute : undefined;
resourceInputs["ssoAttributeKey"] = state ? state.ssoAttributeKey : undefined;
resourceInputs["ssoAttributeValueOverride"] = state ? state.ssoAttributeValueOverride : undefined;
resourceInputs["statusTtl"] = state ? state.statusTtl : undefined;
resourceInputs["switchControllerAcctFastFramedipDetect"] = state ? state.switchControllerAcctFastFramedipDetect : undefined;
resourceInputs["switchControllerNasIpDynamic"] = state ? state.switchControllerNasIpDynamic : undefined;
resourceInputs["switchControllerServiceType"] = state ? state.switchControllerServiceType : undefined;
resourceInputs["tertiarySecret"] = state ? state.tertiarySecret : undefined;
resourceInputs["tertiaryServer"] = state ? state.tertiaryServer : undefined;
resourceInputs["timeout"] = state ? state.timeout : undefined;
resourceInputs["tlsMinProtoVersion"] = state ? state.tlsMinProtoVersion : undefined;
resourceInputs["transportProtocol"] = state ? state.transportProtocol : undefined;
resourceInputs["useManagementVdom"] = state ? state.useManagementVdom : undefined;
resourceInputs["usernameCaseSensitive"] = state ? state.usernameCaseSensitive : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["accountKeyCertField"] = args ? args.accountKeyCertField : undefined;
resourceInputs["accountKeyProcessing"] = args ? args.accountKeyProcessing : undefined;
resourceInputs["accountingServers"] = args ? args.accountingServers : undefined;
resourceInputs["acctAllServers"] = args ? args.acctAllServers : undefined;
resourceInputs["acctInterimInterval"] = args ? args.acctInterimInterval : undefined;
resourceInputs["allUsergroup"] = args ? args.allUsergroup : undefined;
resourceInputs["authType"] = args ? args.authType : undefined;
resourceInputs["caCert"] = args ? args.caCert : undefined;
resourceInputs["callStationIdType"] = args ? args.callStationIdType : undefined;
resourceInputs["classes"] = args ? args.classes : undefined;
resourceInputs["clientCert"] = args ? args.clientCert : undefined;
resourceInputs["delimiter"] = args ? args.delimiter : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["groupOverrideAttrType"] = args ? args.groupOverrideAttrType : undefined;
resourceInputs["h3cCompatibility"] = args ? args.h3cCompatibility : undefined;
resourceInputs["interface"] = args ? args.interface : undefined;
resourceInputs["interfaceSelectMethod"] = args ? args.interfaceSelectMethod : undefined;
resourceInputs["macCase"] = args ? args.macCase : undefined;
resourceInputs["macPasswordDelimiter"] = args ? args.macPasswordDelimiter : undefined;
resourceInputs["macUsernameDelimiter"] = args ? args.macUsernameDelimiter : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["nasId"] = args ? args.nasId : undefined;
resourceInputs["nasIdType"] = args ? args.nasIdType : undefined;
resourceInputs["nasIp"] = args ? args.nasIp : undefined;
resourceInputs["passwordEncoding"] = args ? args.passwordEncoding : undefined;
resourceInputs["passwordRenewal"] = args ? args.passwordRenewal : undefined;
resourceInputs["radiusCoa"] = args ? args.radiusCoa : undefined;
resourceInputs["radiusPort"] = args ? args.radiusPort : undefined;
resourceInputs["rsso"] = args ? args.rsso : undefined;
resourceInputs["rssoContextTimeout"] = args ? args.rssoContextTimeout : undefined;
resourceInputs["rssoEndpointAttribute"] = args ? args.rssoEndpointAttribute : undefined;
resourceInputs["rssoEndpointBlockAttribute"] = args ? args.rssoEndpointBlockAttribute : undefined;
resourceInputs["rssoEpOneIpOnly"] = args ? args.rssoEpOneIpOnly : undefined;
resourceInputs["rssoFlushIpSession"] = args ? args.rssoFlushIpSession : undefined;
resourceInputs["rssoLogFlags"] = args ? args.rssoLogFlags : undefined;
resourceInputs["rssoLogPeriod"] = args ? args.rssoLogPeriod : undefined;
resourceInputs["rssoRadiusResponse"] = args ? args.rssoRadiusResponse : undefined;
resourceInputs["rssoRadiusServerPort"] = args ? args.rssoRadiusServerPort : undefined;
resourceInputs["rssoSecret"] = (args === null || args === void 0 ? void 0 : args.rssoSecret) ? pulumi.secret(args.rssoSecret) : undefined;
resourceInputs["rssoValidateRequestSecret"] = args ? args.rssoValidateRequestSecret : undefined;
resourceInputs["secondarySecret"] = (args === null || args === void 0 ? void 0 : args.secondarySecret) ? pulumi.secret(args.secondarySecret) : undefined;
resourceInputs["secondaryServer"] = args ? args.secondaryServer : undefined;
resourceInputs["secret"] = (args === null || args === void 0 ? void 0 : args.secret) ? pulumi.secret(args.secret) : undefined;
resourceInputs["server"] = args ? args.server : undefined;
resourceInputs["serverIdentityCheck"] = args ? args.serverIdentityCheck : undefined;
resourceInputs["sourceIp"] = args ? args.sourceIp : undefined;
resourceInputs["ssoAttribute"] = args ? args.ssoAttribute : undefined;
resourceInputs["ssoAttributeKey"] = (args === null || args === void 0 ? void 0 : args.ssoAttributeKey) ? pulumi.secret(args.ssoAttributeKey) : undefined;
resourceInputs["ssoAttributeValueOverride"] = args ? args.ssoAttributeValueOverride : undefined;
resourceInputs["statusTtl"] = args ? args.statusTtl : undefined;
resourceInputs["switchControllerAcctFastFramedipDetect"] = args ? args.switchControllerAcctFastFramedipDetect : undefined;
resourceInputs["switchControllerNasIpDynamic"] = args ? args.switchControllerNasIpDynamic : undefined;
resourceInputs["switchControllerServiceType"] = args ? args.switchControllerServiceType : undefined;
resourceInputs["tertiarySecret"] = (args === null || args === void 0 ? void 0 : args.tertiarySecret) ? pulumi.secret(args.tertiarySecret) : undefined;
resourceInputs["tertiaryServer"] = args ? args.tertiaryServer : undefined;
resourceInputs["timeout"] = args ? args.timeout : undefined;
resourceInputs["tlsMinProtoVersion"] = args ? args.tlsMinProtoVersion : undefined;
resourceInputs["transportProtocol"] = args ? args.transportProtocol : undefined;
resourceInputs["useManagementVdom"] = args ? args.useManagementVdom : undefined;
resourceInputs["usernameCaseSensitive"] = args ? args.usernameCaseSensitive : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["rssoSecret", "secondarySecret", "secret", "ssoAttributeKey", "tertiarySecret"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Radius.__pulumiType, name, resourceInputs, opts);
}
}
exports.Radius = Radius;
/** @internal */
Radius.__pulumiType = 'fortios:user/radius:Radius';
//# sourceMappingURL=radius.js.map
;