const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/policies:reorder';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"orders":[{"order":1,"id":"id"}],"sourceType":"SOURCE_TYPE_UNSPECIFIED"}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"orders": [
{
"order": 1,
"id": "id"
}
]
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/policies:reorder';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"orders":[{"order":1,"id":"id"}],"sourceType":"SOURCE_TYPE_UNSPECIFIED"}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"orders": [
{
"order": 1,
"id": "id"
}
]
}
API key authentication
This data structue is used to reorder policies.
A successful response.
This data structure is obtained when reordering policies.
Was this page helpful?