aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/apploadbalancer/v1/target_group.proto
blob: 7322f886755ae97a3906b9279c49b2c41a4a0da6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
syntax = "proto3";

package yandex.cloud.apploadbalancer.v1;

import "google/protobuf/timestamp.proto";
import "yandex/cloud/validation.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/apploadbalancer/v1;apploadbalancer";
option java_package = "yandex.cloud.api.apploadbalancer.v1";

// A target group resource.
// For details about the concept, see [documentation](/docs/application-load-balancer/concepts/target-group).
message TargetGroup {
  // ID of the target group. Generated at creation time.
  string id = 1;

  // Name of the target group. The name is unique within the folder.
  string name = 2;

  // Description of the target group.
  string description = 3;

  // ID of the folder that the target group belongs to.
  string folder_id = 4;

  // Target group labels as `key:value` pairs.
  // For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
  map<string, string> labels = 5;

  // List of targets in the target group.
  repeated Target targets = 6;

  // Creation timestamp.
  google.protobuf.Timestamp created_at = 7;
}

// A target resource.
// For details about the concept, see [documentation](/docs/application-load-balancer/concepts/target-group).
message Target {
  reserved 2;
  // Reference to the target. As of now, targets must only be referred to by their IP addresses.
  oneof address_type {
    option (exactly_one) = true;

    // IP address of the target.
    string ip_address = 1;
  }

  // ID of the subnet that the target is connected to.
  string subnet_id = 3;

  // If set, will not require `subnet_id` to validate the target.
  // Instead, the address should belong to one of the following ranges:
  // 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
  // Only one of `subnet_id` or `private_ipv4_address` should be set.
  bool private_ipv4_address = 4;
}