getVpcSecurityGroupRule

Using getVpcSecurityGroupRule

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 getVpcSecurityGroupRule(args: GetVpcSecurityGroupRuleArgs, opts?: InvokeOptions): Promise<GetVpcSecurityGroupRuleResult>
function getVpcSecurityGroupRuleOutput(args: GetVpcSecurityGroupRuleOutputArgs, opts?: InvokeOptions): Output<GetVpcSecurityGroupRuleResult>
def get_vpc_security_group_rule(rule_id: Optional[str] = None,
                                security_group_binding: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetVpcSecurityGroupRuleResult
def get_vpc_security_group_rule_output(rule_id: Optional[pulumi.Input[str]] = None,
                                security_group_binding: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetVpcSecurityGroupRuleResult]
func LookupVpcSecurityGroupRule(ctx *Context, args *LookupVpcSecurityGroupRuleArgs, opts ...InvokeOption) (*LookupVpcSecurityGroupRuleResult, error)
func LookupVpcSecurityGroupRuleOutput(ctx *Context, args *LookupVpcSecurityGroupRuleOutputArgs, opts ...InvokeOption) LookupVpcSecurityGroupRuleResultOutput

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

public static class GetVpcSecurityGroupRule 
{
    public static Task<GetVpcSecurityGroupRuleResult> InvokeAsync(GetVpcSecurityGroupRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetVpcSecurityGroupRuleResult> Invoke(GetVpcSecurityGroupRuleInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

getVpcSecurityGroupRule Result

The following output properties are available:

Description string
Direction string
FromPort int
Id string
The provider-assigned unique ID for this managed resource.
Labels Dictionary<string, string>
Port int
PredefinedTarget string
Protocol string
RuleId string
SecurityGroupBinding string
SecurityGroupId string
ToPort int
V4CidrBlocks List<string>
V6CidrBlocks List<string>
Description string
Direction string
FromPort int
Id string
The provider-assigned unique ID for this managed resource.
Labels map[string]string
Port int
PredefinedTarget string
Protocol string
RuleId string
SecurityGroupBinding string
SecurityGroupId string
ToPort int
V4CidrBlocks []string
V6CidrBlocks []string
description string
direction string
fromPort number
id string
The provider-assigned unique ID for this managed resource.
labels {[key: string]: string}
port number
predefinedTarget string
protocol string
ruleId string
securityGroupBinding string
securityGroupId string
toPort number
v4CidrBlocks string[]
v6CidrBlocks string[]
description str
direction str
from_port int
id str
The provider-assigned unique ID for this managed resource.
labels Mapping[str, str]
port int
predefined_target str
protocol str
rule_id str
security_group_binding str
security_group_id str
to_port int
v4_cidr_blocks Sequence[str]
v6_cidr_blocks Sequence[str]

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.