GetPolicy

Use this data source to get firewall policy information of an available OpenStack firewall policy.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var policy = Output.Create(OpenStack.Firewall.GetPolicy.InvokeAsync(new OpenStack.Firewall.GetPolicyArgs
        {
            Name = "tf_test_policy",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

policy = openstack.firewall.get_policy(name="tf_test_policy")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const policy = pulumi.output(openstack.firewall.getPolicy({
    name: "tf_test_policy",
}, { async: true }));

Using GetPolicy

function getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function  get_policy(name=None, policy_id=None, region=None, tenant_id=None, opts=None)
func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)

Note: This function is named LookupPolicy in the Go SDK.

public static class GetPolicy {
    public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the firewall policy.

PolicyId string

The ID of the firewall policy.

Region string

The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall policy ids. If omitted, the region argument of the provider is used.

TenantId string

The owner of the firewall policy.

Name string

The name of the firewall policy.

PolicyId string

The ID of the firewall policy.

Region string

The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall policy ids. If omitted, the region argument of the provider is used.

TenantId string

The owner of the firewall policy.

name string

The name of the firewall policy.

policyId string

The ID of the firewall policy.

region string

The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall policy ids. If omitted, the region argument of the provider is used.

tenantId string

The owner of the firewall policy.

name str

The name of the firewall policy.

policy_id str

The ID of the firewall policy.

region str

The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall policy ids. If omitted, the region argument of the provider is used.

tenant_id str

The owner of the firewall policy.

GetPolicy Result

The following output properties are available:

Audited bool

The audit status of the firewall policy.

Description string

The description of the firewall policy.

Id string

The provider-assigned unique ID for this managed resource.

Region string

See Argument Reference above.

Rules List<string>

The array of one or more firewall rules that comprise the policy.

Shared bool

The sharing status of the firewall policy.

TenantId string

See Argument Reference above.

Name string

See Argument Reference above.

PolicyId string

See Argument Reference above.

Audited bool

The audit status of the firewall policy.

Description string

The description of the firewall policy.

Id string

The provider-assigned unique ID for this managed resource.

Region string

See Argument Reference above.

Rules []string

The array of one or more firewall rules that comprise the policy.

Shared bool

The sharing status of the firewall policy.

TenantId string

See Argument Reference above.

Name string

See Argument Reference above.

PolicyId string

See Argument Reference above.

audited boolean

The audit status of the firewall policy.

description string

The description of the firewall policy.

id string

The provider-assigned unique ID for this managed resource.

region string

See Argument Reference above.

rules string[]

The array of one or more firewall rules that comprise the policy.

shared boolean

The sharing status of the firewall policy.

tenantId string

See Argument Reference above.

name string

See Argument Reference above.

policyId string

See Argument Reference above.

audited bool

The audit status of the firewall policy.

description str

The description of the firewall policy.

id str

The provider-assigned unique ID for this managed resource.

region str

See Argument Reference above.

rules List[str]

The array of one or more firewall rules that comprise the policy.

shared bool

The sharing status of the firewall policy.

tenant_id str

See Argument Reference above.

name str

See Argument Reference above.

policy_id str

See Argument Reference above.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.