Skip to main content

spaces

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

Overview

Namespaces
TypeResource
Idgoogle.apigee.spaces

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. Id of the space. This field is used as the resource name, and must follow AIP-122 guidelines.
createTimestring (google-datetime)Output only. Create timestamp of the space.
displayNamestringOptional. Display name of the space.
updateTimestring (google-datetime)Output only. Last modified timestamp of the space.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_spaces_getselectorganizationsId, spacesIdGet a space under an Organization.
organizations_spaces_listselectorganizationsIdpageSize, pageTokenLists spaces under an organization.
organizations_spaces_createinsertorganizationsIdspaceIdCreate a space under an organization.
organizations_spaces_patchupdateorganizationsId, spacesIdupdateMaskUpdates a space.
organizations_spaces_deletedeleteorganizationsId, spacesIdDeletes an organization space.

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
organizationsIdstring
spacesIdstring
pageSizeinteger (int32)
pageTokenstring
spaceIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Get a space under an Organization.

SELECT
name,
createTime,
displayName,
updateTime
FROM google.apigee.spaces
WHERE organizationsId = '{{ organizationsId }}' -- required
AND spacesId = '{{ spacesId }}' -- required;

INSERT examples

Create a space under an organization.

INSERT INTO google.apigee.spaces (
data__displayName,
organizationsId,
spaceId
)
SELECT
'{{ displayName }}',
'{{ organizationsId }}',
'{{ spaceId }}'
RETURNING
name,
createTime,
displayName,
updateTime
;

UPDATE examples

Updates a space.

UPDATE google.apigee.spaces
SET
data__displayName = '{{ displayName }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND spacesId = '{{ spacesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
displayName,
updateTime;

DELETE examples

Deletes an organization space.

DELETE FROM google.apigee.spaces
WHERE organizationsId = '{{ organizationsId }}' --required
AND spacesId = '{{ spacesId }}' --required;