flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getNetworkingSecgroupV2
Start a Neo task
Explain and create a flexibleengine.getNetworkingSecgroupV2 resource
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 dictionaryThe 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
regionargument of the provider is used. - Secgroup
Id string - The ID of the security group.
- Tenant
Id 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
regionargument of the provider is used. - Secgroup
Id string - The ID of the security group.
- Tenant
Id 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
regionargument of the provider is used. - secgroup
Id String - The ID of the security group.
- tenant
Id 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
regionargument of the provider is used. - secgroup
Id string - The ID of the security group.
- tenant
Id 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
regionargument 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
regionargument of the provider is used. - secgroup
Id String - The ID of the security group.
- tenant
Id 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.
- Tenant
Id string - Name string
- See Argument Reference above.
- Secgroup
Id string
- Description string
- The description of the security group.
- Id string
- Region string
- See Argument Reference above.
- Tenant
Id string - Name string
- See Argument Reference above.
- Secgroup
Id string
- description String
- The description of the security group.
- id String
- region String
- See Argument Reference above.
- tenant
Id String - name String
- See Argument Reference above.
- secgroup
Id String
- description string
- The description of the security group.
- id string
- region string
- See Argument Reference above.
- tenant
Id string - name string
- See Argument Reference above.
- secgroup
Id 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.
- tenant
Id String - name String
- See Argument Reference above.
- secgroup
Id String
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
