summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Rosmaita <rosmaita.fossdev@gmail.com>2018-03-06 12:41:32 -0500
committerBrian Rosmaita <rosmaita.fossdev@gmail.com>2018-03-06 12:45:58 -0500
commit0b49605630084dd3203a3c5b5c9d5587d3ccdb20 (patch)
treebdd2d1e598421105e6db7c782039a51ab0bac0ee
parentc9f2772e4eabfc6a2a1abc4f2f2bc7f87322d898 (diff)
downloadglance-0b49605630084dd3203a3c5b5c9d5587d3ccdb20.tar.gz
api-ref: fix list-resource-type-assocs example
In the metadefs section of the api-ref, the current example response for the list-resource-type-associations call is incorrect. Add a correct example response. Change-Id: I10e92ce96b40563b3c4d02ac5c542960564837ec Closes-bug: #1751208
-rw-r--r--api-ref/source/v2/metadefs-resourcetypes.inc2
-rw-r--r--api-ref/source/v2/samples/metadef-resource-type-assoc-list-response.json14
2 files changed, 15 insertions, 1 deletions
diff --git a/api-ref/source/v2/metadefs-resourcetypes.inc b/api-ref/source/v2/metadefs-resourcetypes.inc
index ac37b2c9c..c3d6261a2 100644
--- a/api-ref/source/v2/metadefs-resourcetypes.inc
+++ b/api-ref/source/v2/metadefs-resourcetypes.inc
@@ -129,7 +129,7 @@ Response Parameters
Response Example
----------------
-.. literalinclude:: samples/metadef-resource-types-list-response.json
+.. literalinclude:: samples/metadef-resource-type-assoc-list-response.json
:language: json
diff --git a/api-ref/source/v2/samples/metadef-resource-type-assoc-list-response.json b/api-ref/source/v2/samples/metadef-resource-type-assoc-list-response.json
new file mode 100644
index 000000000..fdea78c55
--- /dev/null
+++ b/api-ref/source/v2/samples/metadef-resource-type-assoc-list-response.json
@@ -0,0 +1,14 @@
+{
+ "resource_type_associations": [
+ {
+ "created_at": "2018-03-05T18:20:44Z",
+ "name": "OS::Nova::Flavor",
+ "prefix": "hw:"
+ },
+ {
+ "created_at": "2018-03-05T18:20:44Z",
+ "name": "OS::Glance::Image",
+ "prefix": "hw_"
+ }
+ ]
+}