Skip to content

/AWS1/CL_IOT=>CREATEPROVISIONINGTEMPLATE()

About CreateProvisioningTemplate

Creates a provisioning template.

Requires permission to access the CreateProvisioningTemplate action.

Method Signature

IMPORTING

Required arguments:

IV_TEMPLATENAME TYPE /AWS1/IOTTEMPLATENAME /AWS1/IOTTEMPLATENAME

The name of the provisioning template.

IV_TEMPLATEBODY TYPE /AWS1/IOTTEMPLATEBODY /AWS1/IOTTEMPLATEBODY

The JSON formatted contents of the provisioning template.

IV_PROVISIONINGROLEARN TYPE /AWS1/IOTROLEARN /AWS1/IOTROLEARN

The role ARN for the role associated with the provisioning template. This IoT role grants permission to provision a device.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/IOTTEMPLATEDESCRIPTION /AWS1/IOTTEMPLATEDESCRIPTION

The description of the provisioning template.

IV_ENABLED TYPE /AWS1/IOTENABLED2 /AWS1/IOTENABLED2

True to enable the provisioning template, otherwise false.

IO_PREPROVISIONINGHOOK TYPE REF TO /AWS1/CL_IOTPROVISIONINGHOOK /AWS1/CL_IOTPROVISIONINGHOOK

Creates a pre-provisioning hook template. Only supports template of type FLEET_PROVISIONING. For more information about provisioning template types, see type.

IT_TAGS TYPE /AWS1/CL_IOTTAG=>TT_TAGLIST TT_TAGLIST

Metadata which can be used to manage the provisioning template.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

IV_TYPE TYPE /AWS1/IOTTEMPLATETYPE /AWS1/IOTTEMPLATETYPE

The type you define in a provisioning template. You can create a template with only one type. You can't change the template type after its creation. The default value is FLEET_PROVISIONING. For more information about provisioning template, see: Provisioning template.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_IOTCREATEPROVTMPLRSP /AWS1/CL_IOTCREATEPROVTMPLRSP