Start UAS Outbound Sample

A command line console application that starts an outbound service that is currently configured on a cloud region to run an application on a UAS.

The telephone number to call, the originating number and user-specified outboundParameters to be passed to a single service instance can be supplied on the command line. Multiple invocations can be made by specifying a count on the command line. In this case all invocations will receive the same outboundParameters. Alternatively a file of comma-separated outboundParameter strings can be supplied on the command line. One invocation will be made with each outboundParameter specified.

Usage

python start_uas_outbound.py [--wsserver <cloudWebServerAddress>] <cloudId> <username> <outboundService> <outboundServicePassword> [<outboundParameters> [<count>]] | <csvFilename>

Arguments

cloudWebServerAddress

The address of the cloud web server. By default the wrappers call web services on https://ws-<cloudId>.aculabcloud.net. In certain circumstances you may need to use a different address which you can set here.

cloudId

Cloud region id (e.g. 1-2-0)

username

Cloud account username

outboundService

The outbound service to start

outboundServicePassword

The outbound service password

Followed by either...

outboundParameters

A single outbound parameters string that will be passed to the application followed optionally by count.

count

The number of application instances to start, each being passed the specified outboundParameters

or...

csvFilename

The name of a file containing 1 or more outboundParameter strings, comma-separated.

Note

Multiple call invocations are only supported on standard production cloud accounts or above.

Note

A comma-separated file containing the application instance ids of the invoked services is written when they have all completed ("appInstances.csv").

Note

For users running Python 2 under Windows, this tool does not support command line arguments containing non-ASCII characters. If you wish to specify command line arguments containing non-ASCII characters, please use Python 3.