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

The following fields are returned by SELECT queries:

Successful response

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.
createTimestring (google-datetime)Output 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.
lastUpdateTimestring (google-datetime)Output 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdevicesId, deviceUsersId, clientStatesIdcustomerGets the client state for the device user
listselectdevicesId, deviceUsersIdcustomer, filter, pageToken, orderByLists the client states for the given search query.
patchupdatedevicesId, deviceUsersId, clientStatesIdcustomer, updateMaskUpdates 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

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
clientStatesIdstring
deviceUsersIdstring
devicesIdstring
customerstring
filterstring
orderBystring
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the client state for the device user

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

UPDATE examples

Updates 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

UPDATE google.cloudidentity.client_states
SET
data__etag = '{{ etag }}',
data__customId = '{{ customId }}',
data__assetTags = '{{ assetTags }}',
data__healthScore = '{{ healthScore }}',
data__scoreReason = '{{ scoreReason }}',
data__managed = '{{ managed }}',
data__complianceState = '{{ complianceState }}',
data__keyValuePairs = '{{ keyValuePairs }}'
WHERE
devicesId = '{{ devicesId }}' --required
AND deviceUsersId = '{{ deviceUsersId }}' --required
AND clientStatesId = '{{ clientStatesId }}' --required
AND customer = '{{ customer}}'
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;