Retrieve Clusters
You can retrieve a list of all Network File Storage clusters in your contract. The number of results displayed on each page depends on the following values:
limitlimits the number of response elements.offsetspecifies the starting point within the collection of resource results returned from the server.
Additionally, you can also use a response filter (filter.datacenterId) to list only the clusters within the specified data center.
Endpoint
Use the regional endpoints to retrieve all clusters:
https://nfs.de-txl.ionos.com/clustershttps://nfs.de-fra.ionos.com/clusters
Request
curl -X 'GET' \
'https://nfs.de-txl.ionos.com/clusters?offset=0&limit=100' \
-H 'accept: application/json'To make authenticated requests to the API, the following fields are mandatory in the request header:
Authorization
yes
string
You can use Basic Authentication or a Bearer token. For more information, see Authentication.
Content-Type
yes
string
Set this to application/json.
Response
A 200 message confirms that a list of clusters is fetched.
Last updated
Was this helpful?