Add zone 'attributes' to api-ref

Change-Id: Ieb99d4944165e4db32bba3b6b6be627d5d3f4038
This commit is contained in:
Graham Hayes 2017-12-04 18:47:08 +00:00
parent 0c702e1751
commit 3d35557851
No known key found for this signature in database
GPG Key ID: 1B263DC59F4AEFD5
6 changed files with 27 additions and 0 deletions

View File

@ -43,6 +43,7 @@ Request
- description: zone_description - description: zone_description
- masters: zone_masters - masters: zone_masters
- type: zone_type - type: zone_type
- attributes: zone_attributes
Request Example Request Example
@ -73,6 +74,7 @@ Response Parameters
- version: version - version: version
- created_at: created_at - created_at: created_at
- updated_at: updated_at - updated_at: updated_at
- attributes: zone_attributes
- links: links - links: links
@ -149,6 +151,7 @@ Response Parameters
- version: version - version: version
- created_at: created_at - created_at: created_at
- updated_at: updated_at - updated_at: updated_at
- attributes: zone_attributes
- links: links - links: links
- metadata: metadata - metadata: metadata
@ -217,6 +220,7 @@ Response Parameters
- version: version - version: version
- created_at: created_at - created_at: created_at
- updated_at: updated_at - updated_at: updated_at
- attributes: zone_attributes
- links: links - links: links
@ -347,6 +351,7 @@ Response Parameters
- version: version - version: version
- created_at: created_at - created_at: created_at
- updated_at: updated_at - updated_at: updated_at
- attributes: zone_attributes
- links: links - links: links
@ -414,6 +419,7 @@ Response Parameters
- version: version - version: version
- created_at: created_at - created_at: created_at
- updated_at: updated_at - updated_at: updated_at
- attributes: zone_attributes
- links: links - links: links

View File

@ -676,6 +676,15 @@ version:
required: true required: true
type: integer type: integer
zone_attributes:
description: |
Key:Value pairs of information about this zone, and the pool the user
would like to place the zone in. This information can be used by the
scheduler to place zones on the correct pool.
in: body
required: false
type: dict
zone_description: zone_description:
description: | description: |
Description for this zone Description for this zone

View File

@ -1,4 +1,7 @@
{ {
"attributes": {
"tier": "gold", "ha": "true"
},
"name": "example.org.", "name": "example.org.",
"email": "joe@example.org", "email": "joe@example.org",
"type": "PRIMARY", "type": "PRIMARY",

View File

@ -17,6 +17,9 @@
"version": 1, "version": 1,
"created_at": "2014-07-07T18:25:31.275934", "created_at": "2014-07-07T18:25:31.275934",
"updated_at": null, "updated_at": null,
"attributes": {
"tier": "gold", "ha": "true"
},
"links": { "links": {
"self": "https://127.0.0.1:9001/v2/zones/a86dba58-0043-4cc6-a1bb-69d5e86f3ca3" "self": "https://127.0.0.1:9001/v2/zones/a86dba58-0043-4cc6-a1bb-69d5e86f3ca3"
} }

View File

@ -15,6 +15,9 @@
"version": 1, "version": 1,
"created_at": "2014-07-07T18:25:31.275934", "created_at": "2014-07-07T18:25:31.275934",
"updated_at": null, "updated_at": null,
"attributes": {
"tier": "gold", "ha": "true"
},
"links": { "links": {
"self": "https://127.0.0.1:9001/v2/zones/a86dba58-0043-4cc6-a1bb-69d5e86f3ca3" "self": "https://127.0.0.1:9001/v2/zones/a86dba58-0043-4cc6-a1bb-69d5e86f3ca3"
} }

View File

@ -15,6 +15,9 @@
"version": 1, "version": 1,
"created_at": "2014-07-07T18:25:31.275934", "created_at": "2014-07-07T18:25:31.275934",
"updated_at": null, "updated_at": null,
"attributes": {
"tier": "gold", "ha": "true"
},
"links": { "links": {
"self": "https://127.0.0.1:9001/v2/zones/a86dba58-0043-4cc6-a1bb-69d5e86f3ca3" "self": "https://127.0.0.1:9001/v2/zones/a86dba58-0043-4cc6-a1bb-69d5e86f3ca3"
} }