UNPKG

@pulumi/scm

Version:

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

76 lines 2.95 kB
"use strict"; // *** 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.getSyslogServerProfileOutput = exports.getSyslogServerProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * SyslogServerProfile data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // * // Data source to retrieve a single SCM Syslog Server Profile object by its ID. * // * // Replace the ID with the UUID of the SCM Syslog Server Profile you want to find. * const scmSyslogServerProf = scm.getSyslogServerProfile({ * id: "69f7ee97-7c0a-416d-a28d-d45929851f6e", * }); * export const scmSyslogServerProfileDetails = { * profileId: scmSyslogServerProf.then(scmSyslogServerProf => scmSyslogServerProf.id), * folder: scmSyslogServerProf.then(scmSyslogServerProf => scmSyslogServerProf.folder), * name: scmSyslogServerProf.then(scmSyslogServerProf => scmSyslogServerProf.name), * }; * ``` */ function getSyslogServerProfile(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scm:index/getSyslogServerProfile:getSyslogServerProfile", { "device": args.device, "folder": args.folder, "id": args.id, "name": args.name, "snippet": args.snippet, }, opts); } exports.getSyslogServerProfile = getSyslogServerProfile; /** * SyslogServerProfile data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // * // Data source to retrieve a single SCM Syslog Server Profile object by its ID. * // * // Replace the ID with the UUID of the SCM Syslog Server Profile you want to find. * const scmSyslogServerProf = scm.getSyslogServerProfile({ * id: "69f7ee97-7c0a-416d-a28d-d45929851f6e", * }); * export const scmSyslogServerProfileDetails = { * profileId: scmSyslogServerProf.then(scmSyslogServerProf => scmSyslogServerProf.id), * folder: scmSyslogServerProf.then(scmSyslogServerProf => scmSyslogServerProf.folder), * name: scmSyslogServerProf.then(scmSyslogServerProf => scmSyslogServerProf.name), * }; * ``` */ function getSyslogServerProfileOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scm:index/getSyslogServerProfile:getSyslogServerProfile", { "device": args.device, "folder": args.folder, "id": args.id, "name": args.name, "snippet": args.snippet, }, opts); } exports.getSyslogServerProfileOutput = getSyslogServerProfileOutput; //# sourceMappingURL=getSyslogServerProfile.js.map