UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

168 lines (167 loc) 5.12 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Zone data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up zone by its ID. * const scmZoneDs = scm.getZone({ * id: "50f1f0f3-a420-4989-9770-c927f1467a9a", * }); * export const zoneDataSourceResults = { * id: scmZoneDs.then(scmZoneDs => scmZoneDs.id), * name: scmZoneDs.then(scmZoneDs => scmZoneDs.name), * network: scmZoneDs.then(scmZoneDs => scmZoneDs.network), * enableDeviceIdentification: scmZoneDs.then(scmZoneDs => scmZoneDs.enableDeviceIdentification), * enableUserIdentification: scmZoneDs.then(scmZoneDs => scmZoneDs.enableUserIdentification), * userAcl: scmZoneDs.then(scmZoneDs => scmZoneDs.userAcl), * deviceAcl: scmZoneDs.then(scmZoneDs => scmZoneDs.deviceAcl), * folder: scmZoneDs.then(scmZoneDs => scmZoneDs.folder), * }; * ``` */ export declare function getZone(args: GetZoneArgs, opts?: pulumi.InvokeOptions): Promise<GetZoneResult>; /** * A collection of arguments for invoking getZone. */ export interface GetZoneArgs { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: string; /** * Folder * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: string; /** * UUID of the resource */ id: string; /** * Alphanumeric string begin with letter: [0-9a-zA-Z._-] */ name?: string; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: string; } /** * A collection of values returned by getZone. */ export interface GetZoneResult { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly device: string; /** * Device acl */ readonly deviceAcl: outputs.GetZoneDeviceAcl; /** * Dos log setting */ readonly dosLogSetting: string; /** * Dos profile */ readonly dosProfile: string; /** * Enable device identification */ readonly enableDeviceIdentification: boolean; /** * Enable user identification */ readonly enableUserIdentification: boolean; /** * Folder * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly folder: string; /** * UUID of the resource */ readonly id: string; /** * Alphanumeric string begin with letter: [0-9a-zA-Z._-] */ readonly name: string; /** * Network */ readonly network: outputs.GetZoneNetwork; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: string; readonly tfid: string; /** * User acl */ readonly userAcl: outputs.GetZoneUserAcl; } /** * Zone data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up zone by its ID. * const scmZoneDs = scm.getZone({ * id: "50f1f0f3-a420-4989-9770-c927f1467a9a", * }); * export const zoneDataSourceResults = { * id: scmZoneDs.then(scmZoneDs => scmZoneDs.id), * name: scmZoneDs.then(scmZoneDs => scmZoneDs.name), * network: scmZoneDs.then(scmZoneDs => scmZoneDs.network), * enableDeviceIdentification: scmZoneDs.then(scmZoneDs => scmZoneDs.enableDeviceIdentification), * enableUserIdentification: scmZoneDs.then(scmZoneDs => scmZoneDs.enableUserIdentification), * userAcl: scmZoneDs.then(scmZoneDs => scmZoneDs.userAcl), * deviceAcl: scmZoneDs.then(scmZoneDs => scmZoneDs.deviceAcl), * folder: scmZoneDs.then(scmZoneDs => scmZoneDs.folder), * }; * ``` */ export declare function getZoneOutput(args: GetZoneOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetZoneResult>; /** * A collection of arguments for invoking getZone. */ export interface GetZoneOutputArgs { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: pulumi.Input<string>; /** * Folder * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input<string>; /** * UUID of the resource */ id: pulumi.Input<string>; /** * Alphanumeric string begin with letter: [0-9a-zA-Z._-] */ name?: pulumi.Input<string>; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input<string>; }