Cisco Catalyst SD-WAN v0.3.0 published on Friday, Mar 28, 2025 by Pulumi
sdwan.getCentralizedPolicy
Explore with Pulumi AI
This data source can read the Centralized Policy .
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdwan from "@pulumi/sdwan";
const example = sdwan.getCentralizedPolicy({
    id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
});
import pulumi
import pulumi_sdwan as sdwan
example = sdwan.get_centralized_policy(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.LookupCentralizedPolicy(ctx, &sdwan.LookupCentralizedPolicyArgs{
			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.GetCentralizedPolicy.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.GetCentralizedPolicyArgs;
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.getCentralizedPolicy(GetCentralizedPolicyArgs.builder()
            .id("f6b2c44c-693c-4763-b010-895aa3d236bd")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: sdwan:getCentralizedPolicy
      arguments:
        id: f6b2c44c-693c-4763-b010-895aa3d236bd
Using getCentralizedPolicy
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 getCentralizedPolicy(args: GetCentralizedPolicyArgs, opts?: InvokeOptions): Promise<GetCentralizedPolicyResult>
function getCentralizedPolicyOutput(args: GetCentralizedPolicyOutputArgs, opts?: InvokeOptions): Output<GetCentralizedPolicyResult>def get_centralized_policy(id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetCentralizedPolicyResult
def get_centralized_policy_output(id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetCentralizedPolicyResult]func LookupCentralizedPolicy(ctx *Context, args *LookupCentralizedPolicyArgs, opts ...InvokeOption) (*LookupCentralizedPolicyResult, error)
func LookupCentralizedPolicyOutput(ctx *Context, args *LookupCentralizedPolicyOutputArgs, opts ...InvokeOption) LookupCentralizedPolicyResultOutput> Note: This function is named LookupCentralizedPolicy in the Go SDK.
public static class GetCentralizedPolicy 
{
    public static Task<GetCentralizedPolicyResult> InvokeAsync(GetCentralizedPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetCentralizedPolicyResult> Invoke(GetCentralizedPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCentralizedPolicyResult> getCentralizedPolicy(GetCentralizedPolicyArgs args, InvokeOptions options)
public static Output<GetCentralizedPolicyResult> getCentralizedPolicy(GetCentralizedPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: sdwan:index/getCentralizedPolicy:getCentralizedPolicy
  arguments:
    # arguments dictionaryThe 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
getCentralizedPolicy Result
The following output properties are available:
- Definitions
List<GetCentralized Policy Definition> 
- List of policy definitions
- Description string
- The description of the centralized policy
- Id string
- The id of the object
- Name string
- The name of the centralized policy
- Version int
- The version of the object
- Definitions
[]GetCentralized Policy Definition 
- List of policy definitions
- Description string
- The description of the centralized policy
- Id string
- The id of the object
- Name string
- The name of the centralized policy
- Version int
- The version of the object
- definitions
List<GetCentralized Policy Definition> 
- List of policy definitions
- description String
- The description of the centralized policy
- id String
- The id of the object
- name String
- The name of the centralized policy
- version Integer
- The version of the object
- definitions
GetCentralized Policy Definition[] 
- List of policy definitions
- description string
- The description of the centralized policy
- id string
- The id of the object
- name string
- The name of the centralized policy
- version number
- The version of the object
- definitions
Sequence[GetCentralized Policy Definition] 
- List of policy definitions
- description str
- The description of the centralized policy
- id str
- The id of the object
- name str
- The name of the centralized policy
- version int
- The version of the object
- definitions List<Property Map>
- List of policy definitions
- description String
- The description of the centralized policy
- id String
- The id of the object
- name String
- The name of the centralized policy
- version Number
- The version of the object
Supporting Types
GetCentralizedPolicyDefinition   
- Entries
List<GetCentralized Policy Definition Entry> 
- List of entries
- Id string
- Policy definition ID
- Type string
- Policy definition type
- Version int
- Policy definition version
- Entries
[]GetCentralized Policy Definition Entry 
- List of entries
- Id string
- Policy definition ID
- Type string
- Policy definition type
- Version int
- Policy definition version
- entries
List<GetCentralized Policy Definition Entry> 
- List of entries
- id String
- Policy definition ID
- type String
- Policy definition type
- version Integer
- Policy definition version
- entries
GetCentralized Policy Definition Entry[] 
- List of entries
- id string
- Policy definition ID
- type string
- Policy definition type
- version number
- Policy definition version
- entries
Sequence[GetCentralized Policy Definition Entry] 
- List of entries
- id str
- Policy definition ID
- type str
- Policy definition type
- version int
- Policy definition version
- entries List<Property Map>
- List of entries
- id String
- Policy definition ID
- type String
- Policy definition type
- version Number
- Policy definition version
GetCentralizedPolicyDefinitionEntry    
- Direction string
- Direction
- RegionIds List<string>
- List of region IDs
- RegionList List<string>Ids 
- List of region list IDs
- RegionList List<string>Versions 
- List of region list versions
- SiteList List<string>Ids 
- List of site list IDs
- SiteList List<string>Versions 
- List of site list versions
- VpnList List<string>Ids 
- List of VPN list IDs
- VpnList List<string>Versions 
- List of VPN list versions
- Direction string
- Direction
- RegionIds []string
- List of region IDs
- RegionList []stringIds 
- List of region list IDs
- RegionList []stringVersions 
- List of region list versions
- SiteList []stringIds 
- List of site list IDs
- SiteList []stringVersions 
- List of site list versions
- VpnList []stringIds 
- List of VPN list IDs
- VpnList []stringVersions 
- List of VPN list versions
- direction String
- Direction
- regionIds List<String>
- List of region IDs
- regionList List<String>Ids 
- List of region list IDs
- regionList List<String>Versions 
- List of region list versions
- siteList List<String>Ids 
- List of site list IDs
- siteList List<String>Versions 
- List of site list versions
- vpnList List<String>Ids 
- List of VPN list IDs
- vpnList List<String>Versions 
- List of VPN list versions
- direction string
- Direction
- regionIds string[]
- List of region IDs
- regionList string[]Ids 
- List of region list IDs
- regionList string[]Versions 
- List of region list versions
- siteList string[]Ids 
- List of site list IDs
- siteList string[]Versions 
- List of site list versions
- vpnList string[]Ids 
- List of VPN list IDs
- vpnList string[]Versions 
- List of VPN list versions
- direction str
- Direction
- region_ids Sequence[str]
- List of region IDs
- region_list_ Sequence[str]ids 
- List of region list IDs
- region_list_ Sequence[str]versions 
- List of region list versions
- site_list_ Sequence[str]ids 
- List of site list IDs
- site_list_ Sequence[str]versions 
- List of site list versions
- vpn_list_ Sequence[str]ids 
- List of VPN list IDs
- vpn_list_ Sequence[str]versions 
- List of VPN list versions
- direction String
- Direction
- regionIds List<String>
- List of region IDs
- regionList List<String>Ids 
- List of region list IDs
- regionList List<String>Versions 
- List of region list versions
- siteList List<String>Ids 
- List of site list IDs
- siteList List<String>Versions 
- List of site list versions
- vpnList List<String>Ids 
- List of VPN list IDs
- vpnList List<String>Versions 
- List of VPN list versions
Package Details
- Repository
- sdwan pulumi/pulumi-sdwan
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the sdwanTerraform Provider.
