Filters

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

summary:
Returns a list of Filters
Parameters:
NameTypeDescriptionRequired
limitintegerlimit is a maximum number of responses to return for a list call. Default and maximum value of the limit is 50. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results.no
offsetintegeroffset is the next index number from which the response will start. The response offset value can be used along with continue token for the pagination.no
continuestringcontinue token to paginate the subsequent data itemsno
200
An array of filters
{
"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": {
"filterType": "string"
}
}
],
"listmeta": {
"continue": "string",
"count": "integer",
"limit": "integer",
"offset": "integer"
}
}

https://api.spectrocloud.com/v1/filters/metadata

summary:
Returns a list of Filters metadata
Parameters:
NameTypeDescriptionRequired
filterTypestringfilterType can be - [tag, meta, resource]no
200
An array of filters
{
"items": [
{
"filterType": "string",
"name": "string",
"uid": "string"
}
]
}

https://api.spectrocloud.com/v1/filters/tag

summary:
Creates a Tag filter
{
"metadata": {
"annotations": "object",
"labels": "object",
"name": "string"
},
"spec": {
"filterGroup": {
"conjunction": "string",
"filters": [
{
"key": "string",
"negation": "boolean",
"operator": "string",
"values": [
"string"
]
}
]
}
}
}
201
Created successfully
{
"uid": "string"
}

https://api.spectrocloud.com/v1/filters/tag/{uid}

summary:
Delete the specified Filter object
Path parameters:
NameTypeDescriptionRequired
uidstringyes
204
The resource was deleted successfully

https://api.spectrocloud.com/v1/filters/tag/{uid}

summary:
Returns the specified Filter object
Path parameters:
NameTypeDescriptionRequired
uidstringyes
200
A Filter object
{
"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": {
"filterGroup": {
"conjunction": "string",
"filters": [
{
"key": "string",
"negation": "boolean",
"operator": "string",
"values": [
"string"
]
}
]
}
}
}

https://api.spectrocloud.com/v1/filters/tag/{uid}

summary:
Updates a Tag filter
Path parameters:
NameTypeDescriptionRequired
uidstringyes
{
"metadata": {
"annotations": "object",
"labels": "object",
"name": "string"
},
"spec": {
"filterGroup": {
"conjunction": "string",
"filters": [
{
"key": "string",
"negation": "boolean",
"operator": "string",
"values": [
"string"
]
}
]
}
}
}
204
The resource was updated successfully