OpenStack v5.0.3 published on Wednesday, Feb 12, 2025 by Pulumi
openstack.getFwGroupV2
Explore with Pulumi AI
Use this data source to get information of an available OpenStack firewall group v2.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const group = openstack.getFwGroupV2({
    name: "tf_test_group",
});
import pulumi
import pulumi_openstack as openstack
group = openstack.get_fw_group_v2(name="tf_test_group")
package main
import (
	"github.com/pulumi/pulumi-openstack/sdk/v5/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
	})
}
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 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());
    }
}
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)
public static Output<GetFwGroupV2Result> getFwGroupV2(GetFwGroupV2Args args, InvokeOptions options)
fn::invoke:
  function: openstack:index/getFwGroupV2:getFwGroupV2
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AdminState boolUp 
- Administrative up/down status for the firewall group.
- Description string
- Human-readable description of the firewall group.
- EgressFirewall stringPolicy Id 
- The egress policy ID of the firewall group.
- GroupId string
- The ID of the firewall group.
- IngressFirewall stringPolicy Id 
- The ingress policy ID of the firewall group.
- Name string
- The name of the firewall group.
- ProjectId 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
regionargument of the provider is used.
- bool
- The sharing status of the firewall group.
- Status string
- Enabled status for the firewall group.
- TenantId string
- This argument conflicts and is interchangeable
with project_id. The owner of the firewall group.
- AdminState boolUp 
- Administrative up/down status for the firewall group.
- Description string
- Human-readable description of the firewall group.
- EgressFirewall stringPolicy Id 
- The egress policy ID of the firewall group.
- GroupId string
- The ID of the firewall group.
- IngressFirewall stringPolicy Id 
- The ingress policy ID of the firewall group.
- Name string
- The name of the firewall group.
- ProjectId 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
regionargument of the provider is used.
- bool
- The sharing status of the firewall group.
- Status string
- Enabled status for the firewall group.
- TenantId string
- This argument conflicts and is interchangeable
with project_id. The owner of the firewall group.
- adminState BooleanUp 
- Administrative up/down status for the firewall group.
- description String
- Human-readable description of the firewall group.
- egressFirewall StringPolicy Id 
- The egress policy ID of the firewall group.
- groupId String
- The ID of the firewall group.
- ingressFirewall StringPolicy Id 
- The ingress policy ID of the firewall group.
- name String
- The name of the firewall group.
- projectId 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
regionargument of the provider is used.
- Boolean
- The sharing status of the firewall group.
- status String
- Enabled status for the firewall group.
- tenantId String
- This argument conflicts and is interchangeable
with project_id. The owner of the firewall group.
- adminState booleanUp 
- Administrative up/down status for the firewall group.
- description string
- Human-readable description of the firewall group.
- egressFirewall stringPolicy Id 
- The egress policy ID of the firewall group.
- groupId string
- The ID of the firewall group.
- ingressFirewall stringPolicy Id 
- The ingress policy ID of the firewall group.
- name string
- The name of the firewall group.
- projectId 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
regionargument of the provider is used.
- boolean
- The sharing status of the firewall group.
- status string
- Enabled status for the firewall group.
- tenantId 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
regionargument 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.
- adminState BooleanUp 
- Administrative up/down status for the firewall group.
- description String
- Human-readable description of the firewall group.
- egressFirewall StringPolicy Id 
- The egress policy ID of the firewall group.
- groupId String
- The ID of the firewall group.
- ingressFirewall StringPolicy Id 
- The ingress policy ID of the firewall group.
- name String
- The name of the firewall group.
- projectId 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
regionargument of the provider is used.
- Boolean
- The sharing status of the firewall group.
- status String
- Enabled status for the firewall group.
- tenantId String
- This argument conflicts and is interchangeable
with project_id. The owner of the firewall group.
getFwGroupV2 Result
The following output properties are available:
- AdminState 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.
- ProjectId string
- See Argument Reference above.
- Region string
- See Argument Reference above.
- bool
- See Argument Reference above.
- Status string
- See Argument Reference above.
- TenantId string
- See Argument Reference above.
- Description string
- See Argument Reference above.
- EgressFirewall stringPolicy Id 
- See Argument Reference above.
- GroupId string
- See Argument Reference above.
- IngressFirewall stringPolicy Id 
- See Argument Reference above.
- Name string
- See Argument Reference above.
- AdminState boolUp 
- See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ports []string
- Ports associated with the firewall group.
- ProjectId string
- See Argument Reference above.
- Region string
- See Argument Reference above.
- bool
- See Argument Reference above.
- Status string
- See Argument Reference above.
- TenantId string
- See Argument Reference above.
- Description string
- See Argument Reference above.
- EgressFirewall stringPolicy Id 
- See Argument Reference above.
- GroupId string
- See Argument Reference above.
- IngressFirewall stringPolicy Id 
- See Argument Reference above.
- Name string
- See Argument Reference above.
- adminState 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.
- projectId String
- See Argument Reference above.
- region String
- See Argument Reference above.
- Boolean
- See Argument Reference above.
- status String
- See Argument Reference above.
- tenantId String
- See Argument Reference above.
- description String
- See Argument Reference above.
- egressFirewall StringPolicy Id 
- See Argument Reference above.
- groupId String
- See Argument Reference above.
- ingressFirewall StringPolicy Id 
- See Argument Reference above.
- name String
- See Argument Reference above.
- adminState booleanUp 
- See Argument Reference above.
- id string
- The provider-assigned unique ID for this managed resource.
- ports string[]
- Ports associated with the firewall group.
- projectId string
- See Argument Reference above.
- region string
- See Argument Reference above.
- boolean
- See Argument Reference above.
- status string
- See Argument Reference above.
- tenantId string
- See Argument Reference above.
- description string
- See Argument Reference above.
- egressFirewall stringPolicy Id 
- See Argument Reference above.
- groupId string
- See Argument Reference above.
- ingressFirewall 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.
- adminState 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.
- projectId String
- See Argument Reference above.
- region String
- See Argument Reference above.
- Boolean
- See Argument Reference above.
- status String
- See Argument Reference above.
- tenantId String
- See Argument Reference above.
- description String
- See Argument Reference above.
- egressFirewall StringPolicy Id 
- See Argument Reference above.
- groupId String
- See Argument Reference above.
- ingressFirewall 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 openstackTerraform Provider.