(sandbox) key-rotation command

This commit is contained in:
ms 2021-07-27 07:55:45 +02:00
parent 375b3af7e8
commit d591933890
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -699,6 +699,14 @@ export class LibeufinCli {
}
export namespace LibeufinSandboxApi {
export async function rotateKeys(
libeufinSandboxService: LibeufinSandboxServiceInterface,
hostID: string,
) {
const baseUrl = libeufinSandboxService.baseUrl;
let url = new URL(`admin/ebics/hosts/${hostID}/rotate-keys`, baseUrl);
await axios.post(url.href);
}
export async function createEbicsHost(
libeufinSandboxService: LibeufinSandboxServiceInterface,
hostID: string,