Merge "Api-ref: Fix incorrect api params description"

This commit is contained in:
Jenkins 2017-10-09 23:13:04 +00:00 committed by Gerrit Code Review
commit c949ac65a8
2 changed files with 32 additions and 25 deletions

View File

@ -624,7 +624,7 @@ Response Example
Add security group for specified container
==========================================
.. rest_method:: POST /v1/containers/{container_ident}/add_securtiy_group?name=security_group
.. rest_method:: POST /v1/containers/{container_ident}/add_securtiy_group?name={security_group}
Add security group for specified container.
@ -648,7 +648,7 @@ Request
.. rest_parameters:: parameters.yaml
- container_ident: container_ident
- security_group: security_groups
- security_group: security_group_query
Response
--------

View File

@ -11,6 +11,12 @@ container_ident:
in: path
required: true
type: string
host_ident:
description: |
The UUID or name of host in Zun.
in: path
required: true
type: string
force:
description: |
Specify to delete container forcefully.
@ -29,6 +35,30 @@ network:
in: query
required: true
type: string
new_name:
description: |
The new name for the container.
in: query
required: true
type: string
repository:
description: |
The reposiroty of the container image.
in: query
required: true
type: string
security_group_query:
description: |
Security groups to be added to the container.
in: query
required: true
type: string
tag:
description: |
The tag of the container image.
in: query
required: true
type: string
timeout:
description: |
Seconds to wait before operating on container.
@ -125,12 +155,6 @@ host:
in: body
required: true
type: string
host_ident:
description: |
The UUID or name of host in Zun.
in: body
required: true
type: string
host_list:
description: |
The host information list, including hostname, uuid, links, labels,
@ -222,12 +246,6 @@ nets:
requested as strings for the networks value, not in a list.
in: body
type: object
new_name:
description: |
The new name for the container.
in: body
required: true
type: string
ports:
description: |
The ports exposed on the container.
@ -240,11 +258,6 @@ report_count:
in: body
required: true
type: integer
repository:
description: |
The reposiroty of the container image.
in: body
type: string
restart_policy:
description: |
Restart policy to apply when a container exits. Allowed values are
@ -306,12 +319,6 @@ status_reason:
in: body
required: true
type: string
tag:
description: |
The tag of the container image.
in: body
required: true
type: string
task_state:
description: |
The current task of the container.