@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
86 lines • 3.44 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFwRuleV2Output = exports.getFwRuleV2 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to get information of an available OpenStack firewall rule v2.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const rule = openstack.firewall.getRuleV2({
* name: "tf_test_rule",
* });
* ```
*/
/** @deprecated openstack.index/getfwrulev2.getFwRuleV2 has been deprecated in favor of openstack.firewall/getrulev2.getRuleV2 */
function getFwRuleV2(args, opts) {
pulumi.log.warn("getFwRuleV2 is deprecated: openstack.index/getfwrulev2.getFwRuleV2 has been deprecated in favor of openstack.firewall/getrulev2.getRuleV2");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:index/getFwRuleV2:getFwRuleV2", {
"action": args.action,
"description": args.description,
"destinationIpAddress": args.destinationIpAddress,
"destinationPort": args.destinationPort,
"enabled": args.enabled,
"firewallPolicyIds": args.firewallPolicyIds,
"ipVersion": args.ipVersion,
"name": args.name,
"projectId": args.projectId,
"protocol": args.protocol,
"region": args.region,
"ruleId": args.ruleId,
"shared": args.shared,
"sourceIpAddress": args.sourceIpAddress,
"sourcePort": args.sourcePort,
"tenantId": args.tenantId,
}, opts);
}
exports.getFwRuleV2 = getFwRuleV2;
/**
* Use this data source to get information of an available OpenStack firewall rule v2.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const rule = openstack.firewall.getRuleV2({
* name: "tf_test_rule",
* });
* ```
*/
/** @deprecated openstack.index/getfwrulev2.getFwRuleV2 has been deprecated in favor of openstack.firewall/getrulev2.getRuleV2 */
function getFwRuleV2Output(args, opts) {
pulumi.log.warn("getFwRuleV2 is deprecated: openstack.index/getfwrulev2.getFwRuleV2 has been deprecated in favor of openstack.firewall/getrulev2.getRuleV2");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:index/getFwRuleV2:getFwRuleV2", {
"action": args.action,
"description": args.description,
"destinationIpAddress": args.destinationIpAddress,
"destinationPort": args.destinationPort,
"enabled": args.enabled,
"firewallPolicyIds": args.firewallPolicyIds,
"ipVersion": args.ipVersion,
"name": args.name,
"projectId": args.projectId,
"protocol": args.protocol,
"region": args.region,
"ruleId": args.ruleId,
"shared": args.shared,
"sourceIpAddress": args.sourceIpAddress,
"sourcePort": args.sourcePort,
"tenantId": args.tenantId,
}, opts);
}
exports.getFwRuleV2Output = getFwRuleV2Output;
//# sourceMappingURL=getFwRuleV2.js.map