Skip to main content

ipam_admin_scopes

Creates, updates, deletes, gets or lists an ipam_admin_scopes resource.

Overview

Nameipam_admin_scopes
TypeResource
Idgoogle.cloudnumberregistry.ipam_admin_scopes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRequired. Identifier. The resource name of the IpamAdminScope.
createTimestring (google-datetime)Output only. The time at which the IpamAdminScope was created.
enabledAddonPlatformsarrayRequired. Add-on platforms that are enabled for this IpamAdminScope. Cloud Number Registry only discovers the IP addresses from the enabled platforms.
labelsobjectOptional. User-defined labels.
scopesarrayRequired. Administrative scopes enabled for IP address discovery and management. For example, "organizations/1234567890". Minimum of 1 scope is required. In preview, only one organization scope is allowed.
statestringOutput only. State of resource discovery pipeline. (DISCOVERY_PIPELINE_STATE_UNSPECIFIED, INTERNAL_FAILURE, FAILED, SETUP_IN_PROGRESS, READY_FOR_USE, DELETING_IN_PROGRESS, UPDATING, RECOVERING, DISABLED, DELETION_COMPLETED, CLEANUP_IN_PROGRESS, READY_FOR_DELETION)
updateTimestring (google-datetime)Output only. The time at which the IpamAdminScope was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, ipamAdminScopesIdGets details of a single IpamAdminScope.
listselectprojectsId, locationsIdorderBy, pageToken, pageSize, filterLists IpamAdminScopes in a given project and location.
createinsertprojectsId, locationsIdipamAdminScopeId, requestIdCreates a new IpamAdminScope in a given project and location.
patchupdateprojectsId, locationsId, ipamAdminScopesIdupdateMask, requestIdUpdates the parameters of a single IpamAdminScope.
deletedeleteprojectsId, locationsId, ipamAdminScopesIdrequestId, forceDeletes a single IpamAdminScope.
disableexecprojectsId, locationsId, ipamAdminScopesIdDisables a single IpamAdminScope.
check_availabilityexecprojectsId, locationsIdscopesChecks the availability of IpamAdminScopes in a given project and location.
cleanupexecprojectsId, locationsId, ipamAdminScopesIdCleans up a single IpamAdminScope.

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
ipamAdminScopesIdstring
locationsIdstring
projectsIdstring
filterstring
forceboolean
ipamAdminScopeIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
scopesstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single IpamAdminScope.

SELECT
name,
createTime,
enabledAddonPlatforms,
labels,
scopes,
state,
updateTime
FROM google.cloudnumberregistry.ipam_admin_scopes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND ipamAdminScopesId = '{{ ipamAdminScopesId }}' -- required
;

INSERT examples

Creates a new IpamAdminScope in a given project and location.

INSERT INTO google.cloudnumberregistry.ipam_admin_scopes (
data__enabledAddonPlatforms,
data__scopes,
data__labels,
data__name,
projectsId,
locationsId,
ipamAdminScopeId,
requestId
)
SELECT
'{{ enabledAddonPlatforms }}',
'{{ scopes }}',
'{{ labels }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ ipamAdminScopeId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single IpamAdminScope.

UPDATE google.cloudnumberregistry.ipam_admin_scopes
SET
data__enabledAddonPlatforms = '{{ enabledAddonPlatforms }}',
data__scopes = '{{ scopes }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND ipamAdminScopesId = '{{ ipamAdminScopesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single IpamAdminScope.

DELETE FROM google.cloudnumberregistry.ipam_admin_scopes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND ipamAdminScopesId = '{{ ipamAdminScopesId }}' --required
AND requestId = '{{ requestId }}'
AND force = '{{ force }}'
;

Lifecycle Methods

Disables a single IpamAdminScope.

EXEC google.cloudnumberregistry.ipam_admin_scopes.disable
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@ipamAdminScopesId='{{ ipamAdminScopesId }}' --required
@@json=
'{
"requestId": "{{ requestId }}"
}'
;