Get an approval key
curl --request GET \
--url https://api.anchorage-staging.com/v4/approvers/keys/{keyId} \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v4/approvers/keys/{keyId}"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v4/approvers/keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"status": "ACTIVE",
"organizationId": "<string>",
"apiKeyId": "<string>",
"publicKey": "<string>",
"label": "<string>",
"createdAt": "2019-01-02T12:34:56.000Z",
"approvalGroupId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"archivedAt": "2019-01-02T12:34:56.000Z"
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Get an approval key
Fetch a single approval key of the caller’s organization by id, in any status. A key of another
organization is not found. The caller’s key must hold READ_IAAS_POLICY_ENGINE or
MANAGE_IAAS_POLICY_ENGINE.
GET
/
approvers
/
keys
/
{keyId}
Get an approval key
curl --request GET \
--url https://api.anchorage-staging.com/v4/approvers/keys/{keyId} \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v4/approvers/keys/{keyId}"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v4/approvers/keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"status": "ACTIVE",
"organizationId": "<string>",
"apiKeyId": "<string>",
"publicKey": "<string>",
"label": "<string>",
"createdAt": "2019-01-02T12:34:56.000Z",
"approvalGroupId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"archivedAt": "2019-01-02T12:34:56.000Z"
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Was this page helpful?