UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

123 lines (122 loc) 4.24 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to configure API users of FortiOS. The API user of the token for this feature should have a super admin profile, It can be set in CLI while GUI does not allow. * * !> **Warning:** The resource will be deprecated and replaced by new resource `fortios.system.Apiuser`, we recommend that you use the new resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const test2 = new fortios.system.ApiuserSetting("test2", { * accprofile: "restAPIprofile", * trusthosts: [ * { * ipv4Trusthost: "61.149.0.0 255.255.0.0", * type: "ipv4-trusthost", * }, * { * ipv4Trusthost: "22.22.0.0 255.255.0.0", * type: "ipv4-trusthost", * }, * ], * vdoms: ["root"], * }); * ``` */ export declare class ApiuserSetting extends pulumi.CustomResource { /** * Get an existing ApiuserSetting 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: string, id: pulumi.Input<pulumi.ID>, state?: ApiuserSettingState, opts?: pulumi.CustomResourceOptions): ApiuserSetting; /** * Returns true if the given object is an instance of ApiuserSetting. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ApiuserSetting; /** * Admin user access profile. */ readonly accprofile: pulumi.Output<string>; /** * Comment. */ readonly comments: pulumi.Output<string | undefined>; /** * User name. */ readonly name: pulumi.Output<string>; readonly trusthosts: pulumi.Output<outputs.system.ApiuserSettingTrusthost[]>; /** * Virtual domains. * * `trusthost-Type` - (Required) Trusthost type. * * `trusthost-ipv4_trusthost` - (Required) IPv4 trusted host address. */ readonly vdoms: pulumi.Output<string[]>; /** * Create a ApiuserSetting resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ApiuserSettingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApiuserSetting resources. */ export interface ApiuserSettingState { /** * Admin user access profile. */ accprofile?: pulumi.Input<string>; /** * Comment. */ comments?: pulumi.Input<string>; /** * User name. */ name?: pulumi.Input<string>; trusthosts?: pulumi.Input<pulumi.Input<inputs.system.ApiuserSettingTrusthost>[]>; /** * Virtual domains. * * `trusthost-Type` - (Required) Trusthost type. * * `trusthost-ipv4_trusthost` - (Required) IPv4 trusted host address. */ vdoms?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a ApiuserSetting resource. */ export interface ApiuserSettingArgs { /** * Admin user access profile. */ accprofile: pulumi.Input<string>; /** * Comment. */ comments?: pulumi.Input<string>; /** * User name. */ name?: pulumi.Input<string>; trusthosts: pulumi.Input<pulumi.Input<inputs.system.ApiuserSettingTrusthost>[]>; /** * Virtual domains. * * `trusthost-Type` - (Required) Trusthost type. * * `trusthost-ipv4_trusthost` - (Required) IPv4 trusted host address. */ vdoms: pulumi.Input<pulumi.Input<string>[]>; }