Add params for API v3 snapshot-create
In api-ref/source/v3/volumes-v3-snapshots.inc, the API for snapshot-create is missing request params [metadata] and response params [updated_at], So the patch is to add the missing param as well as the sample JSON files. Change-Id: Id77525922e4b94613da35c4329c24f2fda8fda10
This commit is contained in:
parent
870b9edac9
commit
5b9e9875df
@ -3,6 +3,7 @@
|
|||||||
"name": "snap-001",
|
"name": "snap-001",
|
||||||
"description": "Daily backup",
|
"description": "Daily backup",
|
||||||
"volume_id": "5aa119a8-d25b-45a7-8d1b-88e127885635",
|
"volume_id": "5aa119a8-d25b-45a7-8d1b-88e127885635",
|
||||||
"force": true
|
"force": true,
|
||||||
|
"metadata": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,9 +4,11 @@
|
|||||||
"description": "Daily backup",
|
"description": "Daily backup",
|
||||||
"created_at": "2013-02-25T03:56:53.081642",
|
"created_at": "2013-02-25T03:56:53.081642",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
"updated_at": "2013-02-25T03:58:53.081642",
|
||||||
"volume_id": "5aa119a8-d25b-45a7-8d1b-88e127885635",
|
"volume_id": "5aa119a8-d25b-45a7-8d1b-88e127885635",
|
||||||
"size": 1,
|
"size": 1,
|
||||||
"id": "ffa9bc5e-1172-4021-acaf-cdcd78a9584d",
|
"id": "ffa9bc5e-1172-4021-acaf-cdcd78a9584d",
|
||||||
"name": "snap-001"
|
"name": "snap-001"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,6 +97,7 @@ Request
|
|||||||
- description: description
|
- description: description
|
||||||
- name: name
|
- name: name
|
||||||
- project_id: project_id_path
|
- project_id: project_id_path
|
||||||
|
- metadata: metadata_7
|
||||||
|
|
||||||
Request Example
|
Request Example
|
||||||
---------------
|
---------------
|
||||||
@ -118,6 +119,13 @@ Response Parameters
|
|||||||
- metadata: metadata
|
- metadata: metadata
|
||||||
- id: id
|
- id: id
|
||||||
- size: size
|
- size: size
|
||||||
|
- updated_at: updated_at
|
||||||
|
|
||||||
|
Response Example
|
||||||
|
----------------
|
||||||
|
|
||||||
|
.. literalinclude:: ./samples/snapshot-create-response.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
List accessible snapshots
|
List accessible snapshots
|
||||||
|
Loading…
Reference in New Issue
Block a user