@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.87 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.getTlsServiceProfileOutput = exports.getTlsServiceProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* TlsServiceProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Data source to retrieve a single SCM TLS Service Profile object by its ID.
* //
* // Replace the ID with the UUID of the SCM TLS Service Profile you want to find.
* const scmTlsServiceProf = scm.getTlsServiceProfile({
* id: "b4d70015-5b0e-4491-a2a9-4305b01397d5",
* });
* export const scmTlsServiceProfileDetails = {
* profileId: scmTlsServiceProf.then(scmTlsServiceProf => scmTlsServiceProf.id),
* folder: scmTlsServiceProf.then(scmTlsServiceProf => scmTlsServiceProf.folder),
* name: scmTlsServiceProf.then(scmTlsServiceProf => scmTlsServiceProf.name),
* };
* ```
*/
function getTlsServiceProfile(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scm:index/getTlsServiceProfile:getTlsServiceProfile", {
"device": args.device,
"folder": args.folder,
"id": args.id,
"name": args.name,
"snippet": args.snippet,
}, opts);
}
exports.getTlsServiceProfile = getTlsServiceProfile;
/**
* TlsServiceProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Data source to retrieve a single SCM TLS Service Profile object by its ID.
* //
* // Replace the ID with the UUID of the SCM TLS Service Profile you want to find.
* const scmTlsServiceProf = scm.getTlsServiceProfile({
* id: "b4d70015-5b0e-4491-a2a9-4305b01397d5",
* });
* export const scmTlsServiceProfileDetails = {
* profileId: scmTlsServiceProf.then(scmTlsServiceProf => scmTlsServiceProf.id),
* folder: scmTlsServiceProf.then(scmTlsServiceProf => scmTlsServiceProf.folder),
* name: scmTlsServiceProf.then(scmTlsServiceProf => scmTlsServiceProf.name),
* };
* ```
*/
function getTlsServiceProfileOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scm:index/getTlsServiceProfile:getTlsServiceProfile", {
"device": args.device,
"folder": args.folder,
"id": args.id,
"name": args.name,
"snippet": args.snippet,
}, opts);
}
exports.getTlsServiceProfileOutput = getTlsServiceProfileOutput;
//# sourceMappingURL=getTlsServiceProfile.js.map