Api-ref: add documentation for v2/v3 backup 'os-reset_status' action
There is no document about v2/v3 backup 'os-reset_status' action. This action explicitly updates the backup state. So add the missing content. Change-Id: Ie0dd2b4e184d09e957c4ba296544f5019d05fda3 Partial-Bug: #1607539
This commit is contained in:
parent
bd33bbffb7
commit
57330a12a8
@ -3,7 +3,7 @@
|
|||||||
Backup actions (backups, action)
|
Backup actions (backups, action)
|
||||||
================================
|
================================
|
||||||
|
|
||||||
Force-deletes a backup.
|
Force-deletes a backup and reset status for a backup.
|
||||||
|
|
||||||
|
|
||||||
Force-delete backup
|
Force-delete backup
|
||||||
@ -18,9 +18,8 @@ This operations deletes the backup and any backup data.
|
|||||||
The backup driver returns the ``405`` status code if it does not
|
The backup driver returns the ``405`` status code if it does not
|
||||||
support this operation.
|
support this operation.
|
||||||
|
|
||||||
Normal response codes: 202,
|
Normal response codes: 202
|
||||||
|
Error response codes: itemNotFound(404), badMethod(405)
|
||||||
Error response codes:404,405,
|
|
||||||
|
|
||||||
|
|
||||||
Request
|
Request
|
||||||
@ -37,3 +36,33 @@ Request Example
|
|||||||
|
|
||||||
.. literalinclude:: ./samples/backup-force-delete-request.json
|
.. literalinclude:: ./samples/backup-force-delete-request.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reset backup's status
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. rest_method:: POST /v2/{tenant_id}/backups/{backup_id}/action
|
||||||
|
|
||||||
|
Reset a backup's status. Specify the ``os-reset_status`` action in the request body.
|
||||||
|
|
||||||
|
Normal response codes: 202
|
||||||
|
Error response codes: badRequest(400), itemNotFound(404)
|
||||||
|
|
||||||
|
|
||||||
|
Request
|
||||||
|
-------
|
||||||
|
|
||||||
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- status: status_7
|
||||||
|
- os-reset_status: os-reset_status
|
||||||
|
- tenant_id: tenant_id
|
||||||
|
- backup_id: backup_id
|
||||||
|
|
||||||
|
Request Example
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. literalinclude:: ./samples/backup-reset-status-request.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ backup_id:
|
|||||||
description: |
|
description: |
|
||||||
The UUID for a backup.
|
The UUID for a backup.
|
||||||
in: path
|
in: path
|
||||||
required: false
|
required: true
|
||||||
type: string
|
type: string
|
||||||
cascade:
|
cascade:
|
||||||
description: |
|
description: |
|
||||||
@ -1571,6 +1571,12 @@ status_6:
|
|||||||
in: body
|
in: body
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
status_7:
|
||||||
|
description: |
|
||||||
|
The status for the backup.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
storage_protocol:
|
storage_protocol:
|
||||||
description: |
|
description: |
|
||||||
The storage back end for the back-end volume. For
|
The storage back end for the back-end volume. For
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"os-reset_status": {
|
||||||
|
"status": "available"
|
||||||
|
}
|
||||||
|
}
|
@ -3,7 +3,7 @@
|
|||||||
Backup actions (backups, action)
|
Backup actions (backups, action)
|
||||||
================================
|
================================
|
||||||
|
|
||||||
Force-deletes a backup.
|
Force-deletes a backup and reset status for a backup.
|
||||||
|
|
||||||
|
|
||||||
Force-delete a backup
|
Force-delete a backup
|
||||||
@ -18,8 +18,8 @@ This operations deletes the backup and any backup data.
|
|||||||
The backup driver returns the ``405`` status code if it does not
|
The backup driver returns the ``405`` status code if it does not
|
||||||
support this operation.
|
support this operation.
|
||||||
|
|
||||||
Error response codes:404,405,202,
|
Normal response codes: 202
|
||||||
|
Error response codes: itemNotFound(404), badMethod(405)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -35,3 +35,33 @@ Request Example
|
|||||||
|
|
||||||
.. literalinclude:: ./samples/backup-force-delete-request.json
|
.. literalinclude:: ./samples/backup-force-delete-request.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reset a backup's status
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. rest_method:: POST /v3/{project_id}/backups/{backup_id}/action
|
||||||
|
|
||||||
|
Reset a backup's status. Specify the ``os-reset_status`` action in the request body.
|
||||||
|
|
||||||
|
Normal response codes: 202
|
||||||
|
Error response codes: badRequest(400), itemNotFound(404)
|
||||||
|
|
||||||
|
|
||||||
|
Request
|
||||||
|
-------
|
||||||
|
|
||||||
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- status: status_10
|
||||||
|
- os-reset_status: os-reset_status
|
||||||
|
- project_id: project_id_path
|
||||||
|
- backup_id: backup_id
|
||||||
|
|
||||||
|
Request Example
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. literalinclude:: ./samples/backup-reset-status-request.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ backup_id:
|
|||||||
description: |
|
description: |
|
||||||
The UUID for a backup.
|
The UUID for a backup.
|
||||||
in: path
|
in: path
|
||||||
required: false
|
required: true
|
||||||
type: string
|
type: string
|
||||||
cascade:
|
cascade:
|
||||||
description: |
|
description: |
|
||||||
@ -1875,6 +1875,12 @@ status_1:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
status_10:
|
||||||
|
description: |
|
||||||
|
The status for the backup.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
status_2:
|
status_2:
|
||||||
description: |
|
description: |
|
||||||
The status for the snapshot.
|
The status for the snapshot.
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"os-reset_status": {
|
||||||
|
"status": "available"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user