@@ -59,14 +59,13 @@ To run this sample:
59
59
60
60
$ python manager.py
61
61
62
- usage: manager.py [-h] --pubsub_topic PUBSUB_TOPIC [--api_key API_KEY]
63
- [--project_id PROJECT_ID]
62
+ usage: manager.py [-h] --pubsub_topic PUBSUB_TOPIC [--project_id PROJECT_ID]
64
63
[--ec_public_key_file EC_PUBLIC_KEY_FILE]
65
64
[--rsa_certificate_file RSA_CERTIFICATE_FILE]
66
65
[--cloud_region CLOUD_REGION]
67
66
[--service_account_json SERVICE_ACCOUNT_JSON]
68
67
[--registry_id REGISTRY_ID] [--device_id DEVICE_ID]
69
- {create-es256,create-registry,create-rsa256,create-topic,create-unauth,delete-device,delete-registry,get,get-registry,list,list-registries,patch-es256,patch-rs256}
68
+ {create-es256,create-registry,create-rsa256,create-topic,create-unauth,delete-device,delete-registry,get,get-registry,get-state, list,list-registries,patch-es256,patch-rs256}
70
69
...
71
70
72
71
Example of using the Google Cloud IoT Core device manager to administer
@@ -77,14 +76,13 @@ To run this sample:
77
76
python manager.py \
78
77
--project_id=my-project-id \
79
78
--pubsub_topic=projects/my-project-id/topics/my-topic-id \
80
- --api_key=YOUR_API_KEY \
81
79
--ec_public_key_file=../ec_public.pem \
82
80
--rsa_certificate_file=../rsa_cert.pem \
83
81
--service_account_json=$HOME /service_account.json
84
82
list
85
83
86
84
positional arguments:
87
- {create-es256,create-registry,create-rsa256,create-topic,create-unauth,delete-device,delete-registry,get,get-registry,list,list-registries,patch-es256,patch-rs256}
85
+ {create-es256,create-registry,create-rsa256,create-topic,create-unauth,delete-device,delete-registry,get,get-registry,get-state, list,list-registries,patch-es256,patch-rs256}
88
86
create-es256 Create a new device with the given id, using ES256 for
89
87
authentication.
90
88
create-registry Gets or creates a device registry.
@@ -96,7 +94,8 @@ To run this sample:
96
94
delete-device Delete the device with the given id.
97
95
delete-registry Deletes the specified registry.
98
96
get Retrieve the device with the given id.
99
- get-registry Retrieve the device with the given id.
97
+ get-registry Retrieves a device registry.
98
+ get-state Retrieve a device' s state blobs.
100
99
list List all devices in the registry.
101
100
list-registries List all registries in the project.
102
101
patch-es256 Patch the device to add an ES256 public key to the
@@ -109,7 +108,6 @@ To run this sample:
109
108
--pubsub_topic PUBSUB_TOPIC
110
109
Google Cloud Pub/Sub topic. Format is
111
110
projects/project_id/topics/topic-id
112
- --api_key API_KEY Your API key.
113
111
--project_id PROJECT_ID
114
112
GCP cloud project name.
115
113
--ec_public_key_file EC_PUBLIC_KEY_FILE
0 commit comments