Cisco Catalyst SD-WAN v0.4.0 published on Wednesday, Aug 13, 2025 by Pulumi
sdwan.getPolicyGroup
Explore with Pulumi AI
This data source can read the Policy Group .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = sdwan.getPolicyGroup({
id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.get_policy_group(id="f6b2c44c-693c-4763-b010-895aa3d236bd")
package main
import (
"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sdwan.LookupPolicyGroup(ctx, &sdwan.LookupPolicyGroupArgs{
Id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdwan = Pulumi.Sdwan;
return await Deployment.RunAsync(() =>
{
var example = Sdwan.GetPolicyGroup.Invoke(new()
{
Id = "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdwan.SdwanFunctions;
import com.pulumi.sdwan.inputs.GetPolicyGroupArgs;
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) {
final var example = SdwanFunctions.getPolicyGroup(GetPolicyGroupArgs.builder()
.id("f6b2c44c-693c-4763-b010-895aa3d236bd")
.build());
}
}
variables:
example:
fn::invoke:
function: sdwan:getPolicyGroup
arguments:
id: f6b2c44c-693c-4763-b010-895aa3d236bd
Using getPolicyGroup
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 getPolicyGroup(args: GetPolicyGroupArgs, opts?: InvokeOptions): Promise<GetPolicyGroupResult>
function getPolicyGroupOutput(args: GetPolicyGroupOutputArgs, opts?: InvokeOptions): Output<GetPolicyGroupResult>
def get_policy_group(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyGroupResult
def get_policy_group_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyGroupResult]
func LookupPolicyGroup(ctx *Context, args *LookupPolicyGroupArgs, opts ...InvokeOption) (*LookupPolicyGroupResult, error)
func LookupPolicyGroupOutput(ctx *Context, args *LookupPolicyGroupOutputArgs, opts ...InvokeOption) LookupPolicyGroupResultOutput
> Note: This function is named LookupPolicyGroup
in the Go SDK.
public static class GetPolicyGroup
{
public static Task<GetPolicyGroupResult> InvokeAsync(GetPolicyGroupArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyGroupResult> Invoke(GetPolicyGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyGroupResult> getPolicyGroup(GetPolicyGroupArgs args, InvokeOptions options)
public static Output<GetPolicyGroupResult> getPolicyGroup(GetPolicyGroupArgs args, InvokeOptions options)
fn::invoke:
function: sdwan:index/getPolicyGroup:getPolicyGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The id of the object
- Id string
- The id of the object
- id String
- The id of the object
- id string
- The id of the object
- id str
- The id of the object
- id String
- The id of the object
getPolicyGroup Result
The following output properties are available:
- Description string
- Description
- Devices
List<Get
Policy Group Device> - List of devices
- Feature
Profile List<string>Ids - List of feature profile IDs
- Id string
- The id of the object
- Name string
- The name of the policy group
- Policy
Versions List<string> - List of all associated policy versions
- Solution string
- Type of solution
- Description string
- Description
- Devices
[]Get
Policy Group Device - List of devices
- Feature
Profile []stringIds - List of feature profile IDs
- Id string
- The id of the object
- Name string
- The name of the policy group
- Policy
Versions []string - List of all associated policy versions
- Solution string
- Type of solution
- description String
- Description
- devices
List<Get
Policy Group Device> - List of devices
- feature
Profile List<String>Ids - List of feature profile IDs
- id String
- The id of the object
- name String
- The name of the policy group
- policy
Versions List<String> - List of all associated policy versions
- solution String
- Type of solution
- description string
- Description
- devices
Get
Policy Group Device[] - List of devices
- feature
Profile string[]Ids - List of feature profile IDs
- id string
- The id of the object
- name string
- The name of the policy group
- policy
Versions string[] - List of all associated policy versions
- solution string
- Type of solution
- description str
- Description
- devices
Sequence[Get
Policy Group Device] - List of devices
- feature_
profile_ Sequence[str]ids - List of feature profile IDs
- id str
- The id of the object
- name str
- The name of the policy group
- policy_
versions Sequence[str] - List of all associated policy versions
- solution str
- Type of solution
- description String
- Description
- devices List<Property Map>
- List of devices
- feature
Profile List<String>Ids - List of feature profile IDs
- id String
- The id of the object
- name String
- The name of the policy group
- policy
Versions List<String> - List of all associated policy versions
- solution String
- Type of solution
Supporting Types
GetPolicyGroupDevice
- Deploy bool
- Deploy to device if enabled.
- Id string
- Device ID
- Variables
List<Get
Policy Group Device Variable> - List of variables
- Deploy bool
- Deploy to device if enabled.
- Id string
- Device ID
- Variables
[]Get
Policy Group Device Variable - List of variables
- deploy Boolean
- Deploy to device if enabled.
- id String
- Device ID
- variables
List<Get
Policy Group Device Variable> - List of variables
- deploy boolean
- Deploy to device if enabled.
- id string
- Device ID
- variables
Get
Policy Group Device Variable[] - List of variables
- deploy bool
- Deploy to device if enabled.
- id str
- Device ID
- variables
Sequence[Get
Policy Group Device Variable] - List of variables
- deploy Boolean
- Deploy to device if enabled.
- id String
- Device ID
- variables List<Property Map>
- List of variables
GetPolicyGroupDeviceVariable
- List
Values List<string> - Use this instead of
value
in case value is of typeList
. - Name string
- Variable name
- Value string
- Variable value
- List
Values []string - Use this instead of
value
in case value is of typeList
. - Name string
- Variable name
- Value string
- Variable value
- list
Values List<String> - Use this instead of
value
in case value is of typeList
. - name String
- Variable name
- value String
- Variable value
- list
Values string[] - Use this instead of
value
in case value is of typeList
. - name string
- Variable name
- value string
- Variable value
- list_
values Sequence[str] - Use this instead of
value
in case value is of typeList
. - name str
- Variable name
- value str
- Variable value
- list
Values List<String> - Use this instead of
value
in case value is of typeList
. - name String
- Variable name
- value String
- Variable value
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdwan
Terraform Provider.