Skip to content
Start here

Download LOA Document

addressing.loa_documents.get(strloa_document_id, LOADocumentGetParams**kwargs) -> BinaryResponseContent
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:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
Magic Transit ReadMagic Transit Write
ParametersExpand Collapse
account_id: str

Identifier of a Cloudflare account.

maxLength32
loa_document_id: str

Identifier for the uploaded LOA document.

maxLength32
ReturnsExpand Collapse
BinaryResponseContent

Download LOA Document

import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_email=os.environ.get("CLOUDFLARE_EMAIL"),  # This is the default and can be omitted
    api_key=os.environ.get("CLOUDFLARE_API_KEY"),  # This is the default and can be omitted
)
loa_document = client.addressing.loa_documents.get(
    loa_document_id="d933b1530bc56c9953cf8ce166da8004",
    account_id="258def64c72dae45f3e4c8516e2111f2",
)
print(loa_document)
content = loa_document.read()
print(content)
Returns Examples