Resource profile by ID.
OK
"my-resource-profile"
"1Mi"
"2Mi"
"3Mi"
"4Mi"
"5Mi"
"6Mi"
const response = await fetch('https://cloud-api.calyptia.com/v1/resource_profiles/{resourceProfileID}', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "name": "my-resource-profile", "storageSyncFull": false, "storageBacklogMemLimit": "1Mi", "storageVolumeSize": "2Mi", "storageMaxChunksPause": false, "cpuLimit": "3Mi", "cpuRequest": "4Mi", "memoryLimit": "5Mi", "memoryRequest": "6Mi", "createdAt": "2024-11-21T11:24:30.463Z", "updatedAt": "2024-11-21T11:24:30.463Z" }
Delete resource profile by its ID.
No Content
const response = await fetch('https://cloud-api.calyptia.com/v1/resource_profiles/{resourceProfileID}', { method: 'DELETE', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
Update resource profile by its ID.
const response = await fetch('https://cloud-api.calyptia.com/v1/resource_profiles/{resourceProfileID}', { method: 'PATCH', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();