Skip to content

Share Management

All operations require authentication.

7 operationsv1/storage/netapp
Agent setup

List sharesProduction

GET
/1.0/storage/netapp/{serviceName}/share

Returns the ID and name of each share of the service. Set detail to true to get all share properties.

Path parameters

serviceName
required
stringuuid

Service name

Query parameters

detail
boolean

Get detailed information about each share

mountPointName
string

If specified, returns only shares with given mount point name

Response

200NetAppShare[]successful operation
accessMode
read-only
NetAppShareAccessModeEnum

Share access mode

Valuesrorw
createdAt
read-only
stringdate-time

Share creation date

description
string

Share description

id
read-only
stringuuid

Share ID

mountPointName
string

User-defined name used to generate human readable access path for the share

name
string

Share name

protocol
required
ProtocolEnum

Share protocol

ValuesNFS
size
required
integer

Share size in GiB

snapshotID
string

Snapshot ID used to create the share

status
read-only
NetAppShareStatusEnum

Share status

Valuesavailableawaiting_replicationcreatingcreating_from_snapshotdeleteddeletingerrorerror_deletingextendingextending_errorinactivemanage_errormanage_startingmigratingmigrating_toreplication_changerevertingreverting_errorshrinkingshrinking_errorshrinking_possible_data_loss_errorunmanage_errorunmanage_startingunmanaged

Example uses serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "accessMode": "ro", "createdAt": "2024-01-01T12:00:00Z", "description": "string", "id": "00000000-0000-0000-0000-000000000000", "mountPointName": "string", "name": "string", "protocol": "NFS", "size": 0, "snapshotID": "string", "status": "available" }]

Get a shareProduction

GET
/1.0/storage/netapp/{serviceName}/share/{shareId}

Returns the share properties, its status and its access mode. To get the paths used to mount the share, list its access paths.

Path parameters

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Response

200NetAppSharesuccessful operation
accessMode
read-only
NetAppShareAccessModeEnum

Share access mode

Valuesrorw
createdAt
read-only
stringdate-time

Share creation date

description
string

Share description

id
read-only
stringuuid

Share ID

mountPointName
string

User-defined name used to generate human readable access path for the share

name
string

Share name

protocol
required
ProtocolEnum

Share protocol

ValuesNFS
size
required
integer

Share size in GiB

snapshotID
string

Snapshot ID used to create the share

status
read-only
NetAppShareStatusEnum

Share status

Valuesavailableawaiting_replicationcreatingcreating_from_snapshotdeleteddeletingerrorerror_deletingextendingextending_errorinactivemanage_errormanage_startingmigratingmigrating_toreplication_changerevertingreverting_errorshrinkingshrinking_errorshrinking_possible_data_loss_errorunmanage_errorunmanage_startingunmanaged

Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "accessMode": "ro", "createdAt": "2024-01-01T12:00:00Z", "description": "string", "id": "00000000-0000-0000-0000-000000000000", "mountPointName": "string", "name": "string", "protocol": "NFS", "size": 0, "snapshotID": "string", "status": "available"}

Create a shareProduction

POST
/1.0/storage/netapp/{serviceName}/share

Creates an NFS share, empty or from a manual snapshot, in which case the share must be at least the size of the snapshot. Creation is asynchronous: the share is returned with status creating, follow its status until available. The total size of the shares cannot exceed the service capacity.

Path parameters

serviceName
required
stringuuid

Service name

Request body (required)

accessMode
read-only
NetAppShareAccessModeEnum

Share access mode

Valuesrorw
createdAt
read-only
stringdate-time

Share creation date

description
string

Share description

id
read-only
stringuuid

Share ID

mountPointName
string

User-defined name used to generate human readable access path for the share

name
string

Share name

protocol
required
ProtocolEnum

Share protocol

ValuesNFS
size
required
integer

Share size in GiB

snapshotID
string

Snapshot ID used to create the share

status
read-only
NetAppShareStatusEnum

Share status

Valuesavailableawaiting_replicationcreatingcreating_from_snapshotdeleteddeletingerrorerror_deletingextendingextending_errorinactivemanage_errormanage_startingmigratingmigrating_toreplication_changerevertingreverting_errorshrinkingshrinking_errorshrinking_possible_data_loss_errorunmanage_errorunmanage_startingunmanaged

Response

200NetAppSharesuccessful operation
accessMode
read-only
NetAppShareAccessModeEnum

Share access mode

Valuesrorw
createdAt
read-only
stringdate-time

Share creation date

description
string

Share description

id
read-only
stringuuid

Share ID

mountPointName
string

User-defined name used to generate human readable access path for the share

name
string

Share name

protocol
required
ProtocolEnum

Share protocol

ValuesNFS
size
required
integer

Share size in GiB

snapshotID
string

Snapshot ID used to create the share

status
read-only
NetAppShareStatusEnum

Share status

Valuesavailableawaiting_replicationcreatingcreating_from_snapshotdeleteddeletingerrorerror_deletingextendingextending_errorinactivemanage_errormanage_startingmigratingmigrating_toreplication_changerevertingreverting_errorshrinkingshrinking_errorshrinking_possible_data_loss_errorunmanage_errorunmanage_startingunmanaged

Example uses serviceName = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "accessMode": "ro", "createdAt": "2024-01-01T12:00:00Z", "description": "string", "id": "00000000-0000-0000-0000-000000000000", "mountPointName": "string", "name": "string", "protocol": "NFS", "size": 0, "snapshotID": "string", "status": "available"}

Extend a shareProduction

POST
/1.0/storage/netapp/{serviceName}/share/{shareId}/extend

Increases the share to the given size in GB, which must be greater than its current size. The share must be available, and the change is asynchronous: its status moves to extending, then back to available, or to extending_error if it fails.

Path parameters

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Request body (required)

size
required
integer

Share size in GiB

Response

200—successful operation

Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId}/extend \
  -H "authorization: Bearer $OVH_TOKEN"

Shrink a shareProduction

POST
/1.0/storage/netapp/{serviceName}/share/{shareId}/shrink

Reduces the share to the given size in GB, which must be smaller than its current size. The share must be available, and the change is asynchronous: follow the share status until it is available again. If the new size is smaller than the space already used, the share keeps its current size.

Path parameters

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Request body (required)

size
required
integer

Share size in GiB

Response

200—successful operation

Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId}/shrink \
  -H "authorization: Bearer $OVH_TOKEN"

Update a shareProduction

PUT
/1.0/storage/netapp/{serviceName}/share/{shareId}

Updates the share name and description. To change the size, use Extend a share or Shrink a share.

Path parameters

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Request body (required)

description
string

New share description

name
string

New share name

Response

200NetAppSharesuccessful operation
accessMode
read-only
NetAppShareAccessModeEnum

Share access mode

Valuesrorw
createdAt
read-only
stringdate-time

Share creation date

description
string

Share description

id
read-only
stringuuid

Share ID

mountPointName
string

User-defined name used to generate human readable access path for the share

name
string

Share name

protocol
required
ProtocolEnum

Share protocol

ValuesNFS
size
required
integer

Share size in GiB

snapshotID
string

Snapshot ID used to create the share

status
read-only
NetAppShareStatusEnum

Share status

Valuesavailableawaiting_replicationcreatingcreating_from_snapshotdeleteddeletingerrorerror_deletingextendingextending_errorinactivemanage_errormanage_startingmigratingmigrating_toreplication_changerevertingreverting_errorshrinkingshrinking_errorshrinking_possible_data_loss_errorunmanage_errorunmanage_startingunmanaged

Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "accessMode": "ro", "createdAt": "2024-01-01T12:00:00Z", "description": "string", "id": "00000000-0000-0000-0000-000000000000", "mountPointName": "string", "name": "string", "protocol": "NFS", "size": 0, "snapshotID": "string", "status": "available"}

Delete a shareProduction

DELETE
/1.0/storage/netapp/{serviceName}/share/{shareId}

Permanently deletes the share and its ACLs. Deletion is asynchronous. Delete the snapshots and replications of the share first.

Path parameters

serviceName
required
stringuuid

Service name

shareId
required
stringuuid

Share ID

Response

200—successful operation

Example uses serviceName = 00000000-0000-0000-0000-000000000000, shareId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/1.0/storage/netapp/{serviceName}/share/{shareId} \
  -H "authorization: Bearer $OVH_TOKEN"