Get Bindable Resource Custom Attributes
Headers
Authorization: OAuth the-session-uuidCurl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/resource-configurations/bindable?category=hostcurl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/resource-configurations/bindable/host?category=hostParameter List
| Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
| category (Optional) | String | query | Configuration category | 3.4.0 | |
| systemTags (Optional) | List | query | 3.4.0 | ||
| userTags (Optional) | List | query | 3.4.0 |
API Response
Response Example
{
"bindableConfigs": [
{
"name": "cpu.overProvisioning.ratio",
"category": "host",
"bindResourceTypes": [
"HostVO",
"ClusterVO",
"ZoneVO"
]
}
]
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| error | ErrorCode | The error code. If not null, the operation failed. This field is null when the operation succeeds. See error for details | 3.4.0 |
| bindableConfigs | List | See bindableConfigs for details | 3.4.0 |
error
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.1001 | 3.4.0 |
| description | String | A brief description of the error | 3.4.0 |
| details | String | The detailed error information | 3.4.0 |
| elaboration | String | Reserved field. Default is null | 3.4.0 |
| opaque | LinkedHashMap | Reserved field. Default is null | 3.4.0 |
| cause | ErrorCode | The root error that caused the current error. If no root error exists, this field is null | 3.4.0 |
bindableConfigs
| Name | Type | Description | Starting Version |
|---|---|---|---|
| name | String | Configuration name | 3.4.0 |
| category | String | Configuration category | 3.4.0 |
| description | String | The detailed description of the configuration | 3.4.0 |
| bindResourceTypes | List | The resource types that can be bound with the configuration | 3.4.0 |
SDK Examples
Java SDK
GetResourceBindableConfigAction action = new GetResourceBindableConfigAction();
action.category = "host";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetResourceBindableConfigAction.Result res = action.call();Python SDK
GetResourceBindableConfigAction action = GetResourceBindableConfigAction()
action.category = "host"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetResourceBindableConfigAction.Result res = action.call()