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
LookupPolicyin 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.
- Policy
Id 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
regionargument of the provider is used.- Tenant
Id string The owner of the firewall policy.
- Name string
The name of the firewall policy.
- Policy
Id 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
regionargument of the provider is used.- Tenant
Id string The owner of the firewall policy.
- name string
The name of the firewall policy.
- policy
Id 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
regionargument of the provider is used.- tenant
Id 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
regionargument 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.
- bool
The sharing status of the firewall policy.
- Tenant
Id string See Argument Reference above.
- Name string
See Argument Reference above.
- Policy
Id 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.
- bool
The sharing status of the firewall policy.
- Tenant
Id string See Argument Reference above.
- Name string
See Argument Reference above.
- Policy
Id 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.
- boolean
The sharing status of the firewall policy.
- tenant
Id string See Argument Reference above.
- name string
See Argument Reference above.
- policy
Id 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.
- 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
openstackTerraform Provider.