Download LOA Document
client.Addressing.LOADocuments.Get(ctx, loaDocumentID, query) (*Response, error)
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
package main
import (
"context"
"fmt"
"github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/cloudflare-go/addressing"
"github.com/cloudflare/cloudflare-go/option"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
option.WithAPIEmail("user@example.com"),
)
loaDocument, err := client.Addressing.LOADocuments.Get(
context.TODO(),
"d933b1530bc56c9953cf8ce166da8004",
addressing.LOADocumentGetParams{
AccountID: cloudflare.F("258def64c72dae45f3e4c8516e2111f2"),
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", loaDocument)
}