Skip to main content

client_states

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

Overview

Nameclient_states
TypeResource
Idgoogle.cloudidentity.client_states

Fields

NameDatatypeDescription
namestringOutput only. Resource name of the ClientState in format: devices/{device}/deviceUsers/{device_user}/clientState/{partner}, where partner corresponds to the partner storing the data. For partners belonging to the "BeyondCorp Alliance", this is the partner ID specified to you by Google. For all other callers, this is a string of the form: {customer}-suffix, where customer is your customer ID. The suffix is any string the caller specifies. This string will be displayed verbatim in the administration console. This suffix is used in setting up Custom Access Levels in Context-Aware Access. Your organization's customer ID can be obtained from the URL: GET https://www.googleapis.com/admin/directory/v1/customers/my_customer The id field in the response contains the customer ID starting with the letter 'C'. The customer ID to be used in this API is the string after the letter 'C' (not including 'C')
assetTagsarrayThe caller can specify asset tags for this resource
complianceStatestringThe compliance state of the resource as specified by the API client.
createTimestringOutput only. The time the client state data was created.
customIdstringThis field may be used to store a unique identifier for the API resource within which these CustomAttributes are a field.
etagstringThe token that needs to be passed back for concurrency control in updates. Token needs to be passed back in UpdateRequest
healthScorestringThe Health score of the resource. The Health score is the callers specification of the condition of the device from a usability point of view. For example, a third-party device management provider may specify a health score based on its compliance with organizational policies.
keyValuePairsobjectThe map of key-value attributes stored by callers specific to a device. The total serialized length of this map may not exceed 10KB. No limit is placed on the number of attributes in a map.
lastUpdateTimestringOutput only. The time the client state data was last updated.
managedstringThe management state of the resource as specified by the API client.
ownerTypestringOutput only. The owner of the ClientState
scoreReasonstringA descriptive cause of the health score.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclientStatesId, deviceUsersId, devicesIdGets the client state for the device user
listSELECTdeviceUsersId, devicesIdLists the client states for the given search query.
patchUPDATEclientStatesId, deviceUsersId, devicesIdUpdates the client state for the device user Note: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium

SELECT examples

Lists the client states for the given search query.

SELECT
name,
assetTags,
complianceState,
createTime,
customId,
etag,
healthScore,
keyValuePairs,
lastUpdateTime,
managed,
ownerType,
scoreReason
FROM google.cloudidentity.client_states
WHERE deviceUsersId = '{{ deviceUsersId }}'
AND devicesId = '{{ devicesId }}';

UPDATE example

Updates a client_states resource.

/*+ update */
UPDATE google.cloudidentity.client_states
SET
etag = '{{ etag }}',
customId = '{{ customId }}',
assetTags = '{{ assetTags }}',
healthScore = '{{ healthScore }}',
scoreReason = '{{ scoreReason }}',
managed = '{{ managed }}',
complianceState = '{{ complianceState }}',
keyValuePairs = '{{ keyValuePairs }}'
WHERE
clientStatesId = '{{ clientStatesId }}'
AND deviceUsersId = '{{ deviceUsersId }}'
AND devicesId = '{{ devicesId }}';