1. Packages
  2. OpenStack
  3. API Docs
  4. getFwGroupV2
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

openstack.getFwGroupV2

Explore with Pulumi AI

openstack logo
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

    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/v4/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: openstack:index/getFwGroupV2:getFwGroupV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AdminStateUp bool
    Administrative up/down status for the firewall group.
    Description string
    Human-readable description of the firewall group.
    EgressFirewallPolicyId string
    The egress policy ID of the firewall group.
    GroupId string
    The ID of the firewall group.
    IngressFirewallPolicyId string
    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 region argument of the provider is used.
    Shared 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.
    AdminStateUp bool
    Administrative up/down status for the firewall group.
    Description string
    Human-readable description of the firewall group.
    EgressFirewallPolicyId string
    The egress policy ID of the firewall group.
    GroupId string
    The ID of the firewall group.
    IngressFirewallPolicyId string
    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 region argument of the provider is used.
    Shared 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.
    adminStateUp Boolean
    Administrative up/down status for the firewall group.
    description String
    Human-readable description of the firewall group.
    egressFirewallPolicyId String
    The egress policy ID of the firewall group.
    groupId String
    The ID of the firewall group.
    ingressFirewallPolicyId String
    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 region argument of the provider is used.
    shared 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.
    adminStateUp boolean
    Administrative up/down status for the firewall group.
    description string
    Human-readable description of the firewall group.
    egressFirewallPolicyId string
    The egress policy ID of the firewall group.
    groupId string
    The ID of the firewall group.
    ingressFirewallPolicyId string
    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 region argument of the provider is used.
    shared 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_up bool
    Administrative up/down status for the firewall group.
    description str
    Human-readable description of the firewall group.
    egress_firewall_policy_id str
    The egress policy ID of the firewall group.
    group_id str
    The ID of the firewall group.
    ingress_firewall_policy_id str
    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.
    shared 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.
    adminStateUp Boolean
    Administrative up/down status for the firewall group.
    description String
    Human-readable description of the firewall group.
    egressFirewallPolicyId String
    The egress policy ID of the firewall group.
    groupId String
    The ID of the firewall group.
    ingressFirewallPolicyId String
    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 region argument of the provider is used.
    shared 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:

    AdminStateUp bool
    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.
    Shared bool
    See Argument Reference above.
    Status string
    See Argument Reference above.
    TenantId string
    See Argument Reference above.
    Description string
    See Argument Reference above.
    EgressFirewallPolicyId string
    See Argument Reference above.
    GroupId string
    See Argument Reference above.
    IngressFirewallPolicyId string
    See Argument Reference above.
    Name string
    See Argument Reference above.
    AdminStateUp bool
    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.
    Shared bool
    See Argument Reference above.
    Status string
    See Argument Reference above.
    TenantId string
    See Argument Reference above.
    Description string
    See Argument Reference above.
    EgressFirewallPolicyId string
    See Argument Reference above.
    GroupId string
    See Argument Reference above.
    IngressFirewallPolicyId string
    See Argument Reference above.
    Name string
    See Argument Reference above.
    adminStateUp Boolean
    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.
    shared Boolean
    See Argument Reference above.
    status String
    See Argument Reference above.
    tenantId String
    See Argument Reference above.
    description String
    See Argument Reference above.
    egressFirewallPolicyId String
    See Argument Reference above.
    groupId String
    See Argument Reference above.
    ingressFirewallPolicyId String
    See Argument Reference above.
    name String
    See Argument Reference above.
    adminStateUp boolean
    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.
    shared boolean
    See Argument Reference above.
    status string
    See Argument Reference above.
    tenantId string
    See Argument Reference above.
    description string
    See Argument Reference above.
    egressFirewallPolicyId string
    See Argument Reference above.
    groupId string
    See Argument Reference above.
    ingressFirewallPolicyId string
    See Argument Reference above.
    name string
    See Argument Reference above.
    admin_state_up bool
    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.
    shared 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_policy_id str
    See Argument Reference above.
    group_id str
    See Argument Reference above.
    ingress_firewall_policy_id str
    See Argument Reference above.
    name str
    See Argument Reference above.
    adminStateUp Boolean
    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.
    shared Boolean
    See Argument Reference above.
    status String
    See Argument Reference above.
    tenantId String
    See Argument Reference above.
    description String
    See Argument Reference above.
    egressFirewallPolicyId String
    See Argument Reference above.
    groupId String
    See Argument Reference above.
    ingressFirewallPolicyId String
    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.
    openstack logo
    OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi