1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. getCentralizedPolicy
Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi

sdwan.getCentralizedPolicy

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: sdwan:index/getCentralizedPolicy:getCentralizedPolicy
      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

    getCentralizedPolicy Result

    The following output properties are available:

    Definitions List<GetCentralizedPolicyDefinition>
    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 []GetCentralizedPolicyDefinition
    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<GetCentralizedPolicyDefinition>
    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 GetCentralizedPolicyDefinition[]
    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[GetCentralizedPolicyDefinition]
    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<GetCentralizedPolicyDefinitionEntry>
    List of entries
    Id string
    Policy definition ID
    Type string
    Policy definition type
    Version int
    Policy definition version
    Entries []GetCentralizedPolicyDefinitionEntry
    List of entries
    Id string
    Policy definition ID
    Type string
    Policy definition type
    Version int
    Policy definition version
    entries List<GetCentralizedPolicyDefinitionEntry>
    List of entries
    id String
    Policy definition ID
    type String
    Policy definition type
    version Integer
    Policy definition version
    entries GetCentralizedPolicyDefinitionEntry[]
    List of entries
    id string
    Policy definition ID
    type string
    Policy definition type
    version number
    Policy definition version
    entries Sequence[GetCentralizedPolicyDefinitionEntry]
    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
    RegionListIds List<string>
    List of region list IDs
    RegionListVersions List<string>
    List of region list versions
    SiteListIds List<string>
    List of site list IDs
    SiteListVersions List<string>
    List of site list versions
    VpnListIds List<string>
    List of VPN list IDs
    VpnListVersions List<string>
    List of VPN list versions
    Direction string
    Direction
    RegionIds []string
    List of region IDs
    RegionListIds []string
    List of region list IDs
    RegionListVersions []string
    List of region list versions
    SiteListIds []string
    List of site list IDs
    SiteListVersions []string
    List of site list versions
    VpnListIds []string
    List of VPN list IDs
    VpnListVersions []string
    List of VPN list versions
    direction String
    Direction
    regionIds List<String>
    List of region IDs
    regionListIds List<String>
    List of region list IDs
    regionListVersions List<String>
    List of region list versions
    siteListIds List<String>
    List of site list IDs
    siteListVersions List<String>
    List of site list versions
    vpnListIds List<String>
    List of VPN list IDs
    vpnListVersions List<String>
    List of VPN list versions
    direction string
    Direction
    regionIds string[]
    List of region IDs
    regionListIds string[]
    List of region list IDs
    regionListVersions string[]
    List of region list versions
    siteListIds string[]
    List of site list IDs
    siteListVersions string[]
    List of site list versions
    vpnListIds string[]
    List of VPN list IDs
    vpnListVersions string[]
    List of VPN list versions
    direction str
    Direction
    region_ids Sequence[str]
    List of region IDs
    region_list_ids Sequence[str]
    List of region list IDs
    region_list_versions Sequence[str]
    List of region list versions
    site_list_ids Sequence[str]
    List of site list IDs
    site_list_versions Sequence[str]
    List of site list versions
    vpn_list_ids Sequence[str]
    List of VPN list IDs
    vpn_list_versions Sequence[str]
    List of VPN list versions
    direction String
    Direction
    regionIds List<String>
    List of region IDs
    regionListIds List<String>
    List of region list IDs
    regionListVersions List<String>
    List of region list versions
    siteListIds List<String>
    List of site list IDs
    siteListVersions List<String>
    List of site list versions
    vpnListIds List<String>
    List of VPN list IDs
    vpnListVersions List<String>
    List of VPN list versions

    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.1.3 published on Tuesday, Sep 24, 2024 by Pulumi