openstack.getFwGroupV2
Explore with Pulumi AI
Use this data source to get information of an available OpenStack firewall group v2.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var @group = OpenStack.GetFwGroupV2.Invoke(new()
{
Name = "tf_test_group",
});
});
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := openstack.GetFwGroupV2(ctx, &openstack.GetFwGroupV2Args{
Name: pulumi.StringRef("tf_test_group"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.OpenstackFunctions;
import com.pulumi.openstack.inputs.GetFwGroupV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var group = OpenstackFunctions.getFwGroupV2(GetFwGroupV2Args.builder()
.name("tf_test_group")
.build());
}
}
import pulumi
import pulumi_openstack as openstack
group = openstack.get_fw_group_v2(name="tf_test_group")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const group = openstack.getFwGroupV2({
name: "tf_test_group",
});
variables:
group:
fn::invoke:
Function: openstack:getFwGroupV2
Arguments:
name: tf_test_group
Using getFwGroupV2
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFwGroupV2(args: GetFwGroupV2Args, opts?: InvokeOptions): Promise<GetFwGroupV2Result>
function getFwGroupV2Output(args: GetFwGroupV2OutputArgs, opts?: InvokeOptions): Output<GetFwGroupV2Result>
def get_fw_group_v2(admin_state_up: Optional[bool] = None,
description: Optional[str] = None,
egress_firewall_policy_id: Optional[str] = None,
group_id: Optional[str] = None,
ingress_firewall_policy_id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
shared: Optional[bool] = None,
status: Optional[str] = None,
tenant_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFwGroupV2Result
def get_fw_group_v2_output(admin_state_up: Optional[pulumi.Input[bool]] = None,
description: Optional[pulumi.Input[str]] = None,
egress_firewall_policy_id: Optional[pulumi.Input[str]] = None,
group_id: Optional[pulumi.Input[str]] = None,
ingress_firewall_policy_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
shared: Optional[pulumi.Input[bool]] = None,
status: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFwGroupV2Result]
func GetFwGroupV2(ctx *Context, args *GetFwGroupV2Args, opts ...InvokeOption) (*GetFwGroupV2Result, error)
func GetFwGroupV2Output(ctx *Context, args *GetFwGroupV2OutputArgs, opts ...InvokeOption) GetFwGroupV2ResultOutput
> Note: This function is named GetFwGroupV2
in the Go SDK.
public static class GetFwGroupV2
{
public static Task<GetFwGroupV2Result> InvokeAsync(GetFwGroupV2Args args, InvokeOptions? opts = null)
public static Output<GetFwGroupV2Result> Invoke(GetFwGroupV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFwGroupV2Result> getFwGroupV2(GetFwGroupV2Args args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: openstack:index/getFwGroupV2:getFwGroupV2
arguments:
# arguments dictionary
The following arguments are supported:
- Admin
State boolUp Administrative up/down status for the firewall group.
- Description string
Human-readable description of the firewall group.
- Egress
Firewall stringPolicy Id The egress policy ID of the firewall group.
- Group
Id string The ID of the firewall group.
- Ingress
Firewall stringPolicy Id The ingress policy ID of the firewall group.
- Name string
The name of the firewall group.
- Project
Id string This argument conflicts and is interchangeable with
tenant_id
. The owner of the firewall group.- Region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall group ids. If omitted, the
region
argument of the provider is used.- bool
The sharing status of the firewall group.
- Status string
Enabled status for the firewall group.
- Tenant
Id string This argument conflicts and is interchangeable with
project_id
. The owner of the firewall group.
- Admin
State boolUp Administrative up/down status for the firewall group.
- Description string
Human-readable description of the firewall group.
- Egress
Firewall stringPolicy Id The egress policy ID of the firewall group.
- Group
Id string The ID of the firewall group.
- Ingress
Firewall stringPolicy Id The ingress policy ID of the firewall group.
- Name string
The name of the firewall group.
- Project
Id string This argument conflicts and is interchangeable with
tenant_id
. The owner of the firewall group.- Region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall group ids. If omitted, the
region
argument of the provider is used.- bool
The sharing status of the firewall group.
- Status string
Enabled status for the firewall group.
- Tenant
Id string This argument conflicts and is interchangeable with
project_id
. The owner of the firewall group.
- admin
State BooleanUp Administrative up/down status for the firewall group.
- description String
Human-readable description of the firewall group.
- egress
Firewall StringPolicy Id The egress policy ID of the firewall group.
- group
Id String The ID of the firewall group.
- ingress
Firewall StringPolicy Id The ingress policy ID of the firewall group.
- name String
The name of the firewall group.
- project
Id String This argument conflicts and is interchangeable with
tenant_id
. The owner of the firewall group.- region String
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall group ids. If omitted, the
region
argument of the provider is used.- Boolean
The sharing status of the firewall group.
- status String
Enabled status for the firewall group.
- tenant
Id String This argument conflicts and is interchangeable with
project_id
. The owner of the firewall group.
- admin
State booleanUp Administrative up/down status for the firewall group.
- description string
Human-readable description of the firewall group.
- egress
Firewall stringPolicy Id The egress policy ID of the firewall group.
- group
Id string The ID of the firewall group.
- ingress
Firewall stringPolicy Id The ingress policy ID of the firewall group.
- name string
The name of the firewall group.
- project
Id string This argument conflicts and is interchangeable with
tenant_id
. The owner of the firewall group.- region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall group ids. If omitted, the
region
argument of the provider is used.- boolean
The sharing status of the firewall group.
- status string
Enabled status for the firewall group.
- tenant
Id string This argument conflicts and is interchangeable with
project_id
. The owner of the firewall group.
- admin_
state_ boolup Administrative up/down status for the firewall group.
- description str
Human-readable description of the firewall group.
- egress_
firewall_ strpolicy_ id The egress policy ID of the firewall group.
- group_
id str The ID of the firewall group.
- ingress_
firewall_ strpolicy_ id The ingress policy ID of the firewall group.
- name str
The name of the firewall group.
- project_
id str This argument conflicts and is interchangeable with
tenant_id
. The owner of the firewall group.- region str
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall group ids. If omitted, the
region
argument of the provider is used.- bool
The sharing status of the firewall group.
- status str
Enabled status for the firewall group.
- tenant_
id str This argument conflicts and is interchangeable with
project_id
. The owner of the firewall group.
- admin
State BooleanUp Administrative up/down status for the firewall group.
- description String
Human-readable description of the firewall group.
- egress
Firewall StringPolicy Id The egress policy ID of the firewall group.
- group
Id String The ID of the firewall group.
- ingress
Firewall StringPolicy Id The ingress policy ID of the firewall group.
- name String
The name of the firewall group.
- project
Id String This argument conflicts and is interchangeable with
tenant_id
. The owner of the firewall group.- region String
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve firewall group ids. If omitted, the
region
argument of the provider is used.- Boolean
The sharing status of the firewall group.
- status String
Enabled status for the firewall group.
- tenant
Id String This argument conflicts and is interchangeable with
project_id
. The owner of the firewall group.
getFwGroupV2 Result
The following output properties are available:
- Admin
State boolUp See Argument Reference above.
- Id string
The provider-assigned unique ID for this managed resource.
- Ports List<string>
Ports associated with the firewall group.
- Project
Id string See Argument Reference above.
- Region string
See Argument Reference above.
- bool
See Argument Reference above.
- Status string
See Argument Reference above.
- Tenant
Id string See Argument Reference above.
- Description string
See Argument Reference above.
- Egress
Firewall stringPolicy Id See Argument Reference above.
- Group
Id string See Argument Reference above.
- Ingress
Firewall stringPolicy Id See Argument Reference above.
- Name string
See Argument Reference above.
- Admin
State boolUp See Argument Reference above.
- Id string
The provider-assigned unique ID for this managed resource.
- Ports []string
Ports associated with the firewall group.
- Project
Id string See Argument Reference above.
- Region string
See Argument Reference above.
- bool
See Argument Reference above.
- Status string
See Argument Reference above.
- Tenant
Id string See Argument Reference above.
- Description string
See Argument Reference above.
- Egress
Firewall stringPolicy Id See Argument Reference above.
- Group
Id string See Argument Reference above.
- Ingress
Firewall stringPolicy Id See Argument Reference above.
- Name string
See Argument Reference above.
- admin
State BooleanUp See Argument Reference above.
- id String
The provider-assigned unique ID for this managed resource.
- ports List<String>
Ports associated with the firewall group.
- project
Id String See Argument Reference above.
- region String
See Argument Reference above.
- Boolean
See Argument Reference above.
- status String
See Argument Reference above.
- tenant
Id String See Argument Reference above.
- description String
See Argument Reference above.
- egress
Firewall StringPolicy Id See Argument Reference above.
- group
Id String See Argument Reference above.
- ingress
Firewall StringPolicy Id See Argument Reference above.
- name String
See Argument Reference above.
- admin
State booleanUp See Argument Reference above.
- id string
The provider-assigned unique ID for this managed resource.
- ports string[]
Ports associated with the firewall group.
- project
Id string See Argument Reference above.
- region string
See Argument Reference above.
- boolean
See Argument Reference above.
- status string
See Argument Reference above.
- tenant
Id string See Argument Reference above.
- description string
See Argument Reference above.
- egress
Firewall stringPolicy Id See Argument Reference above.
- group
Id string See Argument Reference above.
- ingress
Firewall stringPolicy Id See Argument Reference above.
- name string
See Argument Reference above.
- admin_
state_ boolup See Argument Reference above.
- id str
The provider-assigned unique ID for this managed resource.
- ports Sequence[str]
Ports associated with the firewall group.
- project_
id str See Argument Reference above.
- region str
See Argument Reference above.
- bool
See Argument Reference above.
- status str
See Argument Reference above.
- tenant_
id str See Argument Reference above.
- description str
See Argument Reference above.
- egress_
firewall_ strpolicy_ id See Argument Reference above.
- group_
id str See Argument Reference above.
- ingress_
firewall_ strpolicy_ id See Argument Reference above.
- name str
See Argument Reference above.
- admin
State BooleanUp See Argument Reference above.
- id String
The provider-assigned unique ID for this managed resource.
- ports List<String>
Ports associated with the firewall group.
- project
Id String See Argument Reference above.
- region String
See Argument Reference above.
- Boolean
See Argument Reference above.
- status String
See Argument Reference above.
- tenant
Id String See Argument Reference above.
- description String
See Argument Reference above.
- egress
Firewall StringPolicy Id See Argument Reference above.
- group
Id String See Argument Reference above.
- ingress
Firewall StringPolicy Id See Argument Reference above.
- name String
See Argument Reference above.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
openstack
Terraform Provider.