appwrite/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md
2024-02-25 00:34:42 +13:00

565 B

import { Client, Migrations } from "@appwrite.io/console";

const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID

const migrations = new Migrations(client);

const result = await migrations.getNHostReport( [], // resources '', // subdomain '', // region '<ADMIN_SECRET>', // adminSecret '', // database '', // username '', // password null // port (optional) );

console.log(response);