curl --request POST \
--url https://api.example.com/api/v2/filestorage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"name": "storage-name",
"description": "A verbose description",
"tags": [
{
"name": "tag-name",
"value": "tag-value"
}
]
},
"spec": {
"organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
"projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
"storageClassId": "c7568e2d-f9ab-453d-9a3a-51375f78426b",
"regionId": "d891dbf0-0a01-4efc-ae3a-5d77f6d3424b",
"size": "200",
"storageType": {
"nfs": {
"rootsquash": true
}
}
}
}
'{
"metadata": {
"id": "a64f9269-36e0-4312-b8d1-52d93d569b7b",
"name": "storage-name",
"organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
"projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
"creationTime": "2024-05-31T14:11:00Z",
"createdBy": "[email protected]",
"provisioningStatus": "provisioned",
"healthStatus": "healthy",
"tags": [
{
"name": "tag-name",
"value": "tag-value"
}
]
},
"spec": {
"size": "200",
"storageType": {
"nfs": {
"rootsquash": true
}
},
"attachements": {
"networkIds": [
"903b5fba-8eb0-4016-a854-b8f716bcd9bb"
]
}
},
"status": {
"regionId": "ba39bff5-b0d8-4c60-89e5-ed1104356b4a",
"storageClassId": "99659b44-1700-400f-9c6c-cfdb4bb0445c",
"usage": {
"capacity": "100Ti",
"used": "88Ti",
"free": "12Ti"
},
"attachements": {
"networkIds": [
"903b5fba-8eb0-4016-a854-b8f716bcd9bb"
],
"provisioningStatus": "provisioned"
}
}
}Create a new storage.
curl --request POST \
--url https://api.example.com/api/v2/filestorage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"name": "storage-name",
"description": "A verbose description",
"tags": [
{
"name": "tag-name",
"value": "tag-value"
}
]
},
"spec": {
"organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
"projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
"storageClassId": "c7568e2d-f9ab-453d-9a3a-51375f78426b",
"regionId": "d891dbf0-0a01-4efc-ae3a-5d77f6d3424b",
"size": "200",
"storageType": {
"nfs": {
"rootsquash": true
}
}
}
}
'{
"metadata": {
"id": "a64f9269-36e0-4312-b8d1-52d93d569b7b",
"name": "storage-name",
"organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
"projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
"creationTime": "2024-05-31T14:11:00Z",
"createdBy": "[email protected]",
"provisioningStatus": "provisioned",
"healthStatus": "healthy",
"tags": [
{
"name": "tag-name",
"value": "tag-value"
}
]
},
"spec": {
"size": "200",
"storageType": {
"nfs": {
"rootsquash": true
}
},
"attachements": {
"networkIds": [
"903b5fba-8eb0-4016-a854-b8f716bcd9bb"
]
}
},
"status": {
"regionId": "ba39bff5-b0d8-4c60-89e5-ed1104356b4a",
"storageClassId": "99659b44-1700-400f-9c6c-cfdb4bb0445c",
"usage": {
"capacity": "100Ti",
"used": "88Ti",
"free": "12Ti"
},
"attachements": {
"networkIds": [
"903b5fba-8eb0-4016-a854-b8f716bcd9bb"
],
"provisioningStatus": "provisioned"
}
}
}Operation requires OAuth 2.0 bearer token authentication.
A request for storage.
A storage create request.
Metadata required for all API resource reads and writes.
Show child attributes
A valid Kubernetes label value, typically used for resource names that can be indexed in the database.
The resource description, this optionally augments the name with more context.
A storage's specification.
Show child attributes
The storage class ID to provision the storage into.
The organization to provision the resource in.
The region ID to provision the storage into.
The project to provision the resource in.
Size of the storage
A storage.
A storage read only group.
Metadata required by project scoped resource reads.
Show child attributes
A valid Kubernetes label value, typically used for resource names that can be indexed in the database.
The unique resource ID.
The time the resource was created.
The provisioning state of a resource.
unknown, provisioning, provisioned, deprovisioning, error The health state of a resource.
unknown, healthy, degraded, error The organization identifier the resource belongs to.
The project identifier the resource belongs to.
The resource description, this optionally augments the name with more context.
The user who created the resource.
The time a resource was updated.
The user who updated the resource.
The time the resource was deleted.
A storage's specification.
Show child attributes
Size of the storage
Read only status about storage
Show child attributes
identifier for the storage
The region an identity is provisioned in.
Describes the network attachment for storage
Show child attributes