You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
The following API calls are available for the Google Cloud Injector Module and can be executed within any of the available Ignition scopes.
APIs
system.cirruslink.gcp.cloud.createConfig(type, props) → void
ParametersString typeMap propsDictionary of properties making up the configuration with the following keys and datatypes:Cloud IoT CoreSetsAgentsId (long)(cannot be null)Name (str) (added 4.0.17)Enabled (bool) (added 4.0.17)
Return ValueA map representing the newly created configuration after it has been written to the database. (added 4.0.16)
system.cirruslink.gcp.cloud.readConfig(type) → List
ParametersReturn ValueA List of the Dictionaries of properties making up the configurations with the following keys and datatypes:GeneralCloud IoT CoreSetsId (long)
Name (str)
Description (str)
PushPolicy (str) "PUSH_TO_ALL" or "PUSH_TO_ANY"
Agents
system.cirruslink.gcp.cloud.updateConfig(type, id, collisionPolicy, props) → voidParametersString typeThe type of configuration to update with valid options:GeneralCloud IoT CoreSetsAgents
Long idThe ID of the record to update
String collisionPolicy"MergeOverwrite" or "Overwrite""MergeOverwrite" will replace the existing properties in the record ID with only those included in the call"Overwrite" will replace all properties in the record ID with those in the call
Map propsDictionary of properties making up the configuration with the following keys and datatypes:GeneralCloud IoT CoreSetsId (long)
Name (str)
Description (str)
PushPolicy (str) "PUSH_TO_ALL" or "PUSH_TO_ANY"
AgentsId (long)Name (str) (added 4.0.17)Enabled (bool) (added 4.0.17)TagProvider (str)TagPath (str)PushTrigger (str) "EVENT_DRIVEN", "PERIODIC" or "HYBRID"TagPacingPeriod (long)ConvertUdts (bool)PublishUdtDefinitions (bool)OptimizeUdts (bool)GoogleCloudSetId (long)GroupId (str)EdgeNodeId (str)DeviceId (str)FilteredProperties (str)SendAllProps (bool)(added 4.0.25)IncludeInfoFolders (bool)(added 4.0.30)
Return ValueA map representing the updated configuration after it has been written to the database. (added 4.0.16)
system.cirruslink.gcp.cloud.deleteConfig(type, id) → voidParametersString typeThe type of configuration to delete with valid options:
Long idThe ID of the record to delete
Return valueTrue if the record was successfully deleted otherwise False is returned (added 4.0.16)