diff --git a/components/examples/clusterDatastoreCreateNFS.json b/components/examples/clusterDatastoreCreateNFS.json new file mode 100644 index 0000000..0279198 --- /dev/null +++ b/components/examples/clusterDatastoreCreateNFS.json @@ -0,0 +1,25 @@ +{ + "datastore": { + "name": "NFS", + "datastoreType": { + "id": 3 + }, + "active": true, + "config": { + "sourceHostname": "10.32.150.167", + "sourceDirPath": "/var/nfs/mvm" + }, + "defaultStore": true, + "resourcePermissions": { + "allSites": true + }, + "tenants": [ + { + "id": 1, + "defaultStore": false, + "defaultTarget": false + } + ], + "visibility": "private" + } +} \ No newline at end of file diff --git a/components/schemas/clusterDatastoreConfigGFS2.yaml b/components/schemas/clusterDatastoreConfigGFS2.yaml new file mode 100644 index 0000000..6e9b79a --- /dev/null +++ b/components/schemas/clusterDatastoreConfigGFS2.yaml @@ -0,0 +1,5 @@ +type: object +properties: + blockDevice: + type: string + description: Block device for target GFS2. \ No newline at end of file diff --git a/components/schemas/clusterDatastoreConfigNFS.yaml b/components/schemas/clusterDatastoreConfigNFS.yaml new file mode 100644 index 0000000..b8771f2 --- /dev/null +++ b/components/schemas/clusterDatastoreConfigNFS.yaml @@ -0,0 +1,8 @@ +type: object +properties: + sourceHostname: + type: string + description: Host name or IP address for target NFS instance. + sourceDirPath: + type: string + description: Path to the target NFS export directory. \ No newline at end of file diff --git a/components/schemas/clusterDatastoreCreate.yaml b/components/schemas/clusterDatastoreCreate.yaml index 0a6547c..4726fe2 100644 --- a/components/schemas/clusterDatastoreCreate.yaml +++ b/components/schemas/clusterDatastoreCreate.yaml @@ -20,6 +20,10 @@ properties: type: boolean defaultStore: type: boolean + config: + anyOf: + - $ref: clusterDatastoreConfigNFS.yaml + - $ref: clusterDatastoreConfigGFS2.yaml tenants: type: array items: diff --git a/paths/api@clusters@id@datastores.yaml b/paths/api@clusters@id@datastores.yaml index 9962674..d9dfa90 100644 --- a/paths/api@clusters@id@datastores.yaml +++ b/paths/api@clusters@id@datastores.yaml @@ -54,9 +54,9 @@ post: cluster: $ref: ../components/schemas/clusterDatastoreCreate.yaml examples: - Cluster Datastore Request: + NFS Datastore Request: value: - $ref: ../components/examples/clusterDatastore.json + $ref: ../components/examples/clusterDatastoreCreateNFS.json responses: '200': description: Successful Request diff --git a/paths/api@library@layouts@id@permissions.yaml b/paths/api@library@layouts@id@permissions.yaml index e389eee..ca0085d 100644 --- a/paths/api@library@layouts@id@permissions.yaml +++ b/paths/api@library@layouts@id@permissions.yaml @@ -1,4 +1,4 @@ -put: +post: summary: Update Layout Permissions description: Use this command to update permissions for an existing layout. operationId: updateLayoutPermissions