|  Developer
Updated on May 6, 2022

hub.provision_info.set

Connection type:

Permissions:

  • Update provision info on the hub
Edit
Field Type Required Description
params.configRev integer + Provision info configuration revision
params.provisionServer string + Provision server URL
params.cloudServer string + URL of the server device will connect to
params.provisionToken string Provision token to retrieve info from provision server
params.sslPrivateKey string Device’s SSL private key in PEM format
params.sslSharedKey string Signed shared key in PEM format
params.signingCaCertificate string CA certificate in PEM format
params.timeServer array Array of time server URLs
params.productName string Product name
  • Provision info is supposed to be updated during device lifecycle. With every update provision platform will increment configuration revision ‘configRev’ field. Device will update provision info only if its revision is newer then one already stored. If revision is older or equal device will ignore request. In either case device will show in response if provision info was updated and which revision is stored on device after the operation
Edit
Field Type Required Description
result.isUpdated bool + Result of provision info update
result.configRev integer + Configuration revision after operation
Edit
Edit
				
					{
    "method": "hub.provision_info.set",
    "id": "_ID_",
    "params": {    
          "configRev": 1,
          "provisionServer": "https://req-disp-at0m.mios.com/",
          "cloudServer": "https://cloud-dev.mios.com",
          "provisionToken": "ed4efce6d36a23a",
          "sslPrivateKey": "-----BEGIN RSA PRIVATE KEY-----
                                        ...
                              -----END RSA PRIVATE KEY-----",
          "sslSharedKey": "-----BEGIN PUBLIC KEY----
                                        ...
                            -----END PUBLIC KEY-----",
          "signingCaCertificate": "-----BEGIN CERTIFICATE-----
                                            ...
                                    -----END CERTIFICATE-----",
          "productName": "PowerPlug"
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {
        "isUpdated": true,
        "configRev": 1
    }
}