API Keys

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

summary:
Retrieves a list of api keys
200
An array of api keys
{
"items": [
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"expiry": "date-time",
"key": "string",
"user": {
"firstName": "string",
"lastName": "string",
"uid": "string"
}
},
"status": {
"isActive": "boolean"
}
}
]
}

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

summary:
Create the api key
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"expiry": "date-time",
"userUid": "string"
}
}
201
Created successfully
{
"uid": "string"
}

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

summary:
Returns the specified api keys
Path parameters:
NameTypeDescriptionRequired
uidstringyes
200
OK
{
"metadata": {
"annotations": "object",
"creationTimestamp": "date-time",
"deletionTimestamp": "date-time",
"labels": "object",
"lastModifiedTimestamp": "date-time",
"name": "string",
"namespace": "string",
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"expiry": "date-time",
"key": "string",
"user": {
"firstName": "string",
"lastName": "string",
"uid": "string"
}
},
"status": {
"isActive": "boolean"
}
}

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

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

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

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

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

summary:
Activate or deactive the api key
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"isActive": "boolean"
}
204
The resource was updated successfully

https://api.spectrocloud.com/v1/apiKeys/{uid}/state

summary:
Revoke or re-activate the api key access
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"isActive": "boolean"
}
204
The resource was updated successfully