Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm.getZone
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
Zone data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// Look up zone by its ID.
const scmZoneDs = scm.getZone({
id: "50f1f0f3-a420-4989-9770-c927f1467a9a",
});
export const zoneDataSourceResults = {
id: scmZoneDs.then(scmZoneDs => scmZoneDs.id),
name: scmZoneDs.then(scmZoneDs => scmZoneDs.name),
network: scmZoneDs.then(scmZoneDs => scmZoneDs.network),
enableDeviceIdentification: scmZoneDs.then(scmZoneDs => scmZoneDs.enableDeviceIdentification),
enableUserIdentification: scmZoneDs.then(scmZoneDs => scmZoneDs.enableUserIdentification),
userAcl: scmZoneDs.then(scmZoneDs => scmZoneDs.userAcl),
deviceAcl: scmZoneDs.then(scmZoneDs => scmZoneDs.deviceAcl),
folder: scmZoneDs.then(scmZoneDs => scmZoneDs.folder),
};
import pulumi
import pulumi_scm as scm
# Look up zone by its ID.
scm_zone_ds = scm.get_zone(id="50f1f0f3-a420-4989-9770-c927f1467a9a")
pulumi.export("zoneDataSourceResults", {
"id": scm_zone_ds.id,
"name": scm_zone_ds.name,
"network": scm_zone_ds.network,
"enableDeviceIdentification": scm_zone_ds.enable_device_identification,
"enableUserIdentification": scm_zone_ds.enable_user_identification,
"userAcl": scm_zone_ds.user_acl,
"deviceAcl": scm_zone_ds.device_acl,
"folder": scm_zone_ds.folder,
})
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 zone by its ID.
scmZoneDs, err := scm.LookupZone(ctx, &scm.LookupZoneArgs{
Id: "50f1f0f3-a420-4989-9770-c927f1467a9a",
}, nil)
if err != nil {
return err
}
ctx.Export("zoneDataSourceResults", pulumi.Map{
"id": scmZoneDs.Id,
"name": scmZoneDs.Name,
"network": scmZoneDs.Network,
"enableDeviceIdentification": scmZoneDs.EnableDeviceIdentification,
"enableUserIdentification": scmZoneDs.EnableUserIdentification,
"userAcl": scmZoneDs.UserAcl,
"deviceAcl": scmZoneDs.DeviceAcl,
"folder": scmZoneDs.Folder,
})
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// Look up zone by its ID.
var scmZoneDs = Scm.GetZone.Invoke(new()
{
Id = "50f1f0f3-a420-4989-9770-c927f1467a9a",
});
return new Dictionary<string, object?>
{
["zoneDataSourceResults"] =
{
{ "id", scmZoneDs.Apply(getZoneResult => getZoneResult.Id) },
{ "name", scmZoneDs.Apply(getZoneResult => getZoneResult.Name) },
{ "network", scmZoneDs.Apply(getZoneResult => getZoneResult.Network) },
{ "enableDeviceIdentification", scmZoneDs.Apply(getZoneResult => getZoneResult.EnableDeviceIdentification) },
{ "enableUserIdentification", scmZoneDs.Apply(getZoneResult => getZoneResult.EnableUserIdentification) },
{ "userAcl", scmZoneDs.Apply(getZoneResult => getZoneResult.UserAcl) },
{ "deviceAcl", scmZoneDs.Apply(getZoneResult => getZoneResult.DeviceAcl) },
{ "folder", scmZoneDs.Apply(getZoneResult => getZoneResult.Folder) },
},
};
});
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.GetZoneArgs;
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 zone by its ID.
final var scmZoneDs = ScmFunctions.getZone(GetZoneArgs.builder()
.id("50f1f0f3-a420-4989-9770-c927f1467a9a")
.build());
ctx.export("zoneDataSourceResults", Map.ofEntries(
Map.entry("id", scmZoneDs.id()),
Map.entry("name", scmZoneDs.name()),
Map.entry("network", scmZoneDs.network()),
Map.entry("enableDeviceIdentification", scmZoneDs.enableDeviceIdentification()),
Map.entry("enableUserIdentification", scmZoneDs.enableUserIdentification()),
Map.entry("userAcl", scmZoneDs.userAcl()),
Map.entry("deviceAcl", scmZoneDs.deviceAcl()),
Map.entry("folder", scmZoneDs.folder())
));
}
}
variables:
# Look up zone by its ID.
scmZoneDs:
fn::invoke:
function: scm:getZone
arguments:
id: 50f1f0f3-a420-4989-9770-c927f1467a9a
outputs:
# Output various attributes from the found zone to verify the lookups were successful.
zoneDataSourceResults:
id: ${scmZoneDs.id}
name: ${scmZoneDs.name}
network: ${scmZoneDs.network}
enableDeviceIdentification: ${scmZoneDs.enableDeviceIdentification}
enableUserIdentification: ${scmZoneDs.enableUserIdentification}
userAcl: ${scmZoneDs.userAcl}
deviceAcl: ${scmZoneDs.deviceAcl}
folder: ${scmZoneDs.folder}
Using getZone
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 getZone(args: GetZoneArgs, opts?: InvokeOptions): Promise<GetZoneResult>
function getZoneOutput(args: GetZoneOutputArgs, opts?: InvokeOptions): Output<GetZoneResult>def get_zone(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZoneResult
def get_zone_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZoneResult]func LookupZone(ctx *Context, args *LookupZoneArgs, opts ...InvokeOption) (*LookupZoneResult, error)
func LookupZoneOutput(ctx *Context, args *LookupZoneOutputArgs, opts ...InvokeOption) LookupZoneResultOutput> Note: This function is named LookupZone in the Go SDK.
public static class GetZone
{
public static Task<GetZoneResult> InvokeAsync(GetZoneArgs args, InvokeOptions? opts = null)
public static Output<GetZoneResult> Invoke(GetZoneInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
public static Output<GetZoneResult> getZone(GetZoneArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getZone:getZone
arguments:
# arguments dictionaryThe following arguments are supported:
getZone Result
The following output properties are available:
- Device string
- The device in which the resource is defined
- Device
Acl GetZone Device Acl - Device acl
- Dos
Log stringSetting - Dos log setting
- Dos
Profile string - Dos profile
- Enable
Device boolIdentification - Enable device identification
- Enable
User boolIdentification - Enable user identification
- Folder string
- Folder
- Id string
- UUID of the resource
- Name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- Network
Get
Zone Network - Network
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- User
Acl GetZone User Acl - User acl
- Device string
- The device in which the resource is defined
- Device
Acl GetZone Device Acl - Device acl
- Dos
Log stringSetting - Dos log setting
- Dos
Profile string - Dos profile
- Enable
Device boolIdentification - Enable device identification
- Enable
User boolIdentification - Enable user identification
- Folder string
- Folder
- Id string
- UUID of the resource
- Name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- Network
Get
Zone Network - Network
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- User
Acl GetZone User Acl - User acl
- device String
- The device in which the resource is defined
- device
Acl GetZone Device Acl - Device acl
- dos
Log StringSetting - Dos log setting
- dos
Profile String - Dos profile
- enable
Device BooleanIdentification - Enable device identification
- enable
User BooleanIdentification - Enable user identification
- folder String
- Folder
- id String
- UUID of the resource
- name String
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- network
Get
Zone Network - Network
- snippet String
- The snippet in which the resource is defined
- tfid String
- user
Acl GetZone User Acl - User acl
- device string
- The device in which the resource is defined
- device
Acl GetZone Device Acl - Device acl
- dos
Log stringSetting - Dos log setting
- dos
Profile string - Dos profile
- enable
Device booleanIdentification - Enable device identification
- enable
User booleanIdentification - Enable user identification
- folder string
- Folder
- id string
- UUID of the resource
- name string
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- network
Get
Zone Network - Network
- snippet string
- The snippet in which the resource is defined
- tfid string
- user
Acl GetZone User Acl - User acl
- device str
- The device in which the resource is defined
- device_
acl GetZone Device Acl - Device acl
- dos_
log_ strsetting - Dos log setting
- dos_
profile str - Dos profile
- enable_
device_ boolidentification - Enable device identification
- enable_
user_ boolidentification - Enable user identification
- folder str
- Folder
- id str
- UUID of the resource
- name str
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- network
Get
Zone Network - Network
- snippet str
- The snippet in which the resource is defined
- tfid str
- user_
acl GetZone User Acl - User acl
- device String
- The device in which the resource is defined
- device
Acl Property Map - Device acl
- dos
Log StringSetting - Dos log setting
- dos
Profile String - Dos profile
- enable
Device BooleanIdentification - Enable device identification
- enable
User BooleanIdentification - Enable user identification
- folder String
- Folder
- id String
- UUID of the resource
- name String
- Alphanumeric string begin with letter: [0-9a-zA-Z._-]
- network Property Map
- Network
- snippet String
- The snippet in which the resource is defined
- tfid String
- user
Acl Property Map - User acl
Supporting Types
GetZoneDeviceAcl
- Exclude
Lists List<string> - Exclude list
- Include
Lists List<string> - Include list
- Exclude
Lists []string - Exclude list
- Include
Lists []string - Include list
- exclude
Lists List<String> - Exclude list
- include
Lists List<String> - Include list
- exclude
Lists string[] - Exclude list
- include
Lists string[] - Include list
- exclude_
lists Sequence[str] - Exclude list
- include_
lists Sequence[str] - Include list
- exclude
Lists List<String> - Exclude list
- include
Lists List<String> - Include list
GetZoneNetwork
- Enable
Packet boolBuffer Protection - Enable packet buffer protection
- Externals List<string>
- External
- Layer2s List<string>
- Layer2
- Layer3s List<string>
- Layer3
- Log
Setting string - Log setting
- Taps List<string>
- Tap
- Tunnel
Get
Zone Network Tunnel - Tunnel
- Virtual
Wires List<string> - Virtual wire
- Zone
Protection stringProfile - Zone protection profile
- Enable
Packet boolBuffer Protection - Enable packet buffer protection
- Externals []string
- External
- Layer2s []string
- Layer2
- Layer3s []string
- Layer3
- Log
Setting string - Log setting
- Taps []string
- Tap
- Tunnel
Get
Zone Network Tunnel - Tunnel
- Virtual
Wires []string - Virtual wire
- Zone
Protection stringProfile - Zone protection profile
- enable
Packet BooleanBuffer Protection - Enable packet buffer protection
- externals List<String>
- External
- layer2s List<String>
- Layer2
- layer3s List<String>
- Layer3
- log
Setting String - Log setting
- taps List<String>
- Tap
- tunnel
Get
Zone Network Tunnel - Tunnel
- virtual
Wires List<String> - Virtual wire
- zone
Protection StringProfile - Zone protection profile
- enable
Packet booleanBuffer Protection - Enable packet buffer protection
- externals string[]
- External
- layer2s string[]
- Layer2
- layer3s string[]
- Layer3
- log
Setting string - Log setting
- taps string[]
- Tap
- tunnel
Get
Zone Network Tunnel - Tunnel
- virtual
Wires string[] - Virtual wire
- zone
Protection stringProfile - Zone protection profile
- enable_
packet_ boolbuffer_ protection - Enable packet buffer protection
- externals Sequence[str]
- External
- layer2s Sequence[str]
- Layer2
- layer3s Sequence[str]
- Layer3
- log_
setting str - Log setting
- taps Sequence[str]
- Tap
- tunnel
Get
Zone Network Tunnel - Tunnel
- virtual_
wires Sequence[str] - Virtual wire
- zone_
protection_ strprofile - Zone protection profile
- enable
Packet BooleanBuffer Protection - Enable packet buffer protection
- externals List<String>
- External
- layer2s List<String>
- Layer2
- layer3s List<String>
- Layer3
- log
Setting String - Log setting
- taps List<String>
- Tap
- tunnel Property Map
- Tunnel
- virtual
Wires List<String> - Virtual wire
- zone
Protection StringProfile - Zone protection profile
GetZoneUserAcl
- Exclude
Lists List<string> - Exclude list
- Include
Lists List<string> - Include list
- Exclude
Lists []string - Exclude list
- Include
Lists []string - Include list
- exclude
Lists List<String> - Exclude list
- include
Lists List<String> - Include list
- exclude
Lists string[] - Exclude list
- include
Lists string[] - Include list
- exclude_
lists Sequence[str] - Exclude list
- include_
lists Sequence[str] - Include list
- exclude
Lists List<String> - Exclude list
- include
Lists List<String> - Include list
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
