Quality of service (QoS) specifications
1. get_qos()
Get the list of QOS things
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string | if specified, you get exactly one Qos Instance |
Return value: List of Qos Instance
Return value example:
istack/volumev2/v2/QoS Qos
consumer : back-end
id : 2c39c30e-78c2-4732-a7db-f07b145e3ce4
name : liability-spec
specs : {u'delay': u'1', u'availability': u'100'}
2. create_qos(**attrs)
Parameters:
| Name | Type | Description |
|---|---|---|
| name | xsd:string | The name of the QoS specification. |
| consumer (Optional) | xsd:string | The consumer type. |
Return value:
Return value example:
istack/volumev2/v2/QoS Qos
consumer : back-end
id : 2c39c30e-78c2-4732-a7db-f07b145e3ce4
name : liability-spec
specs : {u'delay': u'1', u'availability': u'100'}
3. delete_qos(qos)
delete the Qos thing
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string | must be specified |
Return value: None
4. set_qos_keys(qos, **attrs)
set the keys inside QoS
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string(inside qos param) | must be specified |
| delay(optional) | string | the time of delay |
Return value: Qos Instance
Return value example:
istack/volumev2/v2/QoS Qos
consumer : back-end
id : 2c39c30e-78c2-4732-a7db-f07b145e3ce4
name : liability-spec
specs : {u'delay': u'1', u'availability': u'100'}
5. associate_with_volume_type(qos, volume_type_id)
associate with a certain volume type
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string(inside qos param) | must be specified |
| volume_type_id | string | target volume type |
Return value: None
6. disassociate_from_volume_type(qos, volume_type_id)
disassociate from a certain volume type
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string(inside qos param) | must be specified |
| volume_type_id | string | target volume type |
Return value: None
7. disassociate_from_all(qos)
Disassociate from all
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string(inside qos param) | must be specified |
Return value: None
8. get_qos_association(qos)
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string(inside qos param) | must be specified |
Return value: Qos Instance
Return value example:
istack/volumev2/v2/QoS Qos
consumer : back-end
id : 2c39c30e-78c2-4732-a7db-f07b145e3ce4
name : liability-spec
specs : {u'delay': u'1', u'availability': u'100'}