summaryrefslogtreecommitdiff
path: root/doc/api_samples/os-security-groups
diff options
context:
space:
mode:
authorSean Dague <sean@dague.net>2015-12-14 10:04:46 -0500
committerSean Dague <sean@dague.net>2015-12-17 13:01:28 -0500
commitf9f3946e0d0d34e5d431ccbff0507d6027cc6fd2 (patch)
tree8de27d51d8ad85eaa8439cb19d75ec2dcebf58d9 /doc/api_samples/os-security-groups
parent19f4c3a8b3465de8022f7a7cbb3a1e9e0c1d8f16 (diff)
downloadnova-f9f3946e0d0d34e5d431ccbff0507d6027cc6fd2.tar.gz
Use just ids in all request templates for flavors/images
While the API allows for strings which happen to end in an ID for flavorRef/imageRef, the common path is really just the ID itself, and we should have the samples do this. The use of full urls in our samples makes it seem like this is more meaningful than it really is, and that you could pass a url to a remote system, for instance, which won't work at all. Change-Id: I669619b627f954232712d54498b3744353d25451
Diffstat (limited to 'doc/api_samples/os-security-groups')
-rw-r--r--doc/api_samples/os-security-groups/server-post-req.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api_samples/os-security-groups/server-post-req.json b/doc/api_samples/os-security-groups/server-post-req.json
index df7f5a783d..cc589208cc 100644
--- a/doc/api_samples/os-security-groups/server-post-req.json
+++ b/doc/api_samples/os-security-groups/server-post-req.json
@@ -3,11 +3,11 @@
"accessIPv4": "1.2.3.4",
"accessIPv6": "80fe::",
"name" : "new-server-test",
- "imageRef" : "http://glance.openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
- "flavorRef" : "http://openstack.example.com/openstack/flavors/1",
+ "imageRef" : "70a599e0-31e7-49b7-b260-868f441e862b",
+ "flavorRef" : "1",
"metadata" : {
"My Server Name" : "Apache1"
},
"security_groups": [{"name": "test"}]
}
-} \ No newline at end of file
+}