Scaleway

Community
Package contributed by a community member
v0.2.1 published on Friday, Feb 25, 2022 by Lee Briggs

getInstanceSecurityGroup

Gets information about a Security Group.

Example Usage

using Pulumi;
using Scaleway = Pulumi.Scaleway;

class MyStack : Stack
{
    public MyStack()
    {
        var myKey = Output.Create(Scaleway.GetInstanceSecurityGroup.InvokeAsync(new Scaleway.GetInstanceSecurityGroupArgs
        {
            SecurityGroupId = "11111111-1111-1111-1111-111111111111",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-scaleway/sdk/go/scaleway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.LookupInstanceSecurityGroup(ctx, &GetInstanceSecurityGroupArgs{
			SecurityGroupId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_scaleway as scaleway

my_key = scaleway.get_instance_security_group(security_group_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";

// Get info by security group id
const myKey = pulumi.output(scaleway.getInstanceSecurityGroup({
    securityGroupId: "11111111-1111-1111-1111-111111111111",
}));

Coming soon!

Using getInstanceSecurityGroup

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 getInstanceSecurityGroup(args: GetInstanceSecurityGroupArgs, opts?: InvokeOptions): Promise<GetInstanceSecurityGroupResult>
function getInstanceSecurityGroupOutput(args: GetInstanceSecurityGroupOutputArgs, opts?: InvokeOptions): Output<GetInstanceSecurityGroupResult>
def get_instance_security_group(name: Optional[str] = None,
                                security_group_id: Optional[str] = None,
                                zone: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetInstanceSecurityGroupResult
def get_instance_security_group_output(name: Optional[pulumi.Input[str]] = None,
                                security_group_id: Optional[pulumi.Input[str]] = None,
                                zone: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetInstanceSecurityGroupResult]
func LookupInstanceSecurityGroup(ctx *Context, args *LookupInstanceSecurityGroupArgs, opts ...InvokeOption) (*LookupInstanceSecurityGroupResult, error)
func LookupInstanceSecurityGroupOutput(ctx *Context, args *LookupInstanceSecurityGroupOutputArgs, opts ...InvokeOption) LookupInstanceSecurityGroupResultOutput

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

public static class GetInstanceSecurityGroup 
{
    public static Task<GetInstanceSecurityGroupResult> InvokeAsync(GetInstanceSecurityGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceSecurityGroupResult> Invoke(GetInstanceSecurityGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceSecurityGroupResult> getInstanceSecurityGroup(GetInstanceSecurityGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: scaleway:index/getInstanceSecurityGroup:getInstanceSecurityGroup
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The security group name. Only one of name and security_group_id should be specified.

SecurityGroupId string

The security group id. Only one of name and security_group_id should be specified.

Zone string

zone) The zone in which the security group exists.

Name string

The security group name. Only one of name and security_group_id should be specified.

SecurityGroupId string

The security group id. Only one of name and security_group_id should be specified.

Zone string

zone) The zone in which the security group exists.

name String

The security group name. Only one of name and security_group_id should be specified.

securityGroupId String

The security group id. Only one of name and security_group_id should be specified.

zone String

zone) The zone in which the security group exists.

name string

The security group name. Only one of name and security_group_id should be specified.

securityGroupId string

The security group id. Only one of name and security_group_id should be specified.

zone string

zone) The zone in which the security group exists.

name str

The security group name. Only one of name and security_group_id should be specified.

security_group_id str

The security group id. Only one of name and security_group_id should be specified.

zone str

zone) The zone in which the security group exists.

name String

The security group name. Only one of name and security_group_id should be specified.

securityGroupId String

The security group id. Only one of name and security_group_id should be specified.

zone String

zone) The zone in which the security group exists.

getInstanceSecurityGroup Result

The following output properties are available:

Description string
EnableDefaultSecurity bool
ExternalRules bool
Id string

The provider-assigned unique ID for this managed resource.

InboundDefaultPolicy string

The default policy on incoming traffic. Possible values are: accept or drop.

InboundRules List<GetInstanceSecurityGroupInboundRule>

A list of inbound rule to add to the security group. (Structure is documented below.)

OrganizationId string

The ID of the organization the security group is associated with.

OutboundDefaultPolicy string

The default policy on outgoing traffic. Possible values are: accept or drop.

OutboundRules List<GetInstanceSecurityGroupOutboundRule>

A list of outbound rule to add to the security group. (Structure is documented below.)

ProjectId string

The ID of the project the security group is associated with.

Stateful bool
Name string
SecurityGroupId string
Zone string
Description string
EnableDefaultSecurity bool
ExternalRules bool
Id string

The provider-assigned unique ID for this managed resource.

InboundDefaultPolicy string

The default policy on incoming traffic. Possible values are: accept or drop.

InboundRules []GetInstanceSecurityGroupInboundRule

A list of inbound rule to add to the security group. (Structure is documented below.)

OrganizationId string

The ID of the organization the security group is associated with.

OutboundDefaultPolicy string

The default policy on outgoing traffic. Possible values are: accept or drop.

OutboundRules []GetInstanceSecurityGroupOutboundRule

A list of outbound rule to add to the security group. (Structure is documented below.)

ProjectId string

The ID of the project the security group is associated with.

Stateful bool
Name string
SecurityGroupId string
Zone string
description String
enableDefaultSecurity Boolean
externalRules Boolean
id String

The provider-assigned unique ID for this managed resource.

inboundDefaultPolicy String

The default policy on incoming traffic. Possible values are: accept or drop.

inboundRules ListInstanceSecurityGroupInboundRule>

A list of inbound rule to add to the security group. (Structure is documented below.)

organizationId String

The ID of the organization the security group is associated with.

outboundDefaultPolicy String

The default policy on outgoing traffic. Possible values are: accept or drop.

outboundRules ListInstanceSecurityGroupOutboundRule>

A list of outbound rule to add to the security group. (Structure is documented below.)

projectId String

The ID of the project the security group is associated with.

stateful Boolean
name String
securityGroupId String
zone String
description string
enableDefaultSecurity boolean
externalRules boolean
id string

The provider-assigned unique ID for this managed resource.

inboundDefaultPolicy string

The default policy on incoming traffic. Possible values are: accept or drop.

inboundRules GetInstanceSecurityGroupInboundRule[]

A list of inbound rule to add to the security group. (Structure is documented below.)

organizationId string

The ID of the organization the security group is associated with.

outboundDefaultPolicy string

The default policy on outgoing traffic. Possible values are: accept or drop.

outboundRules GetInstanceSecurityGroupOutboundRule[]

A list of outbound rule to add to the security group. (Structure is documented below.)

projectId string

The ID of the project the security group is associated with.

stateful boolean
name string
securityGroupId string
zone string
description str
enable_default_security bool
external_rules bool
id str

The provider-assigned unique ID for this managed resource.

inbound_default_policy str

The default policy on incoming traffic. Possible values are: accept or drop.

inbound_rules Sequence[GetInstanceSecurityGroupInboundRule]

A list of inbound rule to add to the security group. (Structure is documented below.)

organization_id str

The ID of the organization the security group is associated with.

outbound_default_policy str

The default policy on outgoing traffic. Possible values are: accept or drop.

outbound_rules Sequence[GetInstanceSecurityGroupOutboundRule]

A list of outbound rule to add to the security group. (Structure is documented below.)

project_id str

The ID of the project the security group is associated with.

stateful bool
name str
security_group_id str
zone str
description String
enableDefaultSecurity Boolean
externalRules Boolean
id String

The provider-assigned unique ID for this managed resource.

inboundDefaultPolicy String

The default policy on incoming traffic. Possible values are: accept or drop.

inboundRules List

A list of inbound rule to add to the security group. (Structure is documented below.)

organizationId String

The ID of the organization the security group is associated with.

outboundDefaultPolicy String

The default policy on outgoing traffic. Possible values are: accept or drop.

outboundRules List

A list of outbound rule to add to the security group. (Structure is documented below.)

projectId String

The ID of the project the security group is associated with.

stateful Boolean
name String
securityGroupId String
zone String

Supporting Types

GetInstanceSecurityGroupInboundRule

Action string

The action to take when rule match. Possible values are: accept or drop.

Ip string
IpRange string
Port int
PortRange string
Protocol string
Action string

The action to take when rule match. Possible values are: accept or drop.

Ip string
IpRange string
Port int
PortRange string
Protocol string
action String

The action to take when rule match. Possible values are: accept or drop.

ip String
ipRange String
port Integer
portRange String
protocol String
action string

The action to take when rule match. Possible values are: accept or drop.

ip string
ipRange string
port number
portRange string
protocol string
action str

The action to take when rule match. Possible values are: accept or drop.

ip str
ip_range str
port int
port_range str
protocol str
action String

The action to take when rule match. Possible values are: accept or drop.

ip String
ipRange String
port Number
portRange String
protocol String

GetInstanceSecurityGroupOutboundRule

Action string

The action to take when rule match. Possible values are: accept or drop.

Ip string
IpRange string
Port int
PortRange string
Protocol string
Action string

The action to take when rule match. Possible values are: accept or drop.

Ip string
IpRange string
Port int
PortRange string
Protocol string
action String

The action to take when rule match. Possible values are: accept or drop.

ip String
ipRange String
port Integer
portRange String
protocol String
action string

The action to take when rule match. Possible values are: accept or drop.

ip string
ipRange string
port number
portRange string
protocol string
action str

The action to take when rule match. Possible values are: accept or drop.

ip str
ip_range str
port int
port_range str
protocol str
action String

The action to take when rule match. Possible values are: accept or drop.

ip String
ipRange String
port Number
portRange String
protocol String

Package Details

Repository
https://github.com/jaxxstorm/pulumi-scaleway
License
Apache-2.0
Notes

This Pulumi package is based on the scaleway Terraform Provider.