Update api docs to add missing parameters
* Adds metadata to server create req body * Adds extra_specs to flavor create req body * Adds disabled to flavor create/list/get/patch req/resp body Change-Id: I484461303e6b49e59f4f85ed73ac57e8557772dd
This commit is contained in:
parent
9f0b8ba520
commit
260361c5f4
|
@ -38,6 +38,7 @@ Response
|
||||||
- created_at: created_at
|
- created_at: created_at
|
||||||
- updated_at: updated_at
|
- updated_at: updated_at
|
||||||
- is_public: flavor_is_public
|
- is_public: flavor_is_public
|
||||||
|
- disabled: flavor_disabled
|
||||||
- extra_specs: flavor_extra_specs
|
- extra_specs: flavor_extra_specs
|
||||||
|
|
||||||
**Example List flavors**
|
**Example List flavors**
|
||||||
|
@ -67,7 +68,9 @@ Request
|
||||||
|
|
||||||
- name: flavor_name
|
- name: flavor_name
|
||||||
- description: flavor_description
|
- description: flavor_description
|
||||||
|
- extra_specs: flavor_extra_specs
|
||||||
- is_public: flavor_is_public_not_required
|
- is_public: flavor_is_public_not_required
|
||||||
|
- disabled: flavor_disabled
|
||||||
|
|
||||||
**Example Create Flavor**
|
**Example Create Flavor**
|
||||||
|
|
||||||
|
@ -86,6 +89,7 @@ Response
|
||||||
- created_at: created_at
|
- created_at: created_at
|
||||||
- updated_at: updated_at
|
- updated_at: updated_at
|
||||||
- is_public: flavor_is_public
|
- is_public: flavor_is_public
|
||||||
|
- disabled: flavor_disabled
|
||||||
- extra_specs: flavor_extra_specs
|
- extra_specs: flavor_extra_specs
|
||||||
|
|
||||||
**Example Create flavor**
|
**Example Create flavor**
|
||||||
|
@ -135,6 +139,7 @@ Response
|
||||||
- created_at: created_at
|
- created_at: created_at
|
||||||
- updated_at: updated_at
|
- updated_at: updated_at
|
||||||
- is_public: flavor_is_public
|
- is_public: flavor_is_public
|
||||||
|
- disabled: flavor_disabled
|
||||||
- extra_specs: flavor_extra_specs
|
- extra_specs: flavor_extra_specs
|
||||||
|
|
||||||
**Example Update flavor**
|
**Example Update flavor**
|
||||||
|
@ -172,6 +177,7 @@ Response
|
||||||
- created_at: created_at
|
- created_at: created_at
|
||||||
- updated_at: updated_at
|
- updated_at: updated_at
|
||||||
- is_public: flavor_is_public
|
- is_public: flavor_is_public
|
||||||
|
- disabled: flavor_disabled
|
||||||
- extra_specs: flavor_extra_specs
|
- extra_specs: flavor_extra_specs
|
||||||
|
|
||||||
**Example Show Flavor Details**
|
**Example Show Flavor Details**
|
||||||
|
|
|
@ -148,6 +148,12 @@ flavor_description:
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
flavor_disabled:
|
||||||
|
description: |
|
||||||
|
Whether or not the flavor has been administratively disabled.
|
||||||
|
in: body
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
flavor_extra_specs:
|
flavor_extra_specs:
|
||||||
description: |
|
description: |
|
||||||
Extra spec key and value pairs associate with the flavor.
|
Extra spec key and value pairs associate with the flavor.
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "test_flavor",
|
"name": "test_flavor",
|
||||||
"description": "this is a test flavor",
|
"description": "this is a test flavor",
|
||||||
"is_public": true
|
"extra_specs": {
|
||||||
|
"capabilities": "boot_mode:bios"
|
||||||
|
},
|
||||||
|
"is_public": true,
|
||||||
|
"disabled": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,5 +15,6 @@
|
||||||
"updated_at": null,
|
"updated_at": null,
|
||||||
"extra_specs": {},
|
"extra_specs": {},
|
||||||
"is_public": true,
|
"is_public": true,
|
||||||
|
"disabled": true,
|
||||||
"name": "test_flavor"
|
"name": "test_flavor"
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,5 +15,6 @@
|
||||||
"updated_at": null,
|
"updated_at": null,
|
||||||
"extra_specs": {},
|
"extra_specs": {},
|
||||||
"is_public": true,
|
"is_public": true,
|
||||||
|
"disabled": false,
|
||||||
"name": "test_flavor"
|
"name": "test_flavor"
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,5 +15,6 @@
|
||||||
"updated_at": null,
|
"updated_at": null,
|
||||||
"extra_specs": {},
|
"extra_specs": {},
|
||||||
"is_public": false,
|
"is_public": false,
|
||||||
|
"disabled": false,
|
||||||
"name": "updated_flavor"
|
"name": "updated_flavor"
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
"key": "value"
|
"key": "value"
|
||||||
},
|
},
|
||||||
"is_public": true,
|
"is_public": true,
|
||||||
|
"disabled": false,
|
||||||
"name": "new_test1"
|
"name": "new_test1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
"updated_at": null,
|
"updated_at": null,
|
||||||
"extra_specs": {},
|
"extra_specs": {},
|
||||||
"is_public": true,
|
"is_public": true,
|
||||||
|
"disabled": false,
|
||||||
"name": "new_test2"
|
"name": "new_test2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -39,6 +39,7 @@ Request
|
||||||
- networks.net_id: network_uuid
|
- networks.net_id: network_uuid
|
||||||
- networks.port_type: network_port_type
|
- networks.port_type: network_port_type
|
||||||
- networks.port_id: port_uuid
|
- networks.port_id: port_uuid
|
||||||
|
- metadata: metadata
|
||||||
- user_data: user_data
|
- user_data: user_data
|
||||||
- personality: personality
|
- personality: personality
|
||||||
- key_name: key_name
|
- key_name: key_name
|
||||||
|
|
Loading…
Reference in New Issue