---
title: Prefixes
---

[Skip to content](#_top)

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

[Addressing](https://developers.cloudflare.com/api/go/resources/addressing)

Copy Markdown

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

---

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

# Prefixes

##### [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)>)

#### PrefixesService 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)>)

#### PrefixesBGP 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)>)

#### PrefixesAdvertisement 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

#### PrefixesDelegations

##### [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)>)