Skip to content

Commit

Permalink
Merge pull request #10 from wdurairaj/wdurairaj-csi-spec-multiple-tar…
Browse files Browse the repository at this point in the history
…get-iqn

publish volume changes for multiple target IQN
  • Loading branch information
rgcostea authored Jan 6, 2020
2 parents b92affe + 29a3644 commit 47bfae5
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ PUT `/containers/v1/volumes/{id}/actions/publish`
}
```

#### Response
#### Response for single target IQN
```json
{
"data": {
Expand All @@ -365,11 +365,27 @@ PUT `/containers/v1/volumes/{id}/actions/publish`
],
"lun_id": 0,
"serial_number": "4349bd228896f1236c9ce9006592f26f",
"target_name": "iqn.2007-11.com.nimblestorage:group-array1-g3b5de80e54af7a6b"
"target_names": ["iqn.2007-11.com.nimblestorage:group-array1-g3b5de80e54af7a6b"]
}
}
```
* Note that `chap_user` and `chap_password` must also be part of the response if CHAP details were provided as part of the Node definition.
* `target_names` should be returned as an array of target IQNs from CSP and converted to CSV format by CSI driver.

#### Response for multiple target IQNs
```json
{
"data": {
"access_protocol": "iscsi",
"discovery_ips": [
"172.89.82.10"
],
"lun_id": 0,
"serial_number": "4349bd228896f1236c9ce9006592f26f",
"target_names": ["iqn.2000-05.com.3pardata:21210002ac01db31,iqn.2000-05.com.3pardata:21220002ac01db31"]
}
}
```

#### Request for fc access
```json
Expand Down Expand Up @@ -639,7 +655,7 @@ This endpoint is used to manage the creation and deletion of snapshot groups tha
| | serial_number | string | X | | X |
| | access_protocol | string | X | | X |
| | lun_id | number | X | | X |
| | target_name | string | only for iscsi | | X |
| | target_names | list\<string\> | only for iscsi | | X |
| | discovery_ips | list\<string\> | only for iscsi | | X |
| UnpublishOptions | | | | | |
| | host_uuid | string | X | X | |
Expand Down

0 comments on commit 47bfae5

Please sign in to comment.