@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
100 lines • 3.36 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.getAddressOutput = exports.getAddress = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Address data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Look up the IP Netmask address object by its ID.
* const scmAddress1Ds = scm.getAddress({
* id: "f23e1c22-de94-44cd-b67f-36f2516618a7",
* });
* // Look up the IP Range address object by its ID.
* const scmAddress2Ds = scm.getAddress({
* id: "662ef9a5-80d4-40d8-b51a-ec11915895d8",
* });
* // Look up the FQDN address object by its ID.
* const scmAddress3Ds = scm.getAddress({
* id: "1b996b9d-d350-4565-8ace-b319e6ae5a34",
* });
* // Look up the class_c_wildcard address object by its ID.
* const scmAddress4Ds = scm.getAddress({
* id: "933a1646-21fa-4edc-a0ca-868ead783ac0",
* });
* // Look up the multi-tag address object by its ID.
* const scmAddress5Ds = scm.getAddress({
* id: "f10df339-61aa-42a0-aab8-85424bfb2a8f",
* });
* export const addressDataSourceResults = {
* netmaskObject: scmAddress1Ds,
* ipRangeObject: scmAddress2Ds,
* fqdnObject: scmAddress3Ds,
* classCWildcardObject: scmAddress4Ds,
* multiTagTestObject: scmAddress5Ds,
* };
* ```
*/
function getAddress(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scm:index/getAddress:getAddress", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getAddress = getAddress;
/**
* Address data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Look up the IP Netmask address object by its ID.
* const scmAddress1Ds = scm.getAddress({
* id: "f23e1c22-de94-44cd-b67f-36f2516618a7",
* });
* // Look up the IP Range address object by its ID.
* const scmAddress2Ds = scm.getAddress({
* id: "662ef9a5-80d4-40d8-b51a-ec11915895d8",
* });
* // Look up the FQDN address object by its ID.
* const scmAddress3Ds = scm.getAddress({
* id: "1b996b9d-d350-4565-8ace-b319e6ae5a34",
* });
* // Look up the class_c_wildcard address object by its ID.
* const scmAddress4Ds = scm.getAddress({
* id: "933a1646-21fa-4edc-a0ca-868ead783ac0",
* });
* // Look up the multi-tag address object by its ID.
* const scmAddress5Ds = scm.getAddress({
* id: "f10df339-61aa-42a0-aab8-85424bfb2a8f",
* });
* export const addressDataSourceResults = {
* netmaskObject: scmAddress1Ds,
* ipRangeObject: scmAddress2Ds,
* fqdnObject: scmAddress3Ds,
* classCWildcardObject: scmAddress4Ds,
* multiTagTestObject: scmAddress5Ds,
* };
* ```
*/
function getAddressOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scm:index/getAddress:getAddress", {
"id": args.id,
"name": args.name,
}, opts);
}
exports.getAddressOutput = getAddressOutput;
//# sourceMappingURL=getAddress.js.map