summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
authorLingxian Kong <anlin.kong@gmail.com>2019-06-06 16:15:04 +1200
committerLingxian Kong <anlin.kong@gmail.com>2019-06-06 16:15:05 +1200
commitf83899867e1ac8f46526b10e74ad120ced379819 (patch)
treeb4db2080d3d4267f9509a23ab85d985a3de5e015 /api-ref
parent2c6feef9580b9ca56fccfee51bc0f7ea1f2839a6 (diff)
downloadtrove-f83899867e1ac8f46526b10e74ad120ced379819.tar.gz
Remove flavor operations from API doc
Trove doesn't need to expose resources directly from Nova. Change-Id: If705470330f51be9b78914ac2d456c62348c4329
Diffstat (limited to 'api-ref')
-rw-r--r--api-ref/source/flavors.inc81
-rwxr-xr-xapi-ref/source/index.rst1
-rw-r--r--api-ref/source/samples/db-flavors-by-id-request-json-http.txt7
-rw-r--r--api-ref/source/samples/db-flavors-by-id-response-json-http.txt5
-rw-r--r--api-ref/source/samples/db-flavors-by-id-response.json21
-rw-r--r--api-ref/source/samples/db-flavors-request-json-http.txt7
-rw-r--r--api-ref/source/samples/db-flavors-response-json-http.txt5
-rw-r--r--api-ref/source/samples/db-flavors-response.json251
8 files changed, 0 insertions, 378 deletions
diff --git a/api-ref/source/flavors.inc b/api-ref/source/flavors.inc
deleted file mode 100644
index 005aa2f1..00000000
--- a/api-ref/source/flavors.inc
+++ /dev/null
@@ -1,81 +0,0 @@
-.. -*- rst -*-
-
-=================
-Flavors (flavors)
-=================
-
-Lists all flavors and shows details for a flavor, by ID.
-
-
-Show flavor details
-~~~~~~~~~~~~~~~~~~~
-
-.. rest_method:: GET /v1.0/{accountId}/flavors/{flavorId}
-
-Shows flavor details with details of the RAM.
-
-This resource is identical to the flavors found in the OpenStack
-Compute API, but without the disk property.
-
-The ``flavorId`` parameter must be an integer value. If you use a
-floating point value for this parameter, this call truncates the
-decimal portion and uses the integer portion as the ``flavorId``
-value.
-
-Normal response codes: 200
-
-Error response codes: badRequest(400),unauthorized(401),forbidden(403),
-itemNotFound(404), badMethod(405),overLimit(413),unprocessableEntity(422),
-instanceFault(500),notImplemented(501), serviceUnavailable(503)
-
-
-Request
--------
-
-.. rest_parameters:: parameters.yaml
-
- - flavorId: flavorId
- - accountId: accountId
-
-
-Response Example
-----------------
-
-.. literalinclude:: samples/db-flavors-by-id-response.json
- :language: javascript
-
-
-
-
-List flavors
-~~~~~~~~~~~~
-
-.. rest_method:: GET /v1.0/{accountId}/flavors
-
-Lists information for all available flavors.
-
-This operation lists information for all available flavors.
-
-This resource is identical to the flavors found in the OpenStack
-Nova API.
-
-Normal response codes: 200
-
-Error response codes: badRequest(400),unauthorized(401),forbidden(403),
-itemNotFound(404), badMethod(405),overLimit(413),unprocessableEntity(422),
-instanceFault(500),notImplemented(501), serviceUnavailable(503)
-
-
-Request
--------
-
-.. rest_parameters:: parameters.yaml
-
- - accountId: accountId
-
-
-Response Example
-----------------
-
-.. literalinclude:: samples/db-flavors-response.json
- :language: javascript
diff --git a/api-ref/source/index.rst b/api-ref/source/index.rst
index 273dac4c..0a754d2c 100755
--- a/api-ref/source/index.rst
+++ b/api-ref/source/index.rst
@@ -12,7 +12,6 @@
.. include:: database-instance-logs.inc
.. include:: databases.inc
.. include:: user-management.inc
-.. include:: flavors.inc
.. include:: datastores.inc
.. include:: configurations.inc
.. include:: backups.inc
diff --git a/api-ref/source/samples/db-flavors-by-id-request-json-http.txt b/api-ref/source/samples/db-flavors-by-id-request-json-http.txt
deleted file mode 100644
index a5b266b2..00000000
--- a/api-ref/source/samples/db-flavors-by-id-request-json-http.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-GET /v1.0/1234/flavors/1 HTTP/1.1
-User-Agent: python-troveclient
-Host: troveapi.org
-X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
-Accept: application/json
-Content-Type: application/json
-
diff --git a/api-ref/source/samples/db-flavors-by-id-response-json-http.txt b/api-ref/source/samples/db-flavors-by-id-response-json-http.txt
deleted file mode 100644
index a92f8a24..00000000
--- a/api-ref/source/samples/db-flavors-by-id-response-json-http.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-HTTP/1.1 200 OK
-Content-Type: application/json
-Content-Length: 254
-Date: Mon, 18 Mar 2013 19:09:17 GMT
-
diff --git a/api-ref/source/samples/db-flavors-by-id-response.json b/api-ref/source/samples/db-flavors-by-id-response.json
deleted file mode 100644
index 56713977..00000000
--- a/api-ref/source/samples/db-flavors-by-id-response.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "flavor": {
- "ephemeral": 0,
- "id": 1,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/1",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/1",
- "rel": "bookmark"
- }
- ],
- "name": "m1.tiny",
- "ram": 512,
- "str_id": "1",
- "disk":0,
- "vcpus": 10
- }
-}
diff --git a/api-ref/source/samples/db-flavors-request-json-http.txt b/api-ref/source/samples/db-flavors-request-json-http.txt
deleted file mode 100644
index 427f96ba..00000000
--- a/api-ref/source/samples/db-flavors-request-json-http.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-GET /v1.0/1234/flavors HTTP/1.1
-User-Agent: python-troveclient
-Host: troveapi.org
-X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
-Accept: application/json
-Content-Type: application/json
-
diff --git a/api-ref/source/samples/db-flavors-response-json-http.txt b/api-ref/source/samples/db-flavors-response-json-http.txt
deleted file mode 100644
index 101f6aef..00000000
--- a/api-ref/source/samples/db-flavors-response-json-http.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-HTTP/1.1 200 OK
-Content-Type: application/json
-Content-Length: 3258
-Date: Mon, 18 Mar 2013 19:09:17 GMT
-
diff --git a/api-ref/source/samples/db-flavors-response.json b/api-ref/source/samples/db-flavors-response.json
deleted file mode 100644
index b237c3be..00000000
--- a/api-ref/source/samples/db-flavors-response.json
+++ /dev/null
@@ -1,251 +0,0 @@
-{
- "flavors": [
- {
- "ephemeral": 0,
- "id": 1,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/1",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/1",
- "rel": "bookmark"
- }
- ],
- "name": "m1.tiny",
- "ram": 512,
- "str_id": "1",
- "vcpus": 10,
- "disk":0
- },
- {
- "ephemeral": 0,
- "id": 2,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/2",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/2",
- "rel": "bookmark"
- }
- ],
- "name": "m1.small",
- "ram": 2048,
- "str_id": "2",
- "vcpus": 10,
- "disk":20
- },
- {
- "ephemeral": 0,
- "id": 3,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/3",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/3",
- "rel": "bookmark"
- }
- ],
- "name": "m1.medium",
- "ram": 4096,
- "str_id": "3",
- "vcpus": 10,
- "disk":40
- },
- {
- "ephemeral": 0,
- "id": 4,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/4",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/4",
- "rel": "bookmark"
- }
- ],
- "name": "m1.large",
- "ram": 8192,
- "str_id": "4",
- "vcpus": 10,
- "disk":80
- },
- {
- "ephemeral": 0,
- "id": 5,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/5",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/5",
- "rel": "bookmark"
- }
- ],
- "name": "m1.xlarge",
- "ram": 16384,
- "str_id": "5",
- "vcpus": 10,
- "disk":160
- },
- {
- "ephemeral": 0,
- "id": 6,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/6",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/6",
- "rel": "bookmark"
- }
- ],
- "name": "m1.nano",
- "ram": 64,
- "str_id": "6",
- "vcpus": 10,
- "disk":0
- },
- {
- "ephemeral": 0,
- "id": 7,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/7",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/7",
- "rel": "bookmark"
- }
- ],
- "name": "m1.micro",
- "ram": 128,
- "str_id": "7",
- "vcpus": 10,
- "disk":0
- },
- {
- "ephemeral": 0,
- "id": 8,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/8",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/8",
- "rel": "bookmark"
- }
- ],
- "name": "m1.rd-smaller",
- "ram": 768,
- "str_id": "8",
- "vcpus": 10,
- "disk":2
- },
- {
- "ephemeral": 0,
- "id": 9,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/9",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/9",
- "rel": "bookmark"
- }
- ],
- "name": "tinier",
- "ram": 506,
- "str_id": "9",
- "vcpus": 10,
- "disk":10
- },
- {
- "ephemeral": 0,
- "id": 10,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/10",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/10",
- "rel": "bookmark"
- }
- ],
- "name": "m1.rd-tiny",
- "ram": 512,
- "str_id": "10",
- "vcpus": 10,
- "disk":2
- },
- {
- "ephemeral": 1,
- "id": 11,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/11",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/11",
- "rel": "bookmark"
- }
- ],
- "name": "eph.rd-tiny",
- "ram": 512,
- "str_id": "11",
- "vcpus": 10,
- "disk":0
- },
- {
- "ephemeral": 2,
- "id": 12,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/12",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/12",
- "rel": "bookmark"
- }
- ],
- "name": "eph.rd-smaller",
- "ram": 768,
- "str_id": "12",
- "vcpus": 10,
- "disk":20
- },
- {
- "ephemeral": 1,
- "id": null,
- "links": [
- {
- "href": "https://troveapi.org/v1.0/1234/flavors/custom",
- "rel": "self"
- },
- {
- "href": "https://troveapi.org/flavors/custom",
- "rel": "bookmark"
- }
- ],
- "name": "custom.small",
- "ram": 512,
- "str_id": "custom",
- "vcpus": 10,
- "disk":25
- }
- ]
-}