Storage Classes
Authorizations
AuthorizationstringRequired
Bearer authentication
Path parameters
uuidstring · uuidRequired
Unique identifier of the cluster
Query parameters
includeNonebooleanOptional
Include runai-none storage class to be able to create PVCs without a storage class
Responses
200
Expected response to a valid request
application/json
storageClassesstring[]OptionalExample:
["standard"]401
Unauthorized
application/json
404
The specified resource was not found
application/json
default
unexpected error
application/json
get/v1/k8s/clusters/{uuid}/storage-classes
GET /v1/k8s/clusters/{uuid}/storage-classes HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"storageClasses": [
"standard"
]
}Authorizations
AuthorizationstringRequired
Bearer authentication
Query parameters
clusterIdstring · uuidRequiredExample:
The id of the cluster
d73a738f-fab3-430a-8fa3-5241493d7128namestringOptional
filter by name
includeNonebooleanOptional
Include runai-none storage class to be able to create PVCs without a storage class
Responses
200
Executed successfully.
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
500
unexpected error
application/json
503
unexpected error
application/json
get/api/v1/storage-classes
GET /api/v1/storage-classes?clusterId=d73a738f-fab3-430a-8fa3-5241493d7128 HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"cluster_id": null,
"storage_class_name": "my storage class",
"Spec": {
"provisioner": "kubernetes.io/aws-ebs",
"allow_volume_expansion": true,
"is_default": false
}
}
]
}Last updated