provision_device
(**kwargs)¶Creates a device and returns a configuration archive. The configuration archive is a ZIP file that contains a provisioning certificate that is valid for 5 minutes. Name the configuration archive certificates-omni_device-name.zip
and transfer it to the device within 5 minutes. Use the included USB storage device and connect it to the USB 3.0 port next to the HDMI output.
See also: AWS API Documentation
Request Syntax
response = client.provision_device(
Description='string',
Name='string',
NetworkingConfiguration={
'Ethernet0': {
'ConnectionType': 'STATIC_IP'|'DHCP',
'StaticIpConnectionInfo': {
'DefaultGateway': 'string',
'Dns': [
'string',
],
'IpAddress': 'string',
'Mask': 'string'
}
},
'Ethernet1': {
'ConnectionType': 'STATIC_IP'|'DHCP',
'StaticIpConnectionInfo': {
'DefaultGateway': 'string',
'Dns': [
'string',
],
'IpAddress': 'string',
'Mask': 'string'
}
},
'Ntp': {
'NtpServers': [
'string',
]
}
},
Tags={
'string': 'string'
}
)
[REQUIRED]
A name for the device.
A networking configuration for the device.
Settings for Ethernet port 0.
How the device gets an IP address.
Network configuration for a static IP connection.
The connection's default gateway.
The connection's DNS address.
The connection's IP address.
The connection's DNS mask.
Settings for Ethernet port 1.
How the device gets an IP address.
Network configuration for a static IP connection.
The connection's default gateway.
The connection's DNS address.
The connection's IP address.
The connection's DNS mask.
Network time protocol (NTP) server settings.
NTP servers to use, in order of preference.
Tags for the device.
dict
Response Syntax
{
'Arn': 'string',
'Certificates': b'bytes',
'DeviceId': 'string',
'IotThingName': 'string',
'Status': 'AWAITING_PROVISIONING'|'PENDING'|'SUCCEEDED'|'FAILED'|'ERROR'|'DELETING'
}
Response Structure
(dict) --
Arn (string) --
The device's ARN.
Certificates (bytes) --
The device's configuration bundle.
DeviceId (string) --
The device's ID.
IotThingName (string) --
The device's IoT thing name.
Status (string) --
The device's status.
Exceptions
Panorama.Client.exceptions.ConflictException
Panorama.Client.exceptions.ValidationException
Panorama.Client.exceptions.AccessDeniedException
Panorama.Client.exceptions.ServiceQuotaExceededException
Panorama.Client.exceptions.InternalServerException