@nebius/js-sdk - v0.2.54
    Preparing search index...

    Interface SecurityRuleSpec

    Represents the nebius.vpc.v1.SecurityRuleSpec protobuf message.

    interface SecurityRuleSpec {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.vpc.v1.SecurityRuleSpec";
        access: RuleAccessAction;
        match?:
            | { $case: "ingress"; ingress: RuleIngress }
            | { $case: "egress"; egress: RuleEgress };
        priority: number;
        protocol: RuleProtocol;
        type: RuleType;
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      Represents the nebius.vpc.v1.SecurityRuleSpec protobuf message.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • Represents the nebius.vpc.v1.SecurityRuleSpec protobuf message.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

      • (): unknown
      • Returns a safe value for JSON logs.

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "nebius.vpc.v1.SecurityRuleSpec"

    Contains the fully qualified protobuf type name.

    Access action for the rule. Required. Determines whether matching traffic is allowed or denied.

    match?:
        | { $case: "ingress"; ingress: RuleIngress }
        | { $case: "egress"; egress: RuleEgress }

    Indicating whether the rule matches incoming or outgoing traffic.

    Type Declaration

    • { $case: "ingress"; ingress: RuleIngress }
      • $case: "ingress"

        Contains the case.

      • ingress: RuleIngress

        Contains the ingress.

    • { $case: "egress"; egress: RuleEgress }
      • $case: "egress"

        Contains the case.

      • egress: RuleEgress

        Contains the egress.

    priority: number

    Priority of the rule. Valid range: 0-1000. Optional. If not specified or set to 0, defaults to 500. Rules are evaluated in priority order (lower numbers first) using a first-match algorithm: only the first matching rule takes effect (ALLOW or DENY), and subsequent rules are skipped.

    When multiple rules share the same priority, DENY rules are evaluated before ALLOW rules. The final evaluation order is reflected in 'effective_priority' (see SecurityRuleStatus).

    protocol: RuleProtocol

    Protocol used in the rule. Supported values: ANY, TCP, UDP, ICMP.

    type: RuleType

    Type of the rule (STATEFUL or STATELESS) Default value is STATEFUL