Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Network File Storage APIs allow contract owners, administrators, and authenticated users with the required permissions to create clusters and shares within the storage system via the API.
Use the regional endpoints to interact with Network File Storage:
Berlin, Germany: https://nfs.de-txl.ionos.com
Frankfurt, Germany: https://nfs.de-fra.ionos.com
The API uses the following two authentication methods:
Basic Authentication: Ensure that the string containing your username
and password
is base64-encoded and separated by a colon: username@domain.tld:password
.
Token Authentication: Provide a header value as Bearer
followed by your token
.
Important: From March 15, 2024, the Basic Authentication option will only be accessible if the 2-factor Authentication (2FA) is disabled for your account.
You can retrieve the information about a specific cluster using its clusterId
.
Use the regional endpoints to retrieve a specific cluster:
https://nfs.de-txl.ionos.com/clusters/{clusterId}
https://nfs.de-fra.ionos.com/clusters/{clusterId}
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Header Parameters | Required | Type | Description |
---|
Below is the list of mandatory path parameter:
Body Parameters | Type | Description | Example |
---|
A 200 message confirms that the specific cluster information is successfully retrieved.
Learn how to set user privileges for Network File Storage via the API.
Learn how to create a cluster for Network File Storage.
Learn how to retrieve a specific cluster.
Learn how to retrieve all clusters of a Network File Storage.
Learn how to update a cluster via the API.
Learn how to delete a cluster via the API.
Learn how to create a share within a cluster.
Learn how to retrieve a specific share.
Learn how to retrieve all shares of a cluster.
Learn how to update a specific share via the API.
Learn how to delete a share from within the cluster via the API.
Prerequisite: You need administrative privileges to create and assign user privileges using the Cloud API.
To set user privileges via the Cloud API to access and manage shares and Network File Storage clusters, follow these steps:
Authenticate to the Cloud API using your API credentials.
Create a user using the POST /cloudapi/v6/um/users
endpoint.
Set the following required parameters for the user: user's name
, email address
, and password
.
Create a group using the POST /cloudapi/v6/um/groups
endpoint.
Set accessAndManageNFS
privilege to true
.
Assign the user to the created group using POST /cloudapi/v6/um/groups/{groupId}/users
endpoint.
Note: Remember to provide the user ID in the request body: id: <userID>
Result: The user has the privilege to access and manage Network File Storage.
| yes | string |
| yes | string | Set this to |
| string | The ID (UUID) of the Cluster. |
|
To create a share within the Network File Storage's cluster, via the API, perform a POST request with the clusterId
. The request automatically creates a share within the respective cluster.
Prerequisites:
Only contract administrators, owners, and users with accessAndManageNFS privileges can create and manage clusters.
Use the regional endpoints to create a share:
https://nfs.de-txl.ionos.com/clusters/{clusterId}/shares
https://nfs.de-fra.ionos.com/clusters/{clusterId}/shares
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Below is the list of mandatory path parameter:
A 201 message confirms that the share creation is successful. Your values will differ from those in the sample code. It may contain different IDs, timestamps etc.
To create a Network File Storage cluster via the API, perform a POST request with the name and description of the cluster.
Prerequisites:
Only contract administrators, owners, and users with accessAndManageNFS privileges can create and manage clusters.
Use the regional endpoints to create a cluster:
https://nfs.de-txl.ionos.com/clusters
https://nfs.de-fra.ionos.com/clusters
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Below is the list of mandatory body parameters:
A 201 message confirms that the cluster creation is successful.
You can append a cluster, or update the content of an existing cluster within your Network File Storage using the PUT
API request.
Use the regional endpoints to update a cluster:
https://nfs.de-txl.ionos.com/clusters/{clusterId}
https://nfs.de-fra.ionos.com/clusters/{clusterId}
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
A 200 message confirms that the specified cluster is successfully updated.
You can retrieve the information about a specific share using its clusterId
and shareId
.
Use the regional endpoints to retrieve a specific share:
https://nfs.de-txl.ionos.com/clusters/{clusterId}/shares/{shareId}
https://nfs.de-fra.ionos.com/clusters/{clusterId}/shares/{shareId}
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Header Parameters | Required | Type | Description |
---|---|---|---|
Below is the list of mandatory path parameters:
Body Parameters | Type | Description | Example |
---|---|---|---|
A 200 message confirms that the information of the specific share from within the cluster has been successfully retrieved.
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:
limit
limits the number of response elements.
offset
specifies 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.
Use the regional endpoints to retrieve all clusters:
https://nfs.de-txl.ionos.com/clusters
https://nfs.de-fra.ionos.com/clusters
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Header Parameters | Required | Type | Description |
---|---|---|---|
A 200 message confirms that a list of clusters is fetched.
You can delete a specific cluster using its clusterId
.
Prerequisite: Only contract administrators, owners, and users with accessAndManageNFS privilege can delete clusters via the API.
Use the regional endpoints to delete a cluster:
https://nfs.de-txl.ionos.com/clusters/{clusterId}
https://nfs.de-fra.ionos.com/clusters/{clusterId}
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Header Parameters | Required | Type | Description |
---|---|---|---|
Below is the list of mandatory path parameter:
Body Parameters | Type | Description | Example |
---|---|---|---|
A 202 message confirms that the specified cluster has been successfully deleted.
You can retrieve the list of all shares from within a cluster using its clusterId
. The number of results displayed on each page depends on the following values:
limit
limits the number of response elements.
offset
specifies the starting point within the collection of resource results returned from the server.
Use the regional endpoints to retrieve all shares:
https://nfs.de-txl.ionos.com/clusters/{clusterId}/shares
https://nfs.de-fra.ionos.com/clusters/{clusterId}/shares
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Header Parameters | Required | Type | Description |
---|
Below is the list of mandatory path parameter:
Body Parameters | Type | Description | Example |
---|
A 200 message confirms that all shares from within the specific cluster are successfully retrieved.
You can append or update the content of an existing share within your Network File Storage using the PUT
API request.
Use the regional endpoints to update a share:
https://nfs.de-txl.ionos.com/clusters/{clusterId}/shares/{shareId}
https://nfs.de-fra.ionos.com/clusters/{clusterId}/shares/{shareId}
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
A 200 message confirms that the corresponding share within the specified cluster has been successfully updated.
You can use Basic Authentication
or a Bearer token
. For more information, see .
Header Parameters | Required | Type | Description |
---|---|---|---|
Body Parameters | Type | Description | Example |
---|---|---|---|
Header Parameters | Required | Type | Description |
---|---|---|---|
Body Parameters | Type | Description | Example |
---|---|---|---|
Header Parameters | Required | Type | Description |
---|---|---|---|
Header Parameters | Required | Type | Description |
---|
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
.
clusterId
string
The ID (UUID) of the Cluster.
e69b22a5-8fee-56b1-b6fb-4a07e4205ead
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
.
name
string
The human-readable name of your cluster.
NFS cluster
datacenterId
string
The ID of the data center where the NFS cluster is located in.
e69b22a5-8fee-56b1-b6fb-4a07e4205ead
lan
string
The LAN to which the NFS cluster should be connected.
1
ipAddress
string
The IP address and prefix of the NFS cluster. The IP address can be either IPv4 or IPv6. The IP address must include the CIDR notation.
10.254.64.1/24
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
.
clusterId
string
The ID (UUID) of the cluster.
e69b22a5-8fee-56b1-b6fb-4a07e4205ead
shareId
string
The ID (UUID) of the share.
7b1ef56d-dfc6-51fe-aff0-7af2d6747868
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
.
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
.
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
.
clusterId
string
The ID (UUID) of the Cluster.
e69b22a5-8fee-56b1-b6fb-4a07e4205ead
| yes | string |
| yes | string | Set this to |
| string | The ID (UUID) of the Cluster. |
|
| yes | string |
| yes | string | Set this to |
You can delete a specific share from within a cluster using its clusterId
and shareId
.
Prerequisite: Only contract administrators, owners, and users with accessAndManageNFS privilege can delete shares via the API.
Use the regional endpoints to delete a specific share:
https://nfs.de-txl.ionos.com/clusters/{clusterId}/shares/{shareId}
.
https://nfs.de-fra.ionos.com/clusters/{clusterId}/shares/{shareId}
Note: The following request contains sample values. Remember to replace them with the relevant information.
To make authenticated requests to the API, the following fields are mandatory in the request header:
Header Parameters | Required | Type | Description |
---|---|---|---|
Below is the list of mandatory path parameters:
Body Parameters | Type | Description | Example |
---|---|---|---|
A 202 message confirms that the specified share has been successfully deleted.
You can use Basic Authentication
or a Bearer token
. For more information, see .
You can use Basic Authentication
or a Bearer token
. For more information, see .
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
.
clusterId
string
The ID (UUID) of the cluster.
e69b22a5-8fee-56b1-b6fb-4a07e4205ead
shareId
string
The ID (UUID) of the share.
7b1ef56d-dfc6-51fe-aff0-7af2d6747868