Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse
scaleway.getInstanceSecurityGroup
Explore with Pulumi AI
Gets information about a Security Group.
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,
project_id: 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,
project_id: 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
andsecurity_group_id
should be specified. - Project
Id string - The ID of the project the security group is associated with.
- Security
Group stringId - The security group id. Only one of
name
andsecurity_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
andsecurity_group_id
should be specified. - Project
Id string - The ID of the project the security group is associated with.
- Security
Group stringId - The security group id. Only one of
name
andsecurity_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
andsecurity_group_id
should be specified. - project
Id String - The ID of the project the security group is associated with.
- security
Group StringId - The security group id. Only one of
name
andsecurity_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
andsecurity_group_id
should be specified. - project
Id string - The ID of the project the security group is associated with.
- security
Group stringId - The security group id. Only one of
name
andsecurity_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
andsecurity_group_id
should be specified. - project_
id str - The ID of the project the security group is associated with.
- security_
group_ strid - The security group id. Only one of
name
andsecurity_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
andsecurity_group_id
should be specified. - project
Id String - The ID of the project the security group is associated with.
- security
Group StringId - The security group id. Only one of
name
andsecurity_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
- Enable
Default boolSecurity - External
Rules bool - Id string
- The provider-assigned unique ID for this managed resource.
- Inbound
Default stringPolicy - The default policy on incoming traffic. Possible values are:
accept
ordrop
. - Inbound
Rules List<Pulumiverse.Scaleway. Outputs. Get Instance Security Group Inbound Rule> - A list of inbound rule to add to the security group. (Structure is documented below.)
- Organization
Id string - The ID of the organization the security group is associated with.
- Outbound
Default stringPolicy - The default policy on outgoing traffic. Possible values are:
accept
ordrop
. - Outbound
Rules List<Pulumiverse.Scaleway. Outputs. Get Instance Security Group Outbound Rule> - A list of outbound rule to add to the security group. (Structure is documented below.)
- Stateful bool
- List<string>
- Name string
- Project
Id string - Security
Group stringId - Zone string
- Description string
- Enable
Default boolSecurity - External
Rules bool - Id string
- The provider-assigned unique ID for this managed resource.
- Inbound
Default stringPolicy - The default policy on incoming traffic. Possible values are:
accept
ordrop
. - Inbound
Rules []GetInstance Security Group Inbound Rule - A list of inbound rule to add to the security group. (Structure is documented below.)
- Organization
Id string - The ID of the organization the security group is associated with.
- Outbound
Default stringPolicy - The default policy on outgoing traffic. Possible values are:
accept
ordrop
. - Outbound
Rules []GetInstance Security Group Outbound Rule - A list of outbound rule to add to the security group. (Structure is documented below.)
- Stateful bool
- []string
- Name string
- Project
Id string - Security
Group stringId - Zone string
- description String
- enable
Default BooleanSecurity - external
Rules Boolean - id String
- The provider-assigned unique ID for this managed resource.
- inbound
Default StringPolicy - The default policy on incoming traffic. Possible values are:
accept
ordrop
. - inbound
Rules List<GetInstance Security Group Inbound Rule> - A list of inbound rule to add to the security group. (Structure is documented below.)
- organization
Id String - The ID of the organization the security group is associated with.
- outbound
Default StringPolicy - The default policy on outgoing traffic. Possible values are:
accept
ordrop
. - outbound
Rules List<GetInstance Security Group Outbound Rule> - A list of outbound rule to add to the security group. (Structure is documented below.)
- stateful Boolean
- List<String>
- name String
- project
Id String - security
Group StringId - zone String
- description string
- enable
Default booleanSecurity - external
Rules boolean - id string
- The provider-assigned unique ID for this managed resource.
- inbound
Default stringPolicy - The default policy on incoming traffic. Possible values are:
accept
ordrop
. - inbound
Rules GetInstance Security Group Inbound Rule[] - A list of inbound rule to add to the security group. (Structure is documented below.)
- organization
Id string - The ID of the organization the security group is associated with.
- outbound
Default stringPolicy - The default policy on outgoing traffic. Possible values are:
accept
ordrop
. - outbound
Rules GetInstance Security Group Outbound Rule[] - A list of outbound rule to add to the security group. (Structure is documented below.)
- stateful boolean
- string[]
- name string
- project
Id string - security
Group stringId - zone string
- description str
- enable_
default_ boolsecurity - external_
rules bool - id str
- The provider-assigned unique ID for this managed resource.
- inbound_
default_ strpolicy - The default policy on incoming traffic. Possible values are:
accept
ordrop
. - inbound_
rules Sequence[GetInstance Security Group Inbound Rule] - 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_ strpolicy - The default policy on outgoing traffic. Possible values are:
accept
ordrop
. - outbound_
rules Sequence[GetInstance Security Group Outbound Rule] - A list of outbound rule to add to the security group. (Structure is documented below.)
- stateful bool
- Sequence[str]
- name str
- project_
id str - security_
group_ strid - zone str
- description String
- enable
Default BooleanSecurity - external
Rules Boolean - id String
- The provider-assigned unique ID for this managed resource.
- inbound
Default StringPolicy - The default policy on incoming traffic. Possible values are:
accept
ordrop
. - inbound
Rules List<Property Map> - A list of inbound rule to add to the security group. (Structure is documented below.)
- organization
Id String - The ID of the organization the security group is associated with.
- outbound
Default StringPolicy - The default policy on outgoing traffic. Possible values are:
accept
ordrop
. - outbound
Rules List<Property Map> - A list of outbound rule to add to the security group. (Structure is documented below.)
- stateful Boolean
- List<String>
- name String
- project
Id String - security
Group StringId - zone String
Supporting Types
GetInstanceSecurityGroupInboundRule
- Action string
- The action to take when rule match. Possible values are:
accept
ordrop
. - Ip string
- The ip this rule apply to.
- Ip
Range string - The ip range (e.g
192.168.1.0/24
) this rule apply to. - Port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- Port
Range string - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - Protocol string
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- Action string
- The action to take when rule match. Possible values are:
accept
ordrop
. - Ip string
- The ip this rule apply to.
- Ip
Range string - The ip range (e.g
192.168.1.0/24
) this rule apply to. - Port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- Port
Range string - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - Protocol string
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- action String
- The action to take when rule match. Possible values are:
accept
ordrop
. - ip String
- The ip this rule apply to.
- ip
Range String - The ip range (e.g
192.168.1.0/24
) this rule apply to. - port Integer
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port
Range String - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - protocol String
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- action string
- The action to take when rule match. Possible values are:
accept
ordrop
. - ip string
- The ip this rule apply to.
- ip
Range string - The ip range (e.g
192.168.1.0/24
) this rule apply to. - port number
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port
Range string - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - protocol string
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- action str
- The action to take when rule match. Possible values are:
accept
ordrop
. - ip str
- The ip this rule apply to.
- ip_
range str - The ip range (e.g
192.168.1.0/24
) this rule apply to. - port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port_
range str - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - protocol str
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- action String
- The action to take when rule match. Possible values are:
accept
ordrop
. - ip String
- The ip this rule apply to.
- ip
Range String - The ip range (e.g
192.168.1.0/24
) this rule apply to. - port Number
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port
Range String - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - protocol String
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
GetInstanceSecurityGroupOutboundRule
- Action string
- The action to take when rule match. Possible values are:
accept
ordrop
. - Ip string
- The ip this rule apply to.
- Ip
Range string - The ip range (e.g
192.168.1.0/24
) this rule apply to. - Port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- Port
Range string - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - Protocol string
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- Action string
- The action to take when rule match. Possible values are:
accept
ordrop
. - Ip string
- The ip this rule apply to.
- Ip
Range string - The ip range (e.g
192.168.1.0/24
) this rule apply to. - Port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- Port
Range string - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - Protocol string
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- action String
- The action to take when rule match. Possible values are:
accept
ordrop
. - ip String
- The ip this rule apply to.
- ip
Range String - The ip range (e.g
192.168.1.0/24
) this rule apply to. - port Integer
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port
Range String - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - protocol String
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- action string
- The action to take when rule match. Possible values are:
accept
ordrop
. - ip string
- The ip this rule apply to.
- ip
Range string - The ip range (e.g
192.168.1.0/24
) this rule apply to. - port number
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port
Range string - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - protocol string
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- action str
- The action to take when rule match. Possible values are:
accept
ordrop
. - ip str
- The ip this rule apply to.
- ip_
range str - The ip range (e.g
192.168.1.0/24
) this rule apply to. - port int
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port_
range str - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - protocol str
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
- action String
- The action to take when rule match. Possible values are:
accept
ordrop
. - ip String
- The ip this rule apply to.
- ip
Range String - The ip range (e.g
192.168.1.0/24
) this rule apply to. - port Number
- The port this rule apply to. If no port is specified, rule will apply to all port.
- port
Range String - The port range (e.g
22-23
) this rule applies to. If noport
norport_range
are specified, rule will apply to all port. Only one ofport
andport_range
should be specified. - protocol String
- The protocol this rule apply to. Possible values are:
TCP
,UDP
,ICMP
orANY
.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.