Get Access Path List
Headers
Authorization: OAuth the-session-uuidCurl Examples
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/block-volumes/access/path?primaryStorageUuid=56963d0046b330839488e795b5109e44Parameter List
| Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
| systemTags (optional) | List | query | System tags | 4.7.11 | |
| userTags (optional) | List | query | User tags | 4.7.11 | |
| primaryStorageUuid | String | query | Primary Storage UUID | 4.7.11 |
API Response
Response Example
{
"pathInfos": [
{
"accessPathId": 1,
"accessPathIqn": "iqn",
"targetCount": 1
}
]
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| success | boolean | 4.7.11 | |
| pathInfos | List | For details, see pathInfos | 4.7.11 |
| error | ErrorCode | Error code. If not null, indicates the operation failed. This field is null when the operation succeeds. For details, see error | 4.7.11 |
pathInfos
| Name | Type | Description | Starting Version |
|---|---|---|---|
| name | String | Resource name | 4.7.11 |
| accessPathId | String | Access path ID | 4.7.11 |
| accessPathIqn | String | Access path IQN | 4.7.11 |
| targetCount | Integer | Number of associated targets | 4.7.11 |
| gatewayIps | List | Gateway IP | 4.7.11 |
error
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | Error code number, globally unique identifier for the error, such as SYS.1000, HOST.1001 | 0.6 |
| description | String | Brief description of the error | 0.6 |
| details | String | Detailed error information | 0.6 |
| elaboration | String | Reserved field, defaults to null | 0.6 |
| opaque | LinkedHashMap | Reserved field, defaults to null | 0.6 |
| cause | ErrorCode | Root cause. The source error that triggered the current error. If there is no original error, this field is null | 0.6 |
SDK Examples
Java SDK
GetAccessPathAction action = new GetAccessPathAction();
action.primaryStorageUuid = "56963d0046b330839488e795b5109e44";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetAccessPathAction.Result res = action.call();Python SDK
GetAccessPathAction action = GetAccessPathAction()
action.primaryStorageUuid = "56963d0046b330839488e795b5109e44"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetAccessPathAction.Result res = action.call()