Skip to main content

leases

Creates, updates, deletes, gets or lists a leases resource.

Overview

Nameleases
TypeResource
Idcloudflare.addressing.leases

Fields

The following fields are returned by SELECT queries:

List Leases response

NameDatatypeDescription
idstringIdentifier for the lease (example: 8fee4b6fd361283a72381ccfda355471)
owner_idstringCloudflare account ID of the account owning the lease. (example: 3a7d3de1d0682240cf046c7f50866cc5)
active_fromstring (date-time)Timestamp of the moment the lease was created. (example: 2020-01-01T00:00:00Z)
cidrsarrayCIDRs attached to the lease
created_atstring (date-time)Timestamp of the moment the object was created.
modified_atstring (date-time)Timestamp of the moment the object was modified.
purposestringDescribes the purpose of the addresses. (example: Spectrum Static IPs)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idList all leases owned by the account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

SELECT examples

List all leases owned by the account.

SELECT
id,
owner_id,
active_from,
cidrs,
created_at,
modified_at,
purpose
FROM cloudflare.addressing.leases
WHERE account_id = '{{ account_id }}' -- required
;