1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getAddress
Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi
scm logo
Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 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(device: Optional[str] = None,
                    folder: Optional[str] = None,
                    id: Optional[str] = None,
                    name: Optional[str] = None,
                    snippet: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetAddressResult
    def get_address_output(device: Optional[pulumi.Input[str]] = None,
                    folder: Optional[pulumi.Input[str]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    snippet: 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 dictionary

    The following arguments are supported:

    Id string
    The UUID of the address object
    Device string
    The device in which the resource is defined
    Folder string
    Name string
    Snippet string
    Id string
    The UUID of the address object
    Device string
    The device in which the resource is defined
    Folder string
    Name string
    Snippet string
    id String
    The UUID of the address object
    device String
    The device in which the resource is defined
    folder String
    name String
    snippet String
    id string
    The UUID of the address object
    device string
    The device in which the resource is defined
    folder string
    name string
    snippet string
    id str
    The UUID of the address object
    device str
    The device in which the resource is defined
    folder str
    name str
    snippet str
    id String
    The UUID of the address object
    device String
    The device in which the resource is defined
    folder String
    name String
    snippet String

    getAddress Result

    The following output properties are available:

    Description string
    Device string
    The device in which the resource is defined
    Folder string
    Fqdn string
    Id string
    The UUID of the address object
    IpNetmask string
    IpRange string
    IpWildcard string
    Name string
    Snippet string
    Tags List<string>
    Tfid string
    Description string
    Device string
    The device in which the resource is defined
    Folder string
    Fqdn string
    Id string
    The UUID of the address object
    IpNetmask string
    IpRange string
    IpWildcard string
    Name string
    Snippet string
    Tags []string
    Tfid string
    description String
    device String
    The device in which the resource is defined
    folder String
    fqdn String
    id String
    The UUID of the address object
    ipNetmask String
    ipRange String
    ipWildcard String
    name String
    snippet String
    tags List<String>
    tfid String
    description string
    device string
    The device in which the resource is defined
    folder string
    fqdn string
    id string
    The UUID of the address object
    ipNetmask string
    ipRange string
    ipWildcard string
    name string
    snippet string
    tags string[]
    tfid string
    description str
    device str
    The device in which the resource is defined
    folder str
    fqdn str
    id str
    The UUID of the address object
    ip_netmask str
    ip_range str
    ip_wildcard str
    name str
    snippet str
    tags Sequence[str]
    tfid str
    description String
    device String
    The device in which the resource is defined
    folder String
    fqdn String
    id String
    The UUID of the address object
    ipNetmask String
    ipRange String
    ipWildcard String
    name String
    snippet String
    tags List<String>
    tfid String

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate