@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.getHttpHeaderProfileOutput = exports.getHttpHeaderProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* HttpHeaderProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Data source to retrieve a single SCM HTTP Header Profile object by its ID.
* //
* // Replace the ID with the UUID of the SCM HTTP Header Profile you want to find.
* const scmHttpHeaderProf = scm.getHttpHeaderProfile({
* id: "2733cba4-c79d-4c98-8e07-4d3cbdd0ba11",
* });
* export const scmHttpHeaderProfileDetails = {
* profileId: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.id),
* folder: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.folder),
* name: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.name),
* };
* ```
*/
function getHttpHeaderProfile(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scm:index/getHttpHeaderProfile:getHttpHeaderProfile", {
"device": args.device,
"folder": args.folder,
"id": args.id,
"name": args.name,
"snippet": args.snippet,
}, opts);
}
exports.getHttpHeaderProfile = getHttpHeaderProfile;
/**
* HttpHeaderProfile data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* //
* // Data source to retrieve a single SCM HTTP Header Profile object by its ID.
* //
* // Replace the ID with the UUID of the SCM HTTP Header Profile you want to find.
* const scmHttpHeaderProf = scm.getHttpHeaderProfile({
* id: "2733cba4-c79d-4c98-8e07-4d3cbdd0ba11",
* });
* export const scmHttpHeaderProfileDetails = {
* profileId: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.id),
* folder: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.folder),
* name: scmHttpHeaderProf.then(scmHttpHeaderProf => scmHttpHeaderProf.name),
* };
* ```
*/
function getHttpHeaderProfileOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scm:index/getHttpHeaderProfile:getHttpHeaderProfile", {
"device": args.device,
"folder": args.folder,
"id": args.id,
"name": args.name,
"snippet": args.snippet,
}, opts);
}
exports.getHttpHeaderProfileOutput = getHttpHeaderProfileOutput;
//# sourceMappingURL=getHttpHeaderProfile.js.map