Skip to main content

destinations

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

Overview

Namedestinations
TypeResource
Idsumologic.data_archiving.destinations

Fields

The following fields are returned by SELECT queries:

Data archiving destination object requested.

NameDatatypeDescription
idstringUnique identifier for the data archiving destination. (example: 1)
destination_namestringName of the data archiving destination. (example: my-archive-destination) (wire: destinationName)
created_atstring (date-time)Creation timestamp in UTC in [RFC3339](https:​//tools.ietf.org/html/rfc3339) format. (example: 2018-10-16T09:10:00.000Z) (wire: createdAt)
created_bystringIdentifier of the user who created the resource. (example: 0000000006743FDD) (wire: createdBy)
destination_configobject (wire: destinationConfig)
modified_atstring (date-time)Last modification timestamp in UTC. (example: 2018-10-16T09:10:00.000Z) (wire: modifiedAt)
modified_bystringIdentifier of the user who last modified the resource. (example: 0000000006743FE8) (wire: modifiedBy)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, regionGet a data archiving destination by the given identifier.
listselectregionlimit, tokenGet a list of all data archiving destinations configured for installed collectors.
createinsertregion, destination_name, destination_configCreate a new data archiving destination.
updateupdateid, region, destination_config, destination_nameUpdate a data archiving destination by the given identifier.
deletedeleteid, regionDelete an existing data archiving destination with the given identifier.

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
idstringIdentifier of the data archiving destination to delete. (example: 1)
regionstringSumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT)
limitinteger (int32)Limit the number of destinations returned in the response. The number of destinations returned may be less than the limit.
tokenstringContinuation token to get the next page of results. A page object with the next continuation token is returned in the response body. Subsequent GET requests should specify the continuation token to get the next page of results. token is set to null when no more pages are left.

SELECT examples

Get a data archiving destination by the given identifier.

SELECT
id,
destination_name,
created_at,
created_by,
destination_config,
modified_at,
modified_by
FROM sumologic.data_archiving.destinations
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;

INSERT examples

Create a new data archiving destination.

INSERT INTO sumologic.data_archiving.destinations (
destination_name,
destination_config,
region
)
SELECT
'{{ destination_name }}' /* required */,
'{{ destination_config }}' /* required */,
'{{ region }}'
RETURNING
id,
destination_name,
created_at,
created_by,
destination_config,
modified_at,
modified_by
;

UPDATE examples

Update a data archiving destination by the given identifier.

UPDATE sumologic.data_archiving.destinations
SET
destination_name = '{{ destination_name }}',
destination_config = '{{ destination_config }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set
AND destination_config = '{{ destination_config }}' --required
AND destination_name = '{{ destination_name }}' --required
RETURNING
id,
destination_name,
created_at,
created_by,
destination_config,
modified_at,
modified_by;

DELETE examples

Delete an existing data archiving destination with the given identifier.

DELETE FROM sumologic.data_archiving.destinations
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set
;