1. Packages
  2. Yandex
  3. API Docs
  4. getVpcSecurityGroupRule
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getVpcSecurityGroupRule

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    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)
    }
    public static CompletableFuture<GetVpcSecurityGroupRuleResult> getVpcSecurityGroupRule(GetVpcSecurityGroupRuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: yandex:index/getVpcSecurityGroupRule:getVpcSecurityGroupRule
      arguments:
        # arguments dictionary

    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 Integer
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String,String>
    port Integer
    predefinedTarget String
    protocol String
    ruleId String
    securityGroupBinding String
    securityGroupId String
    toPort Integer
    v4CidrBlocks List<String>
    v6CidrBlocks List<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]
    description String
    direction String
    fromPort Number
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String>
    port Number
    predefinedTarget String
    protocol String
    ruleId String
    securityGroupBinding String
    securityGroupId String
    toPort Number
    v4CidrBlocks List<String>
    v6CidrBlocks List<String>

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi