Skip to content

Commit f7a7634

Browse files
committed
Update attachment api
1 parent 7508b9b commit f7a7634

1 file changed

Lines changed: 20 additions & 22 deletions

File tree

openapi-spec/swagger.yaml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,11 +1659,11 @@ paths:
16591659
format: int32
16601660
- name: sortKey
16611661
in: query
1662-
description: Sorting keyword, which can be sorted based on the number of initiators
1662+
description: Sorting keyword, which can be sorted based on host name
16631663
schema:
16641664
type: string
16651665
enum:
1666-
- name
1666+
- hostName
16671667
- name: sortDir
16681668
in: query
16691669
description: Asending or descending
@@ -1718,7 +1718,7 @@ paths:
17181718
'500':
17191719
$ref: '#/components/responses/HTTPStatus500'
17201720

1721-
/v1beta/{tenantId}/host/{hostId}:
1721+
/v1beta/{tenantId}/host/hosts/{hostId}:
17221722
parameters:
17231723
- $ref: '#/components/parameters/tenantId'
17241724
- $ref: '#/components/parameters/hostId'
@@ -2575,8 +2575,6 @@ components:
25752575
VolumeAttachmentUpdateSpec:
25762576
type: object
25772577
properties:
2578-
connectionInfo:
2579-
$ref: '#/components/schemas/ConnectionInfo'
25802578
mountpoint:
25812579
type: string
25822580

@@ -2831,8 +2829,8 @@ components:
28312829
osType:
28322830
type: string
28332831
enum:
2834-
- Linux
2835-
- Windows
2832+
- linux
2833+
- windows
28362834
hostName:
28372835
type: string
28382836
minLength: 1
@@ -2851,10 +2849,10 @@ components:
28512849
example: 22
28522850
accessMode:
28532851
type: string
2854-
description: The way to access host, system will access host to get more information and install agent if accessMode is 'Agent'. 'port', 'username'and 'password' are requried in 'Agent' mode.
2852+
description: The way to access host, system will access host to get more information and install agent if accessMode is 'agent'. 'port', 'username'and 'password' are requried in 'agent' mode.
28552853
enum:
2856-
- Agent
2857-
- AgentLess
2854+
- agent
2855+
- agentless
28582856
username:
28592857
maxLength: 255
28602858
minLength: 1
@@ -2890,10 +2888,10 @@ components:
28902888
protocol:
28912889
type: string
28922890
description: Initiator type FC or iSCSI
2893-
example: iSCSI
2891+
example: iscsi
28942892
enum:
2895-
- iSCSI
2896-
- FC
2893+
- iscsi
2894+
- fibre_channel
28972895
description: Host is a consumer of volume from storage.
28982896

28992897
HostUpdateSpec:
@@ -2917,10 +2915,10 @@ components:
29172915
example: 22
29182916
accessMode:
29192917
type: string
2920-
description: The way to access host, system will access host to get more information and install agent if accessMode is 'Agent'. 'port', 'username'and 'password' are requried in 'Agent' mode.
2918+
description: The way to access host, system will access host to get more information and install agent if accessMode is 'agent'. 'port', 'username'and 'password' are requried in 'agent' mode.
29212919
enum:
2922-
- Agent
2923-
- AgentLess
2920+
- agent
2921+
- agentless
29242922
username:
29252923
maxLength: 255
29262924
minLength: 1
@@ -2956,10 +2954,10 @@ components:
29562954
protocol:
29572955
type: string
29582956
description: Initiator type FC or iSCSI
2959-
example: iSCSI
2957+
example: iscsi
29602958
enum:
2961-
- iSCSI
2962-
- FC
2959+
- iscsi
2960+
- fibre_channel
29632961
description: Host is a consumer of volume from storage.
29642962
HostRespSpec:
29652963
allOf:
@@ -2996,9 +2994,9 @@ components:
29962994
example: 20000024ff5bb888
29972995
protocol:
29982996
type: string
2999-
example: iSCSI
2997+
example: iscsi
30002998
enum:
3001-
- iSCSI
3002-
- FC
2999+
- iscsi
3000+
- fibre_channel
30033001

30043002
description: Host is a consumer of volume from storage.

0 commit comments

Comments
 (0)