@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
158 lines (157 loc) • 4.47 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get information of an available OpenStack firewall policy v2.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const policy = openstack.firewall.getPolicyV2({
* name: "tf_test_policy",
* });
* ```
*/
/** @deprecated openstack.index/getfwpolicyv2.getFwPolicyV2 has been deprecated in favor of openstack.firewall/getpolicyv2.getPolicyV2 */
export declare function getFwPolicyV2(args?: GetFwPolicyV2Args, opts?: pulumi.InvokeOptions): Promise<GetFwPolicyV2Result>;
/**
* A collection of arguments for invoking getFwPolicyV2.
*/
export interface GetFwPolicyV2Args {
/**
* Whether this policy has been audited.
*/
audited?: boolean;
/**
* Human-readable description of the policy.
*/
description?: string;
/**
* The name of the firewall policy.
*/
name?: string;
/**
* The ID of the firewall policy.
*/
policyId?: string;
/**
* This argument conflicts and is interchangeable
* with `tenantId`. The owner of the firewall policy.
*/
projectId?: 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.
*/
region?: string;
/**
* Whether this policy is shared across all projects.
*/
shared?: boolean;
/**
* This argument conflicts and is interchangeable
* with `projectId`. The owner of the firewall policy.
*/
tenantId?: string;
}
/**
* A collection of values returned by getFwPolicyV2.
*/
export interface GetFwPolicyV2Result {
/**
* The audit status of the firewall policy.
*/
readonly audited: boolean;
readonly description?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* See Argument Reference above.
*/
readonly name?: string;
/**
* See Argument Reference above.
*/
readonly policyId?: string;
/**
* See Argument Reference above.
*/
readonly projectId: string;
/**
* See Argument Reference above.
*/
readonly region: string;
/**
* The array of one or more firewall rules that comprise the policy.
*/
readonly rules: string[];
/**
* The sharing status of the firewall policy.
*/
readonly shared: boolean;
/**
* See Argument Reference above.
*/
readonly tenantId: string;
}
/**
* Use this data source to get information of an available OpenStack firewall policy v2.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const policy = openstack.firewall.getPolicyV2({
* name: "tf_test_policy",
* });
* ```
*/
/** @deprecated openstack.index/getfwpolicyv2.getFwPolicyV2 has been deprecated in favor of openstack.firewall/getpolicyv2.getPolicyV2 */
export declare function getFwPolicyV2Output(args?: GetFwPolicyV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFwPolicyV2Result>;
/**
* A collection of arguments for invoking getFwPolicyV2.
*/
export interface GetFwPolicyV2OutputArgs {
/**
* Whether this policy has been audited.
*/
audited?: pulumi.Input<boolean>;
/**
* Human-readable description of the policy.
*/
description?: pulumi.Input<string>;
/**
* The name of the firewall policy.
*/
name?: pulumi.Input<string>;
/**
* The ID of the firewall policy.
*/
policyId?: pulumi.Input<string>;
/**
* This argument conflicts and is interchangeable
* with `tenantId`. The owner of the firewall policy.
*/
projectId?: pulumi.Input<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.
*/
region?: pulumi.Input<string>;
/**
* Whether this policy is shared across all projects.
*/
shared?: pulumi.Input<boolean>;
/**
* This argument conflicts and is interchangeable
* with `projectId`. The owner of the firewall policy.
*/
tenantId?: pulumi.Input<string>;
}