Create a new token to reserve the split load
POST /storage/file/clone/tokens
Introduced In: 9.10
Creates a new token to reserve the split load.
Required Properties
-
node.uuid -
reserve-size
Optional Propeties
-
expiry_time.limit -
expiry_time.left
Related Ontap Commands
-
volume file clone token create
Learn More
-
[
DOC /storage/file/clone]
Creating clone tokens to reserve space for clone creation on the node
There is a limit on the amount of clone data that can undergo a split at a point of time on the node (clone split load). Clone tokens are used to reserve space from clone split load for clone creation. The POST operation is used to create clone tokens with reserve-size and expiry-time.limit in the body.<br>
# The API
/api/storage/file/clone/tokens
# The call
curl -X POST "https://<mgmt_ip>/api/storage/file/clone/tokens" -H "accept: application/hal+json" -d '{"node": {"uuid": "97255711-a1ad-11eb-92b2-0050568eb2ca"}, "reserve_size": "40M", "expiry_time": { "limit": "4200"} }'
# The response
{
"num_records": 1,
"records": [
{
"node": {
"name": "node1"
},
"uuid": "286f6ae4-c94d-11eb-adb5-005056bbeb0b",
"reserve_size": 41943040,
"_links": {
"self": {
"href": "/api/storage/file/clone/tokens/97255711-a1ad-11eb-92b2-0050568eb2ca"
}
}
}
]
}
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
return_records |
boolean |
query |
False |
The default is false. If set to true, the records are returned.
|
Request Body
| Name | Type | Description |
|---|---|---|
expiry_time |
||
node |
||
reserve_size |
integer |
Specifies the available reserve in the file clone split load for the given token. |
uuid |
string |
Token UUID. |
Response
Status: 201, Created
| Name | Type | Description |
|---|---|---|
num_records |
integer |
Number of records. |
records |
array[token] |
Example response
{
"records": [
{}
]
}
Error
Status: Default, Error
Definitions
See Definitions
href
| Name | Type | Description |
|---|---|---|
href |
string |
self_link
expiry_time
| Name | Type | Description |
|---|---|---|
left |
string |
Specifies the time remaining before the given token expires in ISO-8601 format. |
limit |
string |
Specifies when the given token expires in ISO-8601 format. |
_links
node_reference
| Name | Type | Description |
|---|---|---|
name |
string |
|
uuid |
string |
token
token
| Name | Type | Description |
|---|---|---|
expiry_time |
||
node |
||
reserve_size |
integer |
Specifies the available reserve in the file clone split load for the given token. |
uuid |
string |
Token UUID. |
collection_links
error_arguments
| Name | Type | Description |
|---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
error
| Name | Type | Description |
|---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |