Skip to content
Start here

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: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
loaDocumentID string

Identifier for the uploaded LOA document.

maxLength32
query LOADocumentGetParams
AccountID param.Field[string]

Identifier of a Cloudflare account.

maxLength32
ReturnsExpand Collapse
type LOADocumentGetResponse interface{…}

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)
}
Returns Examples