List pipeline authority requests
import requests
url = "https://platform.ankra.app/api/v1/org/pipelines/authority-requests"
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/pipelines/authority-requests', 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/pipelines/authority-requests \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"protected_hash": "<string>",
"approved_hash": "<string>",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"head_sha": "<string>",
"ref": "<string>",
"pull_request_number": 123,
"requested_by": "<string>",
"status": "pending",
"resolved_by": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_via": "portal",
"reason": "<string>",
"diff": {
"sections": [
{
"section": "<string>",
"path": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"yaml": "<string>"
},
"last_refusal": {
"sender": "<string>",
"reason": "bot",
"message": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}Pipelines
List pipeline authority requests
The approvals inbox: every request a pipeline run raised for protected settings (services, network, caches, resources, timeouts, permissions, secrets) no administrator has approved, newest first by keyset. Filter by status, repository or application. Requires pipelines.read. Approve one through POST /api/v1/org/pipelines/definitions//approve; dismiss one through its dismiss route.
GET
/
api
/
v1
/
org
/
pipelines
/
authority-requests
List pipeline authority requests
import requests
url = "https://platform.ankra.app/api/v1/org/pipelines/authority-requests"
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/pipelines/authority-requests', 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/pipelines/authority-requests \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"definition_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"protected_hash": "<string>",
"approved_hash": "<string>",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"head_sha": "<string>",
"ref": "<string>",
"pull_request_number": 123,
"requested_by": "<string>",
"status": "pending",
"resolved_by": "<string>",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_via": "portal",
"reason": "<string>",
"diff": {
"sections": [
{
"section": "<string>",
"path": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"yaml": "<string>"
},
"last_refusal": {
"sender": "<string>",
"reason": "bot",
"message": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Available options:
pending, approved, dismissed, superseded The next_cursor of the previous page.
Required range:
1 <= x <= 100