Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.vpc.SecurityGroupRules
Explore with Pulumi AI
Use this data source to query detailed information of security group rules
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Vpc.SecurityGroupRules.Invoke(new()
{
SecurityGroupId = "sg-13f2nau7x93wg3n6nu3z5sxib",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.SecurityGroupRules(ctx, &vpc.SecurityGroupRulesArgs{
SecurityGroupId: "sg-13f2nau7x93wg3n6nu3z5sxib",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc.inputs.SecurityGroupRulesArgs;
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 default = VpcFunctions.SecurityGroupRules(SecurityGroupRulesArgs.builder()
.securityGroupId("sg-13f2nau7x93wg3n6nu3z5sxib")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vpc.security_group_rules(security_group_id="sg-13f2nau7x93wg3n6nu3z5sxib")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.vpc.SecurityGroupRules({
securityGroupId: "sg-13f2nau7x93wg3n6nu3z5sxib",
});
variables:
default:
fn::invoke:
Function: volcengine:vpc:SecurityGroupRules
Arguments:
securityGroupId: sg-13f2nau7x93wg3n6nu3z5sxib
Using SecurityGroupRules
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 securityGroupRules(args: SecurityGroupRulesArgs, opts?: InvokeOptions): Promise<SecurityGroupRulesResult>
function securityGroupRulesOutput(args: SecurityGroupRulesOutputArgs, opts?: InvokeOptions): Output<SecurityGroupRulesResult>
def security_group_rules(cidr_ip: Optional[str] = None,
direction: Optional[str] = None,
output_file: Optional[str] = None,
protocol: Optional[str] = None,
security_group_id: Optional[str] = None,
source_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> SecurityGroupRulesResult
def security_group_rules_output(cidr_ip: Optional[pulumi.Input[str]] = None,
direction: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
protocol: Optional[pulumi.Input[str]] = None,
security_group_id: Optional[pulumi.Input[str]] = None,
source_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[SecurityGroupRulesResult]
func SecurityGroupRules(ctx *Context, args *SecurityGroupRulesArgs, opts ...InvokeOption) (*SecurityGroupRulesResult, error)
func SecurityGroupRulesOutput(ctx *Context, args *SecurityGroupRulesOutputArgs, opts ...InvokeOption) SecurityGroupRulesResultOutput
public static class SecurityGroupRules
{
public static Task<SecurityGroupRulesResult> InvokeAsync(SecurityGroupRulesArgs args, InvokeOptions? opts = null)
public static Output<SecurityGroupRulesResult> Invoke(SecurityGroupRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<SecurityGroupRulesResult> securityGroupRules(SecurityGroupRulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:vpc:SecurityGroupRules
arguments:
# arguments dictionary
The following arguments are supported:
- Security
Group stringId - SecurityGroup ID.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Output
File string - File name where to save data source results.
- Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - Source
Group stringId - ID of the source security group whose access permission you want to set.
- Security
Group stringId - SecurityGroup ID.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Output
File string - File name where to save data source results.
- Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - Source
Group stringId - ID of the source security group whose access permission you want to set.
- security
Group StringId - SecurityGroup ID.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- output
File String - File name where to save data source results.
- protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - source
Group StringId - ID of the source security group whose access permission you want to set.
- security
Group stringId - SecurityGroup ID.
- cidr
Ip string - Cidr ip of egress/ingress Rule.
- direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- output
File string - File name where to save data source results.
- protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - source
Group stringId - ID of the source security group whose access permission you want to set.
- security_
group_ strid - SecurityGroup ID.
- cidr_
ip str - Cidr ip of egress/ingress Rule.
- direction str
- Direction of rule, ingress (inbound) or egress (outbound).
- output_
file str - File name where to save data source results.
- protocol str
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - source_
group_ strid - ID of the source security group whose access permission you want to set.
- security
Group StringId - SecurityGroup ID.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- output
File String - File name where to save data source results.
- protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - source
Group StringId - ID of the source security group whose access permission you want to set.
SecurityGroupRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Group stringId - Id of SecurityGroup.
- Security
Group List<SecurityRules Group Rules Security Group Rule> - The collection of SecurityGroup query.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Output
File string - Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - Source
Group stringId - ID of the source security group whose access permission you want to set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Security
Group stringId - Id of SecurityGroup.
- Security
Group []SecurityRules Group Rules Security Group Rule - The collection of SecurityGroup query.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Output
File string - Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - Source
Group stringId - ID of the source security group whose access permission you want to set.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Group StringId - Id of SecurityGroup.
- security
Group List<SecurityRules Group Rules Security Group Rule> - The collection of SecurityGroup query.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- output
File String - protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - source
Group StringId - ID of the source security group whose access permission you want to set.
- id string
- The provider-assigned unique ID for this managed resource.
- security
Group stringId - Id of SecurityGroup.
- security
Group SecurityRules Group Rules Security Group Rule[] - The collection of SecurityGroup query.
- cidr
Ip string - Cidr ip of egress/ingress Rule.
- direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- output
File string - protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - source
Group stringId - ID of the source security group whose access permission you want to set.
- id str
- The provider-assigned unique ID for this managed resource.
- security_
group_ strid - Id of SecurityGroup.
- security_
group_ Sequence[Securityrules Group Rules Security Group Rule] - The collection of SecurityGroup query.
- cidr_
ip str - Cidr ip of egress/ingress Rule.
- direction str
- Direction of rule, ingress (inbound) or egress (outbound).
- output_
file str - protocol str
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - source_
group_ strid - ID of the source security group whose access permission you want to set.
- id String
- The provider-assigned unique ID for this managed resource.
- security
Group StringId - Id of SecurityGroup.
- security
Group List<Property Map>Rules - The collection of SecurityGroup query.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- output
File String - protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - source
Group StringId - ID of the source security group whose access permission you want to set.
Supporting Types
SecurityGroupRulesSecurityGroupRule
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Creation
Time string - The creation time of security group rule.
- Description string
- description of a group rule.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Policy string
- Access strategy.
- Port
End int - Port end of egress/ingress Rule.
- Port
Start int - Port start of egress/ingress Rule.
- Priority int
- Priority of a security group rule.
- Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - Security
Group stringId - SecurityGroup ID.
- Source
Group stringId - ID of the source security group whose access permission you want to set.
- Update
Time string - The update time of security group rule.
- Cidr
Ip string - Cidr ip of egress/ingress Rule.
- Creation
Time string - The creation time of security group rule.
- Description string
- description of a group rule.
- Direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- Policy string
- Access strategy.
- Port
End int - Port end of egress/ingress Rule.
- Port
Start int - Port start of egress/ingress Rule.
- Priority int
- Priority of a security group rule.
- Protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - Security
Group stringId - SecurityGroup ID.
- Source
Group stringId - ID of the source security group whose access permission you want to set.
- Update
Time string - The update time of security group rule.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- creation
Time String - The creation time of security group rule.
- description String
- description of a group rule.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- policy String
- Access strategy.
- port
End Integer - Port end of egress/ingress Rule.
- port
Start Integer - Port start of egress/ingress Rule.
- priority Integer
- Priority of a security group rule.
- protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - security
Group StringId - SecurityGroup ID.
- source
Group StringId - ID of the source security group whose access permission you want to set.
- update
Time String - The update time of security group rule.
- cidr
Ip string - Cidr ip of egress/ingress Rule.
- creation
Time string - The creation time of security group rule.
- description string
- description of a group rule.
- direction string
- Direction of rule, ingress (inbound) or egress (outbound).
- policy string
- Access strategy.
- port
End number - Port end of egress/ingress Rule.
- port
Start number - Port start of egress/ingress Rule.
- priority number
- Priority of a security group rule.
- protocol string
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - security
Group stringId - SecurityGroup ID.
- source
Group stringId - ID of the source security group whose access permission you want to set.
- update
Time string - The update time of security group rule.
- cidr_
ip str - Cidr ip of egress/ingress Rule.
- creation_
time str - The creation time of security group rule.
- description str
- description of a group rule.
- direction str
- Direction of rule, ingress (inbound) or egress (outbound).
- policy str
- Access strategy.
- port_
end int - Port end of egress/ingress Rule.
- port_
start int - Port start of egress/ingress Rule.
- priority int
- Priority of a security group rule.
- protocol str
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - security_
group_ strid - SecurityGroup ID.
- source_
group_ strid - ID of the source security group whose access permission you want to set.
- update_
time str - The update time of security group rule.
- cidr
Ip String - Cidr ip of egress/ingress Rule.
- creation
Time String - The creation time of security group rule.
- description String
- description of a group rule.
- direction String
- Direction of rule, ingress (inbound) or egress (outbound).
- policy String
- Access strategy.
- port
End Number - Port end of egress/ingress Rule.
- port
Start Number - Port start of egress/ingress Rule.
- priority Number
- Priority of a security group rule.
- protocol String
- Protocol of the SecurityGroup, the value can be
tcp
orudp
oricmp
orall
. - security
Group StringId - SecurityGroup ID.
- source
Group StringId - ID of the source security group whose access permission you want to set.
- update
Time String - The update time of security group rule.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.