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:
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)
Parameters
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)