Download LOA Document
client.addressing.loaDocuments.get(stringloaDocumentId, LOADocumentGetParams { account_id } params, RequestOptionsoptions?): Response
GET/accounts/{account_id}/addressing/loa_documents/{loa_document_id}/download
Download specified LOA document under the account.
Security
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Download LOA Document
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiEmail: process.env['CLOUDFLARE_EMAIL'], // This is the default and can be omitted
apiKey: process.env['CLOUDFLARE_API_KEY'], // This is the default and can be omitted
});
const loaDocument = await client.addressing.loaDocuments.get('d933b1530bc56c9953cf8ce166da8004', {
account_id: '258def64c72dae45f3e4c8516e2111f2',
});
console.log(loaDocument);
const content = await loaDocument.blob();
console.log(content);