Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
Address data source
Example Usage
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,
};
import pulumi
import pulumi_scm as scm
# Look up the IP Netmask address object by its ID.
scm_address1_ds = scm.get_address(id="f23e1c22-de94-44cd-b67f-36f2516618a7")
# Look up the IP Range address object by its ID.
scm_address2_ds = scm.get_address(id="662ef9a5-80d4-40d8-b51a-ec11915895d8")
# Look up the FQDN address object by its ID.
scm_address3_ds = scm.get_address(id="1b996b9d-d350-4565-8ace-b319e6ae5a34")
# Look up the class_c_wildcard address object by its ID.
scm_address4_ds = scm.get_address(id="933a1646-21fa-4edc-a0ca-868ead783ac0")
# Look up the multi-tag address object by its ID.
scm_address5_ds = scm.get_address(id="f10df339-61aa-42a0-aab8-85424bfb2a8f")
pulumi.export("addressDataSourceResults", {
"netmaskObject": scm_address1_ds,
"ipRangeObject": scm_address2_ds,
"fqdnObject": scm_address3_ds,
"classCWildcardObject": scm_address4_ds,
"multiTagTestObject": scm_address5_ds,
})
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Look up the IP Netmask address object by its ID.
scmAddress1Ds, err := scm.LookupAddress(ctx, &scm.LookupAddressArgs{
Id: "f23e1c22-de94-44cd-b67f-36f2516618a7",
}, nil)
if err != nil {
return err
}
// Look up the IP Range address object by its ID.
scmAddress2Ds, err := scm.LookupAddress(ctx, &scm.LookupAddressArgs{
Id: "662ef9a5-80d4-40d8-b51a-ec11915895d8",
}, nil)
if err != nil {
return err
}
// Look up the FQDN address object by its ID.
scmAddress3Ds, err := scm.LookupAddress(ctx, &scm.LookupAddressArgs{
Id: "1b996b9d-d350-4565-8ace-b319e6ae5a34",
}, nil)
if err != nil {
return err
}
// Look up the class_c_wildcard address object by its ID.
scmAddress4Ds, err := scm.LookupAddress(ctx, &scm.LookupAddressArgs{
Id: "933a1646-21fa-4edc-a0ca-868ead783ac0",
}, nil)
if err != nil {
return err
}
// Look up the multi-tag address object by its ID.
scmAddress5Ds, err := scm.LookupAddress(ctx, &scm.LookupAddressArgs{
Id: "f10df339-61aa-42a0-aab8-85424bfb2a8f",
}, nil)
if err != nil {
return err
}
ctx.Export("addressDataSourceResults", scm.GetAddressResultMap{
"netmaskObject": scmAddress1Ds,
"ipRangeObject": scmAddress2Ds,
"fqdnObject": scmAddress3Ds,
"classCWildcardObject": scmAddress4Ds,
"multiTagTestObject": scmAddress5Ds,
})
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// Look up the IP Netmask address object by its ID.
var scmAddress1Ds = Scm.GetAddress.Invoke(new()
{
Id = "f23e1c22-de94-44cd-b67f-36f2516618a7",
});
// Look up the IP Range address object by its ID.
var scmAddress2Ds = Scm.GetAddress.Invoke(new()
{
Id = "662ef9a5-80d4-40d8-b51a-ec11915895d8",
});
// Look up the FQDN address object by its ID.
var scmAddress3Ds = Scm.GetAddress.Invoke(new()
{
Id = "1b996b9d-d350-4565-8ace-b319e6ae5a34",
});
// Look up the class_c_wildcard address object by its ID.
var scmAddress4Ds = Scm.GetAddress.Invoke(new()
{
Id = "933a1646-21fa-4edc-a0ca-868ead783ac0",
});
// Look up the multi-tag address object by its ID.
var scmAddress5Ds = Scm.GetAddress.Invoke(new()
{
Id = "f10df339-61aa-42a0-aab8-85424bfb2a8f",
});
return new Dictionary<string, object?>
{
["addressDataSourceResults"] =
{
{ "netmaskObject", scmAddress1Ds },
{ "ipRangeObject", scmAddress2Ds },
{ "fqdnObject", scmAddress3Ds },
{ "classCWildcardObject", scmAddress4Ds },
{ "multiTagTestObject", scmAddress5Ds },
},
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.ScmFunctions;
import com.pulumi.scm.inputs.GetAddressArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Look up the IP Netmask address object by its ID.
final var scmAddress1Ds = ScmFunctions.getAddress(GetAddressArgs.builder()
.id("f23e1c22-de94-44cd-b67f-36f2516618a7")
.build());
// Look up the IP Range address object by its ID.
final var scmAddress2Ds = ScmFunctions.getAddress(GetAddressArgs.builder()
.id("662ef9a5-80d4-40d8-b51a-ec11915895d8")
.build());
// Look up the FQDN address object by its ID.
final var scmAddress3Ds = ScmFunctions.getAddress(GetAddressArgs.builder()
.id("1b996b9d-d350-4565-8ace-b319e6ae5a34")
.build());
// Look up the class_c_wildcard address object by its ID.
final var scmAddress4Ds = ScmFunctions.getAddress(GetAddressArgs.builder()
.id("933a1646-21fa-4edc-a0ca-868ead783ac0")
.build());
// Look up the multi-tag address object by its ID.
final var scmAddress5Ds = ScmFunctions.getAddress(GetAddressArgs.builder()
.id("f10df339-61aa-42a0-aab8-85424bfb2a8f")
.build());
ctx.export("addressDataSourceResults", Map.ofEntries(
Map.entry("netmaskObject", scmAddress1Ds),
Map.entry("ipRangeObject", scmAddress2Ds),
Map.entry("fqdnObject", scmAddress3Ds),
Map.entry("classCWildcardObject", scmAddress4Ds),
Map.entry("multiTagTestObject", scmAddress5Ds)
));
}
}
variables:
# Look up the IP Netmask address object by its ID.
scmAddress1Ds:
fn::invoke:
function: scm:getAddress
arguments:
id: f23e1c22-de94-44cd-b67f-36f2516618a7
# Look up the IP Range address object by its ID.
scmAddress2Ds:
fn::invoke:
function: scm:getAddress
arguments:
id: 662ef9a5-80d4-40d8-b51a-ec11915895d8
# Look up the FQDN address object by its ID.
scmAddress3Ds:
fn::invoke:
function: scm:getAddress
arguments:
id: 1b996b9d-d350-4565-8ace-b319e6ae5a34
# Look up the class_c_wildcard address object by its ID.
scmAddress4Ds:
fn::invoke:
function: scm:getAddress
arguments:
id: 933a1646-21fa-4edc-a0ca-868ead783ac0
# Look up the multi-tag address object by its ID.
scmAddress5Ds:
fn::invoke:
function: scm:getAddress
arguments:
id: f10df339-61aa-42a0-aab8-85424bfb2a8f
outputs:
# Output various attributes from the found objects to verify the lookups were successful.
addressDataSourceResults:
netmaskObject: ${scmAddress1Ds}
ipRangeObject: ${scmAddress2Ds}
fqdnObject: ${scmAddress3Ds}
classCWildcardObject: ${scmAddress4Ds}
multiTagTestObject: ${scmAddress5Ds}
Using getAddress
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAddress(args: GetAddressArgs, opts?: InvokeOptions): Promise<GetAddressResult>
function getAddressOutput(args: GetAddressOutputArgs, opts?: InvokeOptions): Output<GetAddressResult>def get_address(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAddressResult
def get_address_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAddressResult]func LookupAddress(ctx *Context, args *LookupAddressArgs, opts ...InvokeOption) (*LookupAddressResult, error)
func LookupAddressOutput(ctx *Context, args *LookupAddressOutputArgs, opts ...InvokeOption) LookupAddressResultOutput> Note: This function is named LookupAddress in the Go SDK.
public static class GetAddress
{
public static Task<GetAddressResult> InvokeAsync(GetAddressArgs args, InvokeOptions? opts = null)
public static Output<GetAddressResult> Invoke(GetAddressInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAddressResult> getAddress(GetAddressArgs args, InvokeOptions options)
public static Output<GetAddressResult> getAddress(GetAddressArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getAddress:getAddress
arguments:
# arguments dictionaryThe following arguments are supported:
getAddress Result
The following output properties are available:
- Description string
- The description of the address object
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Fqdn string
- Fully qualified domain name
- Id string
- The UUID of the address object
- Ip
Netmask string - IP address with or without CIDR notation
- Ip
Range string - Ip range
- Ip
Wildcard string - IP wildcard mask
- Name string
- The name of the address object
- Snippet string
- The snippet in which the resource is defined
- List<string>
- Tags assocaited with the address object
- Tfid string
- Description string
- The description of the address object
- Device string
- The device in which the resource is defined
- Folder string
- The folder in which the resource is defined
- Fqdn string
- Fully qualified domain name
- Id string
- The UUID of the address object
- Ip
Netmask string - IP address with or without CIDR notation
- Ip
Range string - Ip range
- Ip
Wildcard string - IP wildcard mask
- Name string
- The name of the address object
- Snippet string
- The snippet in which the resource is defined
- []string
- Tags assocaited with the address object
- Tfid string
- description String
- The description of the address object
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- fqdn String
- Fully qualified domain name
- id String
- The UUID of the address object
- ip
Netmask String - IP address with or without CIDR notation
- ip
Range String - Ip range
- ip
Wildcard String - IP wildcard mask
- name String
- The name of the address object
- snippet String
- The snippet in which the resource is defined
- List<String>
- Tags assocaited with the address object
- tfid String
- description string
- The description of the address object
- device string
- The device in which the resource is defined
- folder string
- The folder in which the resource is defined
- fqdn string
- Fully qualified domain name
- id string
- The UUID of the address object
- ip
Netmask string - IP address with or without CIDR notation
- ip
Range string - Ip range
- ip
Wildcard string - IP wildcard mask
- name string
- The name of the address object
- snippet string
- The snippet in which the resource is defined
- string[]
- Tags assocaited with the address object
- tfid string
- description str
- The description of the address object
- device str
- The device in which the resource is defined
- folder str
- The folder in which the resource is defined
- fqdn str
- Fully qualified domain name
- id str
- The UUID of the address object
- ip_
netmask str - IP address with or without CIDR notation
- ip_
range str - Ip range
- ip_
wildcard str - IP wildcard mask
- name str
- The name of the address object
- snippet str
- The snippet in which the resource is defined
- Sequence[str]
- Tags assocaited with the address object
- tfid str
- description String
- The description of the address object
- device String
- The device in which the resource is defined
- folder String
- The folder in which the resource is defined
- fqdn String
- Fully qualified domain name
- id String
- The UUID of the address object
- ip
Netmask String - IP address with or without CIDR notation
- ip
Range String - Ip range
- ip
Wildcard String - IP wildcard mask
- name String
- The name of the address object
- snippet String
- The snippet in which the resource is defined
- List<String>
- Tags assocaited with the address object
- tfid String
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
