GET /campaigns/{accountName}/{campaignId}
Returns information about a specified upgrade, including the target date of the upgrade.
The upgrade states are listed as follows:
GET https://thingspace.verizon.com/api/fota/v3/campaigns/{accountName}/{campaignId}
Parameter Name | Data Type | Description |
---|---|---|
acc required |
string | The billing name of the account. An account name is usually numeric, and must include any leading zeros. |
campaignId required |
string | Software upgrade identifier, returned in the "id" value of the POST /{campaigns}/{accountName} response when the upgrade was scheduled. |
The request header must contain a current ThingSpace authorization token, set the content to "JSON" and a current VZ-M2M-session token.
Parameter Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization request header containing a valid Bearer token. |
VZ-M2M-Token required |
string | A valid session token returned by a Connectivity Management POST /session/login request. |
Content-Type required |
string | Must be application/json . |
None
Request status of a software upgrade.
curl GET https://thingspace.verizon.com/api/fota/v3/campaigns/{accountName}/{campaignId}
-H 'VZ-M2M-Token: {M2M token}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {bearer token}' \
Status 200
tr>
Parameter Name | Data Type | Description |
---|---|---|
id | string | The campaign name. |
accountName |
string | The ThingSpace billing account number |
campaignName | string | The campaign name. |
firmwareName | string | The name of the firmware to which you are upgrading. |
protocol | string | The protocol of the firmware distribution.
|
make | string | FOTA make of the device. |
model | string | FOTA model of the device. |
status | string | Campaign level status. |
firmwareFrom | string | The name of the old firmware on the device. |
firmwareTo | string | The name of the new firmware to which you are upgrading. |
startDate | string($date) | Campaign start date. |
endDate | string($date) | Campaign end date. |
campaignTimeWindowList | array | |
startTime required |
integer | Start hour in range [0-23], current hour >= startTime. When the current hour falls between the startTime and the endTime, it starts. |
endTime required |
integer | End hour in range [1-24], current hour < endTime. The endTime must be at least 4 hours after the startTime. |
autoAssignLicenseFlag optional |
boolean | Valid values include:
|
autoAddDevicesFlag optional |
boolean | Valid values include:
|
{
"id": "f858b8c4-2153-11ec-8c44-aeb16d1aa652",
"accountName": "0642233522-00001",
"campaignName": "Smart FOTA",
"protocol": "LWM2M",
"make": "SEQUANS Communications",
"model": "GM01Q",
"status": "CampaignPreScheduled",
"startDate": "2021-09-29",
"endDate": "2021-10-01",
"firmwareName": "SEQUANSCommunications_GM01Q_SR1.2.0.0-10512_SR1.2.0.0-10657",
"firmwareFrom": "SR1.2.0.0-10512",
"firmwareTo": "SR1.2.0.0-10657",
"timeWindowList": [
{
"startTime": 18,
"endTime": 22
}
]
"autoAssignLicenseFlag":"false",
"autoAddDevicesFlag":"false"
}
Status 400
All error messages are returned in this format:
{
"errorCode": "error code string",
"errorMessage": "error message string"
}
Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.