33 Google Cloud IoT Core API Python Samples
44===============================================================================
55
6+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
7+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/manager/README.rst
8+
9+
610This directory contains samples for Google Cloud IoT Core API. `Google Cloud IoT Core `_ allows developers to easily integrate Publish and Subscribe functionality with devices and programmatically manage device authorization.
711
812
@@ -54,6 +58,10 @@ Samples
5458Manager
5559+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5660
61+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
62+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/manager/manager.py;iot/api-client/manager/README.rst
63+
64+
5765
5866
5967To run this sample:
@@ -70,20 +78,20 @@ To run this sample:
7078 [--registry_id REGISTRY_ID] [--device_id DEVICE_ID]
7179 {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}
7280 ...
73-
81+
7482 Example of using the Google Cloud IoT Core device manager to administer
7583 devices.
76-
84+
7785 Usage example:
78-
86+
7987 python manager.py \
8088 --project_id=my-project-id \
8189 --pubsub_topic=projects/my-project-id/topics/my-topic-id \
8290 --ec_public_key_file=../ec_public.pem \
8391 --rsa_certificate_file=../rsa_cert.pem \
8492 --service_account_json=$HOME /service_account.json
8593 list
86-
94+
8795 positional arguments:
8896 {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}
8997 create-es256 Create a new device with the given id, using ES256 for
@@ -105,7 +113,7 @@ To run this sample:
105113 device.
106114 patch-rs256 Patch the device to add an RSA256 public key to the
107115 device.
108-
116+
109117 optional arguments:
110118 -h, --help show this help message and exit
111119 --pubsub_topic PUBSUB_TOPIC
@@ -129,4 +137,5 @@ To run this sample:
129137
130138
131139
140+
132141.. _Google Cloud SDK: https://cloud.google.com/sdk/
0 commit comments