Skip to main content

test

Creates, updates, deletes, gets or lists a test resource.

Overview

Nametest
TypeResource
Idsumologic.connections.test

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
testConnectionexecregion, name, typefunctionalities, connectionIdTest a new connection url is valid and can connect.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)
connectionIdstringUnique identifier of an existing connection to test. It should be provided when the request body of an existing connection contains masked authorization headers. If not provided, the authorization headers will not be correctly unmasked, and the test may fail due to unauthorized access. (example: 0000000000123ABC)
functionalitiesarrayA comma-separated functionalities of webhook payload to test. Acceptable values: alert, resolution. (example: alert,resolution)

Lifecycle Methods

Test a new connection url is valid and can connect.

EXEC sumologic.connections.test.testConnection 
@region='{{ region }}' --required,
@functionalities='{{ functionalities }}',
@connectionId='{{ connectionId }}'
@@json=
'{
"type": "{{ type }}",
"name": "{{ name }}",
"description": "{{ description }}"
}'
;