- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- SearchResourceType
- Range
- SearchIpResourcesResult
Searches IP resources in a given RegistryBook.
HTTP request
POST https://cloudnumberregistry.googleapis.com/v1alpha/{name=projects/*/locations/*/registryBooks/*}:searchIpResources
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The name of the RegistryBook to search in. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"query": string,
"orderBy": string,
"pageSize": integer,
"pageToken": string,
"showUtilization": boolean,
"searchResourceTypes": [
enum ( |
| Fields | |
|---|---|
query |
Optional. Search query. This string filters resources in an AIP-160-like format. It has some limitations. You can only specify top level conjunctions or attribute level negations. Each restriction can only be used once except the attribute restriction. The available restrictions for ranges are: - The available restrictions for realms are: - Only one of attribute_text or multiple attribute filters can be specified. Examples: - |
orderBy |
Optional. Hint for how to order the results |
pageSize |
Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
pageToken |
Optional. A token identifying a page of results the server should return. |
showUtilization |
Optional. Whether to show the utilization of the ranges in the response. |
searchResourceTypes[] |
Optional. The type of resources to search for. If not specified, the server will return ranges. |
Response body
Message for response to searching IP resources
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "ranges": [ { object ( |
| Fields | |
|---|---|
ranges[] |
Deprecated: Use results field instead. The list of ranges matching the search query. |
results[] |
The list of results matching the search query. |
nextPageToken |
A token identifying a page of results the server should return. |
unreachable[] |
Locations that could not be reached. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name resource:
cloudnumberregistry.registryBooks.get
For more information, see the IAM documentation.
SearchResourceType
The type of resources to search for.
| Enums | |
|---|---|
SEARCH_RESOURCE_TYPE_UNSPECIFIED |
Unspecified search type. |
RANGES |
Search for ranges. |
REALMS |
Search for realms. |
Range
Message describing either a CustomRange or a DiscoveredRange.
| JSON representation |
|---|
{ "utilization": { object ( |
| Fields | |
|---|---|
utilization |
The utilization of the range. |
Union field range. The range. range can be only one of the following: |
|
customRange |
A custom range. |
discoveredRange |
A discovered range. |
SearchIpResourcesResult
A result matching the search query, which can be either a range or a realm.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field result. Either a range or a realm matching the search query. result can be only one of the following: |
|
range |
A range matching the search query. |
realm |
A realm matching the search query. |