Targets

CreateAzureCentralIoTApplication

POST
/cc/v1/targets/actions/newaic

Deploy a new Azure IoT Central application based on the Verizon ARM template within the specified Azure Active Directory account.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Header Parameters

BillingaccountID*string

TThe ThingSpace ID of the authenticating billing account.

Request Body

application/json

The request body must include the UUID of the subscription that you want to update plus any properties that you want to change.

The request body must include the UUID of the subscription that you want to update plus any properties that you want to change.

appName?string

A user defined name for the application being deployed in Azure IoT Central.

billingAccountID?string

The ThingSpace ID of the authenticating billing account

clientID?string

The Azure ClientID of the associated Azure target account

clientSecret?string

The Azure Client Secret of the associated Azure target account

emailIDs?string

The “email IDs” to be added to/sent to with this API.

resourcegroup?string

The Azure Resource group of the associated Azure target account

sampleIOTcApp?string

This is the reference Azure IoT Central application developed by Verizon.

subscriptionID?string

The Azure Subscription ID of the associated Azure target account

tenantID?string

The Azure Tenant ID of the associated Azure target account

Response Body

application/json

curl -X POST "https://example.com/cc/v1/targets/actions/newaic" \  -H "BillingaccountID: string" \  -H "Content-Type: application/json" \  -d '{    "appName": "newarmapp1",    "billingAccountID": "0000123456-00001",    "clientID": "UUID",    "clientSecret": "client secret",    "emailIDs": "email@domain.com",    "resourcegroup": "Myresourcegroup",    "sampleIOTcApp": "{app ID}",    "subscriptionID": "{subscription ID}",    "tenantID": "{tenant ID}"  }'
{  "appName": "newarmapp1",  "sharedSecret": "SharedAccessSignaturesr={client secret}",  "url": "https://newarmapp1.azureiotcentral.com"}