Retrieves a list of packs based on filter
POSThttps://api.spectrocloud.com/v1/packs/search
Retrieves a list of packs based on filter
Request
Query Parameters
limit int64
Default value: 50
limit 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.
offset int64
offset 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.
continue string
continue token to paginate the subsequent data items
Header Parameters
ProjectUid string
Scope the request to the specified project uid
- application/json
Body
filter
sort
undefined[]
Responses
- 200
An array of pack summary items
- application/json
- Schema
- Example (from schema)
Schema
items
object[]
required
listmeta
object
{
"items": [
{
"kind": "string",
"metadata": {
"annotations": {},
"creationTimestamp": "2024-07-05T19:05:34.022Z",
"deletionTimestamp": "2024-07-05T19:05:34.022Z",
"labels": {},
"lastModifiedTimestamp": "2024-07-05T19:05:34.022Z",
"name": "string",
"uid": "string"
},
"spec": {
"addonSubType": "string",
"addonType": "string",
"cloudTypes": [
"string"
],
"displayName": "string",
"group": "string",
"layer": "kernel",
"name": "string",
"registries": [
{
"annotations": {},
"latestPackUid": "string",
"latestVersion": "string",
"logoUrl": "string",
"name": "string",
"scope": "string",
"uid": "string"
}
],
"type": "spectro"
}
}
],
"listmeta": {
"continue": "string",
"count": 0,
"limit": 0,
"offset": 0
}
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X POST 'https://api.spectrocloud.com/v1/packs/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>' \
--data-raw '{
"filter": {
"addOnSubType": [
"string"
],
"addOnType": [
"string"
],
"displayName": {
"beginsWith": "string",
"contains": "string",
"eq": "string",
"ignoreCase": true,
"ne": "string"
},
"environment": [
"string"
],
"isFips": true,
"layer": [
"kernel"
],
"name": {
"beginsWith": "string",
"contains": "string",
"eq": "string",
"ignoreCase": true,
"ne": "string"
},
"registryUid": [
"string"
],
"source": [
"string"
],
"state": [
"string"
],
"type": [
"spectro"
]
},
"sort": [
{
"field": "name",
"order": "asc"
}
]
}'