---
title: Addressing
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Addressing

#### AddressingRegional Hostnames

##### [List Regional Hostnames](https://developers.cloudflare.com/api/go/resources/addressing/subresources/regional_hostnames/methods/list)

client.Addressing.RegionalHostnames.List(ctx, query) (\*SinglePage\[[RegionalHostnameListResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.regional_hostnames%20%3E%20(model)%20RegionalHostnameListResponse%20%3E%20(schema)>)], error)

GET/zones/{zone\_id}/addressing/regional\_hostnames

##### [Fetch Regional Hostname](https://developers.cloudflare.com/api/go/resources/addressing/subresources/regional_hostnames/methods/get)

client.Addressing.RegionalHostnames.Get(ctx, hostname, query) (\*[RegionalHostnameGetResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.regional_hostnames%20%3E%20(model)%20RegionalHostnameGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/addressing/regional\_hostnames/{hostname}

##### [Create Regional Hostname](https://developers.cloudflare.com/api/go/resources/addressing/subresources/regional_hostnames/methods/create)

client.Addressing.RegionalHostnames.New(ctx, params) (\*[RegionalHostnameNewResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.regional_hostnames%20%3E%20(model)%20RegionalHostnameNewResponse%20%3E%20(schema)>), error)

POST/zones/{zone\_id}/addressing/regional\_hostnames

##### [Update Regional Hostname](https://developers.cloudflare.com/api/go/resources/addressing/subresources/regional_hostnames/methods/edit)

client.Addressing.RegionalHostnames.Edit(ctx, hostname, params) (\*[RegionalHostnameEditResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.regional_hostnames%20%3E%20(model)%20RegionalHostnameEditResponse%20%3E%20(schema)>), error)

PATCH/zones/{zone\_id}/addressing/regional\_hostnames/{hostname}

##### [Delete Regional Hostname](https://developers.cloudflare.com/api/go/resources/addressing/subresources/regional_hostnames/methods/delete)

client.Addressing.RegionalHostnames.Delete(ctx, hostname, body) (\*[RegionalHostnameDeleteResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.regional_hostnames%20%3E%20(model)%20RegionalHostnameDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/addressing/regional\_hostnames/{hostname}

#### AddressingRegional HostnamesRegions

##### [List Regions](https://developers.cloudflare.com/api/go/resources/addressing/subresources/regional_hostnames/subresources/regions/methods/list)

client.Addressing.RegionalHostnames.Regions.List(ctx, query) (\*SinglePage\[[RegionalHostnameRegionListResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.regional_hostnames.regions%20%3E%20(model)%20RegionalHostnameRegionListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/addressing/regional\_hostnames/regions

#### AddressingServices

##### [List Services](https://developers.cloudflare.com/api/go/resources/addressing/subresources/services/methods/list)

client.Addressing.Services.List(ctx, query) (\*SinglePage\[[ServiceListResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.services%20%3E%20(model)%20ServiceListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/addressing/services

#### AddressingAddress Maps

##### [List Address Maps](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/methods/list)

client.Addressing.AddressMaps.List(ctx, query) (\*SinglePage\[[AddressMap](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/addressing/address\_maps

##### [Address Map Details](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/methods/get)

client.Addressing.AddressMaps.Get(ctx, addressMapID, query) (\*[AddressMapGetResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps%20%3E%20(model)%20AddressMapGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/addressing/address\_maps/{address\_map\_id}

##### [Create Address Map](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/methods/create)

client.Addressing.AddressMaps.New(ctx, params) (\*[AddressMapNewResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps%20%3E%20(model)%20AddressMapNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/addressing/address\_maps

##### [Update Address Map](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/methods/edit)

client.Addressing.AddressMaps.Edit(ctx, addressMapID, params) (\*[AddressMap](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/addressing/address\_maps/{address\_map\_id}

##### [Delete Address Map](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/methods/delete)

client.Addressing.AddressMaps.Delete(ctx, addressMapID, body) (\*[AddressMapDeleteResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps%20%3E%20(model)%20AddressMapDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/addressing/address\_maps/{address\_map\_id}

##### ModelsExpand Collapse

<details>

<summary>

type AddressMap struct{…}

</summary>

ID stringOptional

Identifier of an Address Map.

maxLength32

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CanDelete boolOptional

If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)%20%3E%20(property)%20can_delete">Link to this property</a>

CanModifyIPs boolOptional

If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)%20%3E%20(property)%20can_modify_ips">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

DefaultSNI stringOptional

If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)%20%3E%20(property)%20default_sni">Link to this property</a>

Description stringOptional

An optional description field which may be used to describe the types of IPs or zones on the map.

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the Address Map is enabled or not. Cloudflare’s DNS will not respond with IP addresses on an Address Map until the map is enabled.

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

ModifiedAt TimeOptional

formatdate-time

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(model)%20address_map%20%3E%20(schema)>)

<details>

<summary>

type Kind string

The type of the membership.

</summary>

One of the following:

const KindZone <a href="https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps%20%3E%20(model)%20kind%20%3E%20(schema)">Kind</a> = "zone"

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const KindAccount <a href="https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps%20%3E%20(model)%20kind%20%3E%20(schema)">Kind</a> = "account"

<a href="#(resource)%20addressing.address_maps%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.address_maps%20%3E%20(model)%20kind%20%3E%20(schema)>)

#### AddressingAddress MapsAccounts

##### [Add an account membership to an Address Map](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/subresources/accounts/methods/update)

client.Addressing.AddressMaps.Accounts.Update(ctx, addressMapID, memberAccountID, body) (\*[AddressMapAccountUpdateResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps.accounts%20%3E%20(model)%20AddressMapAccountUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/addressing/address\_maps/{address\_map\_id}/accounts/{member\_account\_id}

##### [Remove an account membership from an Address Map](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/subresources/accounts/methods/delete)

client.Addressing.AddressMaps.Accounts.Delete(ctx, addressMapID, memberAccountID, body) (\*[AddressMapAccountDeleteResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps.accounts%20%3E%20(model)%20AddressMapAccountDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/addressing/address\_maps/{address\_map\_id}/accounts/{member\_account\_id}

#### AddressingAddress MapsIPs

##### [Add an IP to an Address Map](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/subresources/ips/methods/update)

client.Addressing.AddressMaps.IPs.Update(ctx, addressMapID, ipAddress, body) (\*[AddressMapIPUpdateResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps.ips%20%3E%20(model)%20AddressMapIPUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/addressing/address\_maps/{address\_map\_id}/ips/{ip\_address}

##### [Remove an IP from an Address Map](https://developers.cloudflare.com/api/go/resources/addressing/subresources/address_maps/subresources/ips/methods/delete)

client.Addressing.AddressMaps.IPs.Delete(ctx, addressMapID, ipAddress, body) (\*[AddressMapIPDeleteResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.address_maps.ips%20%3E%20(model)%20AddressMapIPDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/addressing/address\_maps/{address\_map\_id}/ips/{ip\_address}

#### AddressingAddress MapsZones

#### AddressingLOA Documents

##### [Download LOA Document](https://developers.cloudflare.com/api/go/resources/addressing/subresources/loa_documents/methods/get)

client.Addressing.LOADocuments.Get(ctx, loaDocumentID, query) (\*Response, error)

GET/accounts/{account\_id}/addressing/loa\_documents/{loa\_document\_id}/download

##### [Upload LOA Document](https://developers.cloudflare.com/api/go/resources/addressing/subresources/loa_documents/methods/create)

client.Addressing.LOADocuments.New(ctx, params) (\*[LOADocumentNewResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.loa_documents%20%3E%20(model)%20LOADocumentNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/addressing/loa\_documents

#### AddressingPrefixes

##### [List Prefixes](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/methods/list)

client.Addressing.Prefixes.List(ctx, query) (\*SinglePage\[[Prefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/addressing/prefixes

##### [Prefix Details](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/methods/get)

client.Addressing.Prefixes.Get(ctx, prefixID, query) (\*[Prefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/addressing/prefixes/{prefix\_id}

##### [Add Prefix](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/methods/create)

client.Addressing.Prefixes.New(ctx, params) (\*[Prefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/addressing/prefixes

##### [Update Prefix Description](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/methods/edit)

client.Addressing.Prefixes.Edit(ctx, prefixID, params) (\*[Prefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/addressing/prefixes/{prefix\_id}

##### [Delete Prefix](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/methods/delete)

client.Addressing.Prefixes.Delete(ctx, prefixID, body) (\*[PrefixDeleteResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes%20%3E%20(model)%20PrefixDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/addressing/prefixes/{prefix\_id}

##### [Validate Prefix](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/methods/validate)

client.Addressing.Prefixes.Validate(ctx, prefixID, body) (\*[Prefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/validate

##### ModelsExpand Collapse

<details>

<summary>

type Prefix struct{…}

</summary>

ID stringOptional

Identifier of an IP Prefix.

maxLength32

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

AccountID stringOptional

Identifier of a Cloudflare account.

maxLength32

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20account_id">Link to this property</a>

DeprecatedAdvertised boolOptional

Prefer the <a href="https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/">BGP Prefixes API</a> instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Prefix advertisement status to the Internet. This field is only not ‘null’ if on demand is enabled.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20advertised">Link to this property</a>

DeprecatedAdvertisedModifiedAt TimeOptional

Prefer the <a href="https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/">BGP Prefixes API</a> instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Last time the advertisement status was changed. This field is only not ‘null’ if on demand is enabled.

formatdate-time

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20advertised_modified_at">Link to this property</a>

Approved stringOptional

Approval state of the prefix (P = pending, V = active).

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20approved">Link to this property</a>

ASN int64Optional

Autonomous System Number (ASN) the prefix will be advertised under.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20asn">Link to this property</a>

CIDR stringOptional

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20cidr">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

DelegateLOACreation boolOptional

Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20delegate_loa_creation">Link to this property</a>

Description stringOptional

Description of the prefix.

maxLength1000

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

IrrValidationState stringOptional

State of one kind of validation for an IP prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20irr_validation_state">Link to this property</a>

LOADocumentID stringOptional

Identifier for the uploaded LOA document.

maxLength32

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20loa_document_id">Link to this property</a>

ModifiedAt TimeOptional

formatdate-time

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

DeprecatedOnDemandEnabled boolOptional

Prefer the <a href="https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/">BGP Prefixes API</a> instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20on_demand_enabled">Link to this property</a>

DeprecatedOnDemandLocked boolOptional

Prefer the <a href="https://developers.cloudflare.com/api/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/">BGP Prefixes API</a> instead, which allows for advertising multiple BGP routes within a single IP Prefix.

Whether advertisement status of the prefix is locked, meaning it cannot be changed.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20on_demand_locked">Link to this property</a>

OwnershipValidationState stringOptional

State of one kind of validation for an IP prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20ownership_validation_state">Link to this property</a>

OwnershipValidationToken stringOptional

Token provided to demonstrate ownership of the prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20ownership_validation_token">Link to this property</a>

RPKIValidationState stringOptional

State of one kind of validation for an IP prefix.

<a href="#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)%20%3E%20(property)%20rpki_validation_state">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.prefixes%20%3E%20(model)%20prefix%20%3E%20(schema)>)

#### AddressingPrefixesService Bindings

##### [List Service Bindings](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/service_bindings/methods/list)

client.Addressing.Prefixes.ServiceBindings.List(ctx, prefixID, query) (\*SinglePage\[[ServiceBinding](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bindings

##### [Get Service Binding](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/service_bindings/methods/get)

client.Addressing.Prefixes.ServiceBindings.Get(ctx, prefixID, bindingID, query) (\*[ServiceBinding](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bindings/{binding\_id}

##### [Create Service Binding](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/service_bindings/methods/create)

client.Addressing.Prefixes.ServiceBindings.New(ctx, prefixID, params) (\*[ServiceBinding](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bindings

##### [Delete Service Binding](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/service_bindings/methods/delete)

client.Addressing.Prefixes.ServiceBindings.Delete(ctx, prefixID, bindingID, body) (\*[PrefixServiceBindingDeleteResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20PrefixServiceBindingDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bindings/{binding\_id}

##### ModelsExpand Collapse

<details>

<summary>

type ServiceBinding struct{…}

</summary>

ID stringOptional

Identifier of a Service Binding.

maxLength32

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CIDR stringOptional

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20cidr">Link to this property</a>

<details>

<summary>

Provisioning ServiceBindingProvisioningOptional

Status of a Service Binding’s deployment to the Cloudflare network

</summary>

<details>

<summary>

State ServiceBindingProvisioningStateOptional

When a binding has been deployed to a majority of Cloudflare datacenters, the binding will become active and can be used with its associated service.

</summary>

One of the following:

const ServiceBindingProvisioningStateProvisioning ServiceBindingProvisioningState = "provisioning"

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20provisioning%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

const ServiceBindingProvisioningStateActive ServiceBindingProvisioningState = "active"

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20provisioning%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

const ServiceBindingProvisioningStateMagicTransitRouteMissing ServiceBindingProvisioningState = "magic\_transit\_route\_missing"

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20provisioning%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20provisioning%20%3E%20(property)%20state">Link to this property</a>

</details>

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20provisioning">Link to this property</a>

ServiceID stringOptional

Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the **List Services** endpoint.

maxLength32

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20service_id">Link to this property</a>

ServiceName stringOptional

Name of a service running on the Cloudflare network

<a href="#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)%20%3E%20(property)%20service_name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.prefixes.service_bindings%20%3E%20(model)%20service_binding%20%3E%20(schema)>)

#### AddressingPrefixesBGP Prefixes

##### [List BGP Prefixes](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/methods/list)

client.Addressing.Prefixes.BGPPrefixes.List(ctx, prefixID, query) (\*SinglePage\[[BGPPrefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bgp/prefixes

##### [Fetch BGP Prefix](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/methods/get)

client.Addressing.Prefixes.BGPPrefixes.Get(ctx, prefixID, bgpPrefixID, query) (\*[BGPPrefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bgp/prefixes/{bgp\_prefix\_id}

##### [Create BGP Prefix](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/methods/create)

client.Addressing.Prefixes.BGPPrefixes.New(ctx, prefixID, params) (\*[BGPPrefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bgp/prefixes

##### [Update BGP Prefix](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/methods/edit)

client.Addressing.Prefixes.BGPPrefixes.Edit(ctx, prefixID, bgpPrefixID, params) (\*[BGPPrefix](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bgp/prefixes/{bgp\_prefix\_id}

##### [Delete BGP Prefix](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/bgp_prefixes/methods/delete)

client.Addressing.Prefixes.BGPPrefixes.Delete(ctx, prefixID, bgpPrefixID, body) (\*[PrefixBGPPrefixDeleteResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20PrefixBGPPrefixDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bgp/prefixes/{bgp\_prefix\_id}

##### ModelsExpand Collapse

<details>

<summary>

type BGPPrefix struct{…}

</summary>

ID stringOptional

Identifier of BGP Prefix.

maxLength32

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

ASN int64Optional

Autonomous System Number (ASN) the prefix will be advertised under.

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20asn">Link to this property</a>

ASNPrependCount int64Optional

Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute

maximum3

minimum0

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20asn_prepend_count">Link to this property</a>

AutoAdvertiseWithdraw boolOptional

Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there are no matching BGP routes, and will resume advertising when there is at least one matching BGP route.

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20auto_advertise_withdraw">Link to this property</a>

<details>

<summary>

BGPSignalOpts BGPPrefixBGPSignalOptsOptional

</summary>

Enabled boolOptional

Whether control of advertisement of the prefix to the Internet is enabled to be performed via BGP signal

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20bgp_signal_opts%20%3E%20(property)%20enabled">Link to this property</a>

ModifiedAt TimeOptional

Last time BGP signaling control was toggled. This field is null if BGP signaling has never been enabled.

formatdate-time

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20bgp_signal_opts%20%3E%20(property)%20modified_at">Link to this property</a>

</details>

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20bgp_signal_opts">Link to this property</a>

CIDR stringOptional

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20cidr">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

ModifiedAt TimeOptional

formatdate-time

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

<details>

<summary>

OnDemand BGPPrefixOnDemandOptional

</summary>

Advertised boolOptional

Prefix advertisement status to the Internet. This field is only not ‘null’ if on demand is enabled.

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20on_demand%20%3E%20(property)%20advertised">Link to this property</a>

AdvertisedModifiedAt TimeOptional

Last time the advertisement status was changed. This field is only not ‘null’ if on demand is enabled.

formatdate-time

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20on_demand%20%3E%20(property)%20advertised_modified_at">Link to this property</a>

OnDemandEnabled boolOptional

Whether advertisement of the prefix to the Internet may be dynamically enabled or disabled.

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20on_demand%20%3E%20(property)%20on_demand_enabled">Link to this property</a>

OnDemandLocked boolOptional

Whether the advertisement status of the prefix is locked, meaning it cannot be changed.

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20on_demand%20%3E%20(property)%20on_demand_locked">Link to this property</a>

</details>

<a href="#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)%20%3E%20(property)%20on_demand">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.prefixes.bgp_prefixes%20%3E%20(model)%20bgp_prefix%20%3E%20(schema)>)

#### AddressingPrefixesAdvertisement Status

##### [Get Advertisement Status](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/advertisement_status/methods/get)

Deprecated

client.Addressing.Prefixes.AdvertisementStatus.Get(ctx, prefixID, query) (\*[PrefixAdvertisementStatusGetResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.advertisement_status%20%3E%20(model)%20PrefixAdvertisementStatusGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bgp/status

##### [Update Prefix Dynamic Advertisement Status](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/advertisement_status/methods/edit)

Deprecated

client.Addressing.Prefixes.AdvertisementStatus.Edit(ctx, prefixID, params) (\*[PrefixAdvertisementStatusEditResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.advertisement_status%20%3E%20(model)%20PrefixAdvertisementStatusEditResponse%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/bgp/status

#### AddressingPrefixesDelegations

##### [List Prefix Delegations](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/delegations/methods/list)

client.Addressing.Prefixes.Delegations.List(ctx, prefixID, query) (\*SinglePage\[[Delegations](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/delegations

##### [Create Prefix Delegation](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/delegations/methods/create)

client.Addressing.Prefixes.Delegations.New(ctx, prefixID, params) (\*[Delegations](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/delegations

##### [Delete Prefix Delegation](https://developers.cloudflare.com/api/go/resources/addressing/subresources/prefixes/subresources/delegations/methods/delete)

client.Addressing.Prefixes.Delegations.Delete(ctx, prefixID, delegationID, body) (\*[PrefixDelegationDeleteResponse](<https://developers.cloudflare.com/api/go/resources/addressing#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20PrefixDelegationDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/addressing/prefixes/{prefix\_id}/delegations/{delegation\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Delegations struct{…}

</summary>

ID stringOptional

Identifier of a Delegation.

maxLength32

<a href="#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CIDR stringOptional

IP Prefix in Classless Inter-Domain Routing format.

<a href="#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)%20%3E%20(property)%20cidr">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

DelegatedAccountID stringOptional

Account identifier for the account to which prefix is being delegated.

maxLength32

<a href="#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)%20%3E%20(property)%20delegated_account_id">Link to this property</a>

ModifiedAt TimeOptional

formatdate-time

<a href="#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

ParentPrefixID stringOptional

Identifier of an IP Prefix.

maxLength32

<a href="#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)%20%3E%20(property)%20parent_prefix_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20addressing.prefixes.delegations%20%3E%20(model)%20delegations%20%3E%20(schema)>)