Get ApiMetric Config
1 min
GET
//internal/v1/api-metrics/config
Header Parameters
- x-upstart-tenantstringrequiredDescription
Responses
200
- object
401
- ErrorResponse
- namestringrequired
- codestringrequired
- detailstringrequired
- reasonstring
500
- ErrorResponse
- namestringrequired
- codestringrequired
- detailstringrequired
- reasonstring
curl
curl --request GET \
--url //internal/v1/api-metrics/config \
--header 'accept: application/json' \
--header 'x-upstart-tenant: string'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-upstart-tenant", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("//internal/v1/api-metrics/config", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));python
import requests
import json
url = "//internal/v1/api-metrics/config"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-upstart-tenant': 'string'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Success – configuration object returned.
{}401
// The provided credentials were not valid for this endpoint. It may be that they are expired or that the user's roles are insufficient.
{
"name": "",
"code": "",
"detail": "",
"reason": ""
}500
// Internal server error.
{
"name": "",
"code": "",
"detail": "",
"reason": ""
}