api: Add response body schemas for security group APIs
We also tackle the server security group and security group rules controllers at the same time since they are so similar. Change-Id: I7a039cdc172de59392215e9d6a9a24d03144cb85 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"security_group_rule": {
|
||||
"parent_group_id": "21111111-1111-1111-1111-111111111112",
|
||||
"parent_group_id": "d6f86d8c-06ef-4bef-8e7c-8bf8f9ba9b7a",
|
||||
"ip_protocol": "tcp",
|
||||
"from_port": 22,
|
||||
"to_port": 22,
|
||||
"cidr": "10.0.0.0/24"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
"security_group_rule": {
|
||||
"from_port": 22,
|
||||
"group": {},
|
||||
"id": "00000000-0000-0000-0000-000000000000",
|
||||
"id": "baed7fb4-16b9-4b99-a2fd-02d0b1a4d9b2",
|
||||
"ip_protocol": "tcp",
|
||||
"ip_range": {
|
||||
"cidr": "10.0.0.0/24"
|
||||
},
|
||||
"parent_group_id": "11111111-1111-1111-1111-111111111111",
|
||||
"parent_group_id": "d6f86d8c-06ef-4bef-8e7c-8bf8f9ba9b7a",
|
||||
"to_port": 22
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"security_group": {
|
||||
"description": "default",
|
||||
"id": 1,
|
||||
"id": "4e469db4-3b60-43c7-8dfa-2c60e2f27075",
|
||||
"name": "default",
|
||||
"rules": [],
|
||||
"tenant_id": "6f70656e737461636b20342065766572"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"security_group": {
|
||||
"description": "default",
|
||||
"id": 1,
|
||||
"id": "4e469db4-3b60-43c7-8dfa-2c60e2f27075",
|
||||
"name": "default",
|
||||
"rules": [],
|
||||
"tenant_id": "6f70656e737461636b20342065766572"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
"security_groups": [
|
||||
{
|
||||
"description": "default",
|
||||
"id": 1,
|
||||
"id": "4e469db4-3b60-43c7-8dfa-2c60e2f27075",
|
||||
"name": "default",
|
||||
"rules": [],
|
||||
"tenant_id": "6f70656e737461636b20342065766572"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
"security_groups": [
|
||||
{
|
||||
"description": "default",
|
||||
"id": 1,
|
||||
"id": "4e469db4-3b60-43c7-8dfa-2c60e2f27075",
|
||||
"name": "default",
|
||||
"rules": [],
|
||||
"tenant_id": "6f70656e737461636b20342065766572"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user