Viewing docs for Strata Cloud Manager v1.0.5
published on Saturday, Mar 21, 2026 by Pulumi
published on Saturday, Mar 21, 2026 by Pulumi
Viewing docs for Strata Cloud Manager v1.0.5
published on Saturday, Mar 21, 2026 by Pulumi
published on Saturday, Mar 21, 2026 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(device: Optional[str] = None,
folder: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZoneResult
def get_zone_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[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 - Dos
Log stringSetting - Dos
Profile string - Enable
Device boolIdentification - Enable
User boolIdentification - Folder string
- Id string
- UUID of the resource
- Name string
- Network
Get
Zone Network - Snippet string
- Tfid string
- User
Acl GetZone User Acl
- Device string
- The device in which the resource is defined
- Device
Acl GetZone Device Acl - Dos
Log stringSetting - Dos
Profile string - Enable
Device boolIdentification - Enable
User boolIdentification - Folder string
- Id string
- UUID of the resource
- Name string
- Network
Get
Zone Network - Snippet string
- Tfid string
- User
Acl GetZone User Acl
- device String
- The device in which the resource is defined
- device
Acl GetZone Device Acl - dos
Log StringSetting - dos
Profile String - enable
Device BooleanIdentification - enable
User BooleanIdentification - folder String
- id String
- UUID of the resource
- name String
- network
Get
Zone Network - snippet String
- tfid String
- user
Acl GetZone User Acl
- device string
- The device in which the resource is defined
- device
Acl GetZone Device Acl - dos
Log stringSetting - dos
Profile string - enable
Device booleanIdentification - enable
User booleanIdentification - folder string
- id string
- UUID of the resource
- name string
- network
Get
Zone Network - snippet string
- tfid string
- user
Acl GetZone User Acl
- device str
- The device in which the resource is defined
- device_
acl GetZone Device Acl - dos_
log_ strsetting - dos_
profile str - enable_
device_ boolidentification - enable_
user_ boolidentification - folder str
- id str
- UUID of the resource
- name str
- network
Get
Zone Network - snippet str
- tfid str
- user_
acl GetZone User Acl
- device String
- The device in which the resource is defined
- device
Acl Property Map - dos
Log StringSetting - dos
Profile String - enable
Device BooleanIdentification - enable
User BooleanIdentification - folder String
- id String
- UUID of the resource
- name String
- network Property Map
- snippet String
- tfid String
- user
Acl Property Map
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.
Viewing docs for Strata Cloud Manager v1.0.5
published on Saturday, Mar 21, 2026 by Pulumi
published on Saturday, Mar 21, 2026 by Pulumi
