Changed2
[{"label":"Latest (4.5.0)","version":"latest"},{"version":"4.4.0"},{"version":"4.3.1"},{"link":"https://developer.vmware.com/apis/1127/vmware-cloud-foundation","version":"4.3"},{"link":"https://developer.vmware.com/apis/1078/vmware-cloud-foundation","version":"4.2"},{"link":"https://developer.vmware.com/apis/1033/vmware-cloud-foundation","version":"4.1"},{"link":"https://developer.vmware.com/apis/1003/vmware-cloud-foundation","version":"4.0.1"},{"link":"https://developer.vmware.com/apis/939/vmware-cloud-foundation","version":"4.0"}]
vcf-for-vxrail
Get Cluster Datastores
DescriptionGet the list of all datastores associated with the cluster.
Request
URLURL
https://sfo-vcf01.rainpole.io/v1/clusters/{clusterId}/datastores
Path Parameters
Path Parameters
string
clusterId
Required
Cluster ID
Response
Response
Response BodyResponse Body
200 OK
Returns
array
of
Datastore
of type(s) application/json
{
"datastoreType": "string",
"freeCapacityGB": 0,
"id": "string",
"name": "string",
"tags": [
{
"categoryId": "string",
"categoryName": "string",
"id": "string",
"name": "string"
}
],
"totalCapacityGB": 0,
"url": "string",
"vcDatacenterName": "string",
"vcInstanceUuid": "string",
"vmCount": 0
}
string
datastoreType
Optional
Datastore Type
number as double
freeCapacityGB
Optional
Free storage capacity in GB
string
id
Optional
Id of the datastore
string
name
Optional
Name of the datastore
number as double
totalCapacityGB
Optional
Total storage capacity in GB
string
url
Optional
URL of the datastore
string
vcDatacenterName
Optional
Name of the vCenter datacenter that this datastore resides
string
vcInstanceUuid
Optional
Instance UUID of the vCenter that manages this datastore
integer as int32
vmCount
Optional
Number of VMs on the datastore
Errors
Error
400
Bad Request
Error
404
Cluster Not Found
Error
500
Internal Server Error
Code Samples
cURL Command
curl https://sfo-vcf01.rainpole.io/v1/clusters/{clusterId}/datastores
[{"label":"Latest (4.5.0)","version":"latest"},{"version":"4.4.0"},{"version":"4.3.1"},{"link":"https://developer.vmware.com/apis/1127/vmware-cloud-foundation","version":"4.3"},{"link":"https://developer.vmware.com/apis/1078/vmware-cloud-foundation","version":"4.2"},{"link":"https://developer.vmware.com/apis/1033/vmware-cloud-foundation","version":"4.1"},{"link":"https://developer.vmware.com/apis/1003/vmware-cloud-foundation","version":"4.0.1"},{"link":"https://developer.vmware.com/apis/939/vmware-cloud-foundation","version":"4.0"}]
vcf-for-vxrail
What's changed in 4.5.0?
INTRODUCED
New in this version
On This Page
Clusters Operations
post
Add Datastore To Cluster
Introduced
put
Assign Tags To Existing Cluster
Introduced
get
Assignable Tags To Cluster
Introduced
post
delete
get
get
Get Cluster Datastores
Introduced
get
get
Get Datastore Criterion
Introduced
get
Get Datastore Query Response
Introduced
get
Get Datastores Criteria
Introduced
get
Get Tags Assigned To Clusters
Introduced
get
post
Post Datastore Query
Introduced
post
delete
Remove Datastore From Cluster
Introduced
delete
Remove Tags From Existing Cluster
Introduced
patch
post
Validate vSAN Remote Datastore
Introduced