1. Packages
  2. Cisco Catalyst SD-WAN Provider
  3. API Docs
  4. getPolicyGroup
Cisco Catalyst SD-WAN v0.4.0 published on Wednesday, Aug 13, 2025 by Pulumi

sdwan.getPolicyGroup

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.4.0 published on Wednesday, Aug 13, 2025 by Pulumi

    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<GetPolicyGroupDevice>
    List of devices
    FeatureProfileIds List<string>
    List of feature profile IDs
    Id string
    The id of the object
    Name string
    The name of the policy group
    PolicyVersions List<string>
    List of all associated policy versions
    Solution string
    Type of solution
    Description string
    Description
    Devices []GetPolicyGroupDevice
    List of devices
    FeatureProfileIds []string
    List of feature profile IDs
    Id string
    The id of the object
    Name string
    The name of the policy group
    PolicyVersions []string
    List of all associated policy versions
    Solution string
    Type of solution
    description String
    Description
    devices List<GetPolicyGroupDevice>
    List of devices
    featureProfileIds List<String>
    List of feature profile IDs
    id String
    The id of the object
    name String
    The name of the policy group
    policyVersions List<String>
    List of all associated policy versions
    solution String
    Type of solution
    description string
    Description
    devices GetPolicyGroupDevice[]
    List of devices
    featureProfileIds string[]
    List of feature profile IDs
    id string
    The id of the object
    name string
    The name of the policy group
    policyVersions string[]
    List of all associated policy versions
    solution string
    Type of solution
    description str
    Description
    devices Sequence[GetPolicyGroupDevice]
    List of devices
    feature_profile_ids Sequence[str]
    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
    featureProfileIds List<String>
    List of feature profile IDs
    id String
    The id of the object
    name String
    The name of the policy group
    policyVersions 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<GetPolicyGroupDeviceVariable>
    List of variables
    Deploy bool
    Deploy to device if enabled.
    Id string
    Device ID
    Variables []GetPolicyGroupDeviceVariable
    List of variables
    deploy Boolean
    Deploy to device if enabled.
    id String
    Device ID
    variables List<GetPolicyGroupDeviceVariable>
    List of variables
    deploy boolean
    Deploy to device if enabled.
    id string
    Device ID
    variables GetPolicyGroupDeviceVariable[]
    List of variables
    deploy bool
    Deploy to device if enabled.
    id str
    Device ID
    variables Sequence[GetPolicyGroupDeviceVariable]
    List of variables
    deploy Boolean
    Deploy to device if enabled.
    id String
    Device ID
    variables List<Property Map>
    List of variables

    GetPolicyGroupDeviceVariable

    ListValues List<string>
    Use this instead of value in case value is of type List.
    Name string
    Variable name
    Value string
    Variable value
    ListValues []string
    Use this instead of value in case value is of type List.
    Name string
    Variable name
    Value string
    Variable value
    listValues List<String>
    Use this instead of value in case value is of type List.
    name String
    Variable name
    value String
    Variable value
    listValues string[]
    Use this instead of value in case value is of type List.
    name string
    Variable name
    value string
    Variable value
    list_values Sequence[str]
    Use this instead of value in case value is of type List.
    name str
    Variable name
    value str
    Variable value
    listValues List<String>
    Use this instead of value in case value is of type List.
    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.
    sdwan logo
    Cisco Catalyst SD-WAN v0.4.0 published on Wednesday, Aug 13, 2025 by Pulumi