redundancy.ts 429 B

1234567891011121314151617
  1. import { makePutBodyRequest } from '../requests/requests'
  2. async function updateRedundancy (url: string, accessToken: string, host: string, redundancyAllowed: boolean, expectedStatus = 204) {
  3. const path = '/api/v1/server/redundancy/' + host
  4. return makePutBodyRequest({
  5. url,
  6. path,
  7. token: accessToken,
  8. fields: { redundancyAllowed },
  9. statusCodeExpected: expectedStatus
  10. })
  11. }
  12. export {
  13. updateRedundancy
  14. }