blob: d68ea46b46f58134f2c21052e1d39bfbda668aa8 [file] [log] [blame]
Jian Lid3472bf2018-02-12 15:22:04 +09001{
2 "type": "object",
3 "description": "",
4 "required": [
5 "security_group_rule"
6 ],
7 "properties": {
8 "security_group_rule": {
9 "type": "object",
10 "required": [
11 "id",
12 "tenant_id",
13 "security_group_id",
14 "direction",
15 "ethertype",
16 "port_range_max",
17 "port_range_min",
18 "protocol",
19 "remote_ip_prefix",
20 "remote_group_id"
21 ],
22 "properties": {
23 "id": {
24 "type": "string",
25 "example": "2bc0accf-312e-429a-956e-e4407625eb62",
26 "description": "The ID of this security group rule."
27 },
28 "tenant_id": {
29 "type": "string",
30 "example": "e4f50856753b4dc6afee5fa6b9b6c550",
31 "description": "The ID of the project."
32 },
33 "security_group_id": {
34 "type": "string",
35 "example": "a7734e61-b545-452d-a3cd-0189cbd9747a",
36 "description": "The security group ID to associate with this security group rule."
37 },
38 "direction": {
39 "type": "string",
40 "example": "ingress",
41 "description": "Ingress or egress, which is the direction in which the metering rule is applied."
42 },
43 "ethertype": {
44 "type": "string",
45 "example": "IPv4",
46 "description": "Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules."
47 },
48 "port_range_max": {
49 "type": "integer",
50 "format": "int32",
51 "example": 80,
52 "description": "The maximum port number in the range that is matched by the security group rule."
53 },
54 "port_range_min": {
55 "type": "integer",
56 "format": "int32",
57 "example": 80,
58 "description": "The minimum port number in the range that is matched by the security group rule."
59 },
60 "protocol": {
61 "type": "string",
62 "example": "tcp",
63 "description": "The IP protocol can be represented by a string, an integer, or null."
64 },
65 "remote_ip_prefix": {
66 "type": "string",
67 "example": "",
68 "description": "The remote IP prefix to associate with this metering rule packet."
69 },
70 "remote_group_id": {
71 "type": "string",
72 "example": "85cc3048-abc3-43cc-89b3-377341426ac5",
73 "description": "The remote group UUID to associate with this security group rule."
74 }
75 }
76 }
77 }
78}