Skip to main content

discovered_ranges

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

Overview

Namediscovered_ranges
TypeResource
Idgoogle.cloudnumberregistry.discovered_ranges

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRequired. Identifier. The resource name of the DiscoveredRange, in the format projects/{project}/locations/{location}/discoveredRanges/{discovered_range}.
attributesarrayOptional. The attributes of the DiscoveredRange.
childCidrOverlapAllowedbooleanOutput only. If true, allows child DiscoveredRanges of this DiscoveredRange to overlap with each other.
createTimestring (google-datetime)Output only. The time at which the DiscoveredRange was created.
descriptionstringOptional. Description of the DiscoveredRange.
discoveryMetadataobjectOutput only. Owner metadata for this DiscoveredRange. A unique set of metadata is associated with each DiscoveredRange. If an IP range is shared by multiple resources (e.g., an Address resource and an Instance resource, or multiple ForwardingRules),separate DiscoveredRanges are created, each with a distinct owner. This ensures each DiscoveredRange has its own unique set of attributes, labels, create time and update time. (id: DiscoveryMetadata)
ipv4CidrRangestringOptional. The IPv4 CIDR range of the DiscoveredRange.
ipv6CidrRangestringOptional. The IPv6 CIDR range of the DiscoveredRange.
labelsobjectOptional. User-defined labels.
parentRangestringOptional. The resource name of the parent DiscoveredRange, in the format projects/{project}/locations/{location}/discoveredRanges/{discovered_range}.
realmstringOptional. The Realm of the DiscoveredRange.
registryBookstringOutput only. The RegistryBook of the DiscoveredRange.
updateTimestring (google-datetime)Output only. The time at which the DiscoveredRange was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, discoveredRangesIdGets details of a single DiscoveredRange.
listselectprojectsId, locationsIdfilter, pageSize, orderBy, pageTokenLists DiscoveredRanges in a given project and location.
find_free_ip_rangesexecprojectsId, locationsId, discoveredRangesIdrangeCount, requestId, cidrPrefixLengthFinds free IP ranges in a single DiscoveredRange.
show_utilizationexecprojectsId, locationsId, discoveredRangesIdGets the details of a single DiscoveredRange and its utilization.

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
discoveredRangesIdstring
locationsIdstring
projectsIdstring
cidrPrefixLengthinteger (int32)
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
rangeCountinteger (int32)
requestIdstring

SELECT examples

Gets details of a single DiscoveredRange.

SELECT
name,
attributes,
childCidrOverlapAllowed,
createTime,
description,
discoveryMetadata,
ipv4CidrRange,
ipv6CidrRange,
labels,
parentRange,
realm,
registryBook,
updateTime
FROM google.cloudnumberregistry.discovered_ranges
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND discoveredRangesId = '{{ discoveredRangesId }}' -- required
;

Lifecycle Methods

Finds free IP ranges in a single DiscoveredRange.

EXEC google.cloudnumberregistry.discovered_ranges.find_free_ip_ranges
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@discoveredRangesId='{{ discoveredRangesId }}' --required,
@rangeCount='{{ rangeCount }}',
@requestId='{{ requestId }}',
@cidrPrefixLength='{{ cidrPrefixLength }}'
;