Cisco Catalyst SD-WAN v0.1.1 published on Friday, May 31, 2024 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)
// 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<Get
Centralized 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
[]Get
Centralized 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<Get
Centralized 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
Get
Centralized 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[Get
Centralized 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<Get
Centralized Policy Definition Entry> - List of entries
- Id string
- Policy definition ID
- Type string
- Policy definition type
- Version int
- Policy definition version
- Entries
[]Get
Centralized Policy Definition Entry - List of entries
- Id string
- Policy definition ID
- Type string
- Policy definition type
- Version int
- Policy definition version
- entries
List<Get
Centralized Policy Definition Entry> - List of entries
- id String
- Policy definition ID
- type String
- Policy definition type
- version Integer
- Policy definition version
- entries
Get
Centralized Policy Definition Entry[] - List of entries
- id string
- Policy definition ID
- type string
- Policy definition type
- version number
- Policy definition version
- entries
Sequence[Get
Centralized 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
- Region
Ids List<string> - List of region IDs
- Region
List List<string>Ids - List of region list IDs
- Region
List List<string>Versions - List of region list versions
- Site
List List<string>Ids - List of site list IDs
- Site
List List<string>Versions - List of site list versions
- Vpn
List List<string>Ids - List of VPN list IDs
- Vpn
List List<string>Versions - List of VPN list versions
- Direction string
- Direction
- Region
Ids []string - List of region IDs
- Region
List []stringIds - List of region list IDs
- Region
List []stringVersions - List of region list versions
- Site
List []stringIds - List of site list IDs
- Site
List []stringVersions - List of site list versions
- Vpn
List []stringIds - List of VPN list IDs
- Vpn
List []stringVersions - List of VPN list versions
- direction String
- Direction
- region
Ids List<String> - List of region IDs
- region
List List<String>Ids - List of region list IDs
- region
List List<String>Versions - List of region list versions
- site
List List<String>Ids - List of site list IDs
- site
List List<String>Versions - List of site list versions
- vpn
List List<String>Ids - List of VPN list IDs
- vpn
List List<String>Versions - List of VPN list versions
- direction string
- Direction
- region
Ids string[] - List of region IDs
- region
List string[]Ids - List of region list IDs
- region
List string[]Versions - List of region list versions
- site
List string[]Ids - List of site list IDs
- site
List string[]Versions - List of site list versions
- vpn
List string[]Ids - List of VPN list IDs
- vpn
List 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
- region
Ids List<String> - List of region IDs
- region
List List<String>Ids - List of region list IDs
- region
List List<String>Versions - List of region list versions
- site
List List<String>Ids - List of site list IDs
- site
List List<String>Versions - List of site list versions
- vpn
List List<String>Ids - List of VPN list IDs
- vpn
List 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
sdwan
Terraform Provider.