@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
156 lines (155 loc) • 4.17 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",
* });
* ```
*/
export declare function getPolicyV2(args?: GetPolicyV2Args, opts?: pulumi.InvokeOptions): Promise<GetPolicyV2Result>;
/**
* A collection of arguments for invoking getPolicyV2.
*/
export interface GetPolicyV2Args {
/**
* 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 getPolicyV2.
*/
export interface GetPolicyV2Result {
/**
* 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",
* });
* ```
*/
export declare function getPolicyV2Output(args?: GetPolicyV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyV2Result>;
/**
* A collection of arguments for invoking getPolicyV2.
*/
export interface GetPolicyV2OutputArgs {
/**
* 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>;
}