Workspaces

https://api.spectrocloud.com/v1/workspaces

summary:
Create workspace
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"clusterNamespaces": [
{
"name": "string",
"namespaceResourceAllocation": {
"clusterResourceAllocations": [
{
"clusterUid": "string",
"resourceAllocation": {
"cpuCores": "number",
"memoryMiB": "number"
}
}
],
"defaultResourceAllocation": {
"cpuCores": "number",
"memoryMiB": "number"
}
}
}
],
"clusterRbacs": [
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"bindings": [
{
"createNamespace": "boolean",
"namespace": "string",
"role": {
"kind": "string",
"name": "string"
},
"subjects": [
{
"name": "string",
"namespace": "string",
"type": "string"
}
],
"type": "string"
}
],
"isDefault": "boolean"
}
}
],
"clusterRefs": [
{
"clusterName": "string",
"clusterUid": "string"
}
]
}
}
201
Created successfully
{
"uid": "string"
}

https://api.spectrocloud.com/v1/workspaces/{uid}

summary:
Returns the specified workspace
Path parameters:
NameTypeDescriptionRequired
uidstringyes
200
OK
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"clusterNamespaces": [
{
"name": "string",
"namespaceResourceAllocation": {
"clusterResourceAllocations": [
{
"clusterUid": "string",
"resourceAllocation": {
"cpuCores": "number",
"memoryMiB": "number"
}
}
],
"defaultResourceAllocation": {
"cpuCores": "number",
"memoryMiB": "number"
}
}
}
],
"clusterRbacs": [
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"bindings": [
{
"createNamespace": "boolean",
"namespace": "string",
"role": {
"kind": "string",
"name": "string"
},
"subjects": [
{
"name": "string",
"namespace": "string",
"type": "string"
}
],
"type": "string"
}
],
"isDefault": "boolean"
}
}
],
"clusterRefs": [
{
"clusterName": "string",
"clusterUid": "string"
}
]
},
"status": {
"errors": [
{
"clusterUid": "string",
"msg": "string",
"name": "string",
"resourceType": "string"
}
]
}
}

https://api.spectrocloud.com/v1/workspaces/{uid}

summary:
Deletes the specified workspace
Path parameters:
NameTypeDescriptionRequired
uidstringyes
204
The resource was deleted successfully

https://api.spectrocloud.com/v1/workspaces/{uid}/clusterRbacs

summary:
Create cluster rbac in workspace
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"bindings": [
{
"createNamespace": "boolean",
"namespace": "string",
"role": {
"kind": "string",
"name": "string"
},
"subjects": [
{
"name": "string",
"namespace": "string",
"type": "string"
}
],
"type": "string"
}
],
"isDefault": "boolean"
}
}
201
Created successfully
{
"uid": "string"
}

https://api.spectrocloud.com/v1/workspaces/{uid}/clusterRbacs/{clusterRbacUid}

summary:
Updates the specified workspace cluster rbac
Path parameters:
NameTypeDescriptionRequired
uidstringyes
clusterRbacUidstringyes
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"bindings": [
{
"createNamespace": "boolean",
"namespace": "string",
"role": {
"kind": "string",
"name": "string"
},
"subjects": [
{
"name": "string",
"namespace": "string",
"type": "string"
}
],
"type": "string"
}
],
"isDefault": "boolean"
}
}
204
The resource was updated successfully

https://api.spectrocloud.com/v1/workspaces/{uid}/clusterRbacs/{clusterRbacUid}

summary:
Deletes the specified workspace cluster rbac
Path parameters:
NameTypeDescriptionRequired
uidstringyes
clusterRbacUidstringyes
204
The resource was deleted successfully

https://api.spectrocloud.com/v1/workspaces/{uid}/meta

summary:
Updates the specified workspace meta
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
}
204
The resource was updated successfully

https://api.spectrocloud.com/v1/workspaces/{uid}/resourceAllocations

summary:
Updates the specified workspace resource allocations
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"clusterNamespaces": [
{
"name": "string",
"namespaceResourceAllocation": {
"clusterResourceAllocations": [
{
"clusterUid": "string",
"resourceAllocation": {
"cpuCores": "number",
"memoryMiB": "number"
}
}
],
"defaultResourceAllocation": {
"cpuCores": "number",
"memoryMiB": "number"
}
}
}
],
"clusterRefs": [
{
"clusterName": "string",
"clusterUid": "string"
}
]
}
204
The resource was updated successfully