Merge "api-ref: fix some issues in volumes interfaces"

This commit is contained in:
Zuul 2019-01-09 02:40:17 +00:00 committed by Gerrit Code Review
commit 906acbc8a0
4 changed files with 21 additions and 9 deletions

View File

@ -1322,21 +1322,21 @@ os-vol-host-attr:host:
Current back-end of the volume. Current back-end of the volume.
Host format is ``host@backend#pool``. Host format is ``host@backend#pool``.
in: body in: body
required: true required: false
type: string type: string
os-vol-mig-status-attr:migstat: os-vol-mig-status-attr:migstat:
description: | description: |
The status of this volume migration (None means The status of this volume migration (None means
that a migration is not currently in progress). that a migration is not currently in progress).
in: body in: body
required: true required: false
type: string type: string
os-vol-mig-status-attr:name_id: os-vol-mig-status-attr:name_id:
description: | description: |
The volume ID that this volume name on the back- The volume ID that this volume name on the back-
end is based on. end is based on.
in: body in: body
required: true required: false
type: string type: string
os-vol-tenant-attr:tenant_id: os-vol-tenant-attr:tenant_id:
description: | description: |

View File

@ -1142,6 +1142,12 @@ group_id:
in: body in: body
required: true required: true
type: string type: string
group_id_optional:
description: |
The ID of the group.
in: body
required: false
type: string
group_name: group_name:
description: | description: |
The group name. The group name.
@ -2050,21 +2056,21 @@ os-vol-host-attr:host:
Current back-end of the volume. Current back-end of the volume.
Host format is ``host@backend#pool``. Host format is ``host@backend#pool``.
in: body in: body
required: true required: false
type: string type: string
os-vol-mig-status-attr:migstat: os-vol-mig-status-attr:migstat:
description: | description: |
The status of this volume migration (None means The status of this volume migration (None means
that a migration is not currently in progress). that a migration is not currently in progress).
in: body in: body
required: true required: false
type: string type: string
os-vol-mig-status-attr:name_id: os-vol-mig-status-attr:name_id:
description: | description: |
The volume ID that this volume name on the back- The volume ID that this volume name on the back-
end is based on. end is based on.
in: body in: body
required: true required: false
type: string type: string
os-vol-tenant-attr:tenant_id: os-vol-tenant-attr:tenant_id:
description: | description: |
@ -2445,6 +2451,7 @@ service_uuid:
in: body in: body
required: true required: true
type: string type: string
min_version: 3.48
services: services:
description: | description: |
A list of service objects. A list of service objects.
@ -2458,6 +2465,7 @@ shared_targets:
in: body in: body
required: true required: true
type: boolean type: boolean
min_version: 3.48
size: size:
description: | description: |
The size of the volume, in gibibytes (GiB). The size of the volume, in gibibytes (GiB).

View File

@ -45,7 +45,8 @@
"name": "test-volume-attachments", "name": "test-volume-attachments",
"bootable": "false", "bootable": "false",
"created_at": "2015-11-29T03:01:44.000000", "created_at": "2015-11-29T03:01:44.000000",
"volume_type": "lvmdriver-1" "volume_type": "lvmdriver-1",
"group_id": "8fbe5733-eb03-4c88-9ef9-f32b7d03a5e4"
}, },
{ {
"migration_status": null, "migration_status": null,
@ -92,7 +93,8 @@
"name": "test-volume", "name": "test-volume",
"bootable": "true", "bootable": "true",
"created_at": "2015-11-29T02:25:18.000000", "created_at": "2015-11-29T02:25:18.000000",
"volume_type": "lvmdriver-1" "volume_type": "lvmdriver-1",
"group_id": "8fbe5733-eb03-4c88-9ef9-f32b7d03a5e4"
} }
], ],
"volumes_links": [{ "volumes_links": [{

View File

@ -101,7 +101,7 @@ Response Parameters
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- migration_status: migration_status_req - migration_status: migration_status
- attachments: attachments - attachments: attachments
- links: links_vol - links: links_vol
- availability_zone: availability_zone - availability_zone: availability_zone
@ -128,6 +128,7 @@ Response Parameters
- created_at: created_at - created_at: created_at
- volumes: volumes - volumes: volumes
- volume_type: volume_type_vol - volume_type: volume_type_vol
- group_id: group_id_optional
- volumes_links: links_vol_optional - volumes_links: links_vol_optional
- count: count - count: count
@ -242,6 +243,7 @@ Response Parameters
- bootable: bootable_response - bootable: bootable_response
- created_at: created_at - created_at: created_at
- volume_type: volume_type_vol - volume_type: volume_type_vol
- group_id: group_id_optional
Response Example Response Example
---------------- ----------------