1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getNetworkingSecgroupV2
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getNetworkingSecgroupV2

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the ID of an available FlexibleEngine security group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const secgroup = flexibleengine.getNetworkingSecgroupV2({
        name: "tf_test_secgroup",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    secgroup = flexibleengine.get_networking_secgroup_v2(name="tf_test_secgroup")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.LookupNetworkingSecgroupV2(ctx, &flexibleengine.LookupNetworkingSecgroupV2Args{
    			Name: pulumi.StringRef("tf_test_secgroup"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var secgroup = Flexibleengine.GetNetworkingSecgroupV2.Invoke(new()
        {
            Name = "tf_test_secgroup",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetNetworkingSecgroupV2Args;
    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 secgroup = FlexibleengineFunctions.getNetworkingSecgroupV2(GetNetworkingSecgroupV2Args.builder()
                .name("tf_test_secgroup")
                .build());
    
        }
    }
    
    variables:
      secgroup:
        fn::invoke:
          function: flexibleengine:getNetworkingSecgroupV2
          arguments:
            name: tf_test_secgroup
    

    Using getNetworkingSecgroupV2

    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 getNetworkingSecgroupV2(args: GetNetworkingSecgroupV2Args, opts?: InvokeOptions): Promise<GetNetworkingSecgroupV2Result>
    function getNetworkingSecgroupV2Output(args: GetNetworkingSecgroupV2OutputArgs, opts?: InvokeOptions): Output<GetNetworkingSecgroupV2Result>
    def get_networking_secgroup_v2(id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   region: Optional[str] = None,
                                   secgroup_id: Optional[str] = None,
                                   tenant_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetNetworkingSecgroupV2Result
    def get_networking_secgroup_v2_output(id: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   region: Optional[pulumi.Input[str]] = None,
                                   secgroup_id: Optional[pulumi.Input[str]] = None,
                                   tenant_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingSecgroupV2Result]
    func LookupNetworkingSecgroupV2(ctx *Context, args *LookupNetworkingSecgroupV2Args, opts ...InvokeOption) (*LookupNetworkingSecgroupV2Result, error)
    func LookupNetworkingSecgroupV2Output(ctx *Context, args *LookupNetworkingSecgroupV2OutputArgs, opts ...InvokeOption) LookupNetworkingSecgroupV2ResultOutput

    > Note: This function is named LookupNetworkingSecgroupV2 in the Go SDK.

    public static class GetNetworkingSecgroupV2 
    {
        public static Task<GetNetworkingSecgroupV2Result> InvokeAsync(GetNetworkingSecgroupV2Args args, InvokeOptions? opts = null)
        public static Output<GetNetworkingSecgroupV2Result> Invoke(GetNetworkingSecgroupV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkingSecgroupV2Result> getNetworkingSecgroupV2(GetNetworkingSecgroupV2Args args, InvokeOptions options)
    public static Output<GetNetworkingSecgroupV2Result> getNetworkingSecgroupV2(GetNetworkingSecgroupV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getNetworkingSecgroupV2:getNetworkingSecgroupV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    The name of the security group.
    Region string
    The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
    SecgroupId string
    The ID of the security group.
    TenantId string
    The owner of the security group.
    Id string
    Name string
    The name of the security group.
    Region string
    The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
    SecgroupId string
    The ID of the security group.
    TenantId string
    The owner of the security group.
    id String
    name String
    The name of the security group.
    region String
    The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
    secgroupId String
    The ID of the security group.
    tenantId String
    The owner of the security group.
    id string
    name string
    The name of the security group.
    region string
    The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
    secgroupId string
    The ID of the security group.
    tenantId string
    The owner of the security group.
    id str
    name str
    The name of the security group.
    region str
    The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
    secgroup_id str
    The ID of the security group.
    tenant_id str
    The owner of the security group.
    id String
    name String
    The name of the security group.
    region String
    The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve security groups ids. If omitted, the region argument of the provider is used.
    secgroupId String
    The ID of the security group.
    tenantId String
    The owner of the security group.

    getNetworkingSecgroupV2 Result

    The following output properties are available:

    Description string
    The description of the security group.
    Id string
    Region string
    See Argument Reference above.
    TenantId string
    Name string
    See Argument Reference above.
    SecgroupId string
    Description string
    The description of the security group.
    Id string
    Region string
    See Argument Reference above.
    TenantId string
    Name string
    See Argument Reference above.
    SecgroupId string
    description String
    The description of the security group.
    id String
    region String
    See Argument Reference above.
    tenantId String
    name String
    See Argument Reference above.
    secgroupId String
    description string
    The description of the security group.
    id string
    region string
    See Argument Reference above.
    tenantId string
    name string
    See Argument Reference above.
    secgroupId string
    description str
    The description of the security group.
    id str
    region str
    See Argument Reference above.
    tenant_id str
    name str
    See Argument Reference above.
    secgroup_id str
    description String
    The description of the security group.
    id String
    region String
    See Argument Reference above.
    tenantId String
    name String
    See Argument Reference above.
    secgroupId String

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud