List stack profiles
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/stack-profiles \
--header 'Authorization: Bearer <token>'{
"result": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"logo_url": "<string>",
"has_uploaded_logo": true,
"uploaded_logo_updated_at": "2023-11-07T05:31:56Z",
"category": "<string>",
"tags": [
"<string>"
],
"visibility": "organisation",
"latest_version": 123,
"current_version": 123,
"source_cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"publisher_name": "<string>",
"publisher_slug": "<string>",
"publisher_verified": true,
"publisher_is_ankra": true,
"publisher_has_logo": true,
"publisher_logo_updated_at": "2023-11-07T05:31:56Z",
"shared_organisation_count": 123,
"shared_with_you": true,
"is_owner": true
}
],
"total_count": 123,
"page": 123,
"page_size": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Stack Profiles
List stack profiles
Lists the stack profiles visible to the caller: the organisation’s own, public ones and those shared with it, paginated and filterable by category, tag and source. Without sort_by the featured ordering applies.
GET
/
api
/
v1
/
org
/
stack-profiles
List stack profiles
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/stack-profiles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/stack-profiles \
--header 'Authorization: Bearer <token>'{
"result": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"logo_url": "<string>",
"has_uploaded_logo": true,
"uploaded_logo_updated_at": "2023-11-07T05:31:56Z",
"category": "<string>",
"tags": [
"<string>"
],
"visibility": "organisation",
"latest_version": 123,
"current_version": 123,
"source_cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"publisher_name": "<string>",
"publisher_slug": "<string>",
"publisher_verified": true,
"publisher_is_ankra": true,
"publisher_has_logo": true,
"publisher_logo_updated_at": "2023-11-07T05:31:56Z",
"shared_organisation_count": 123,
"shared_with_you": true,
"is_owner": true
}
],
"total_count": 123,
"page": 123,
"page_size": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Page number, from 1.
Required range:
x >= 1Profiles per page.
Required range:
1 <= x <= 100Free-text search over name and description.
Repeatable category filter.
Repeatable tag filter.
Maximum array length:
50Required string length:
1 - 100Repeatable source filter.
Maximum array length:
50Available options:
organisation, public, shared Sort column.
Available options:
name, category, created_at, updated_at Sort direction; asc when only sort_by is given.
Available options:
asc, desc