Admin and regional API differences

Admin API

Calling admin API

The URL, systemKey, and token this endpoint requires are obtained differently than others. To get those, do the following:

  1. Click the Select project drop-down at the top of the IoT Core UI.

  2. Click the Edit icon (pencil) next to the desired project.

  3. Go to the SERVICE ACCOUNTS tab.

  4. If a service account already exists, select it and choose DOWNLOAD CREDENTIALS. If a service account does not exist, create it and select DOWNLOAD CREDENTIALS.

  5. A JSON file will be downloaded to your local machine. Open the file with an editor. Use the systemKey, token, and URL from the file as needed below.

Admin APIs

projects.locations.registries

Create

Delete

List

policy

queryGrantableRoles

getIamPolicy

setIamPolicy

testIamPermissions

miscellaneous

Get registry credentials

Get project credentials

Update project credentials

Regional API

Calling regional API

You can find the URL, SystemKey, and token required in the call by clicking API Keys (key icon) at the top-right of the Registry Details page. Use the Registry Keys section.

Regional APIs

projects.locations.registries

Bind

Get

Patch

Unbind

projects.locations.registries.devices

Create

Delete

Get

List

Modify

Patch

Send command

projects.locations.registries.devices.configVersions

List

projects.locations.registries.devices.states

List

projects.locations.registries.devices: cloudiotdevice

Configuration

Publish event

Set state