Skip to main content

destinations

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

Overview

Namedestinations
TypeResource
Idsumologic.logs_data_forwarding.destinations

Fields

The following fields are returned by SELECT queries:

Data forwarding destination object requested.

NameDatatypeDescription
idstringThe unique identifier of the data forwarding destination. (example: 1)
accessKeyIdstringThe AWS Access ID to access the S3 bucket. (example: accessKeyId)
authenticationModestringAWS IAM authentication method used for access. Possible values are: 1. AccessKey 2. RoleBased (example: RoleBased)
bucketNamestringThe name of the Amazon S3 bucket. (pattern: (?!(^xn--|-s3alias$))^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$, example: df-bucket, x-pattern-message: Must be a valid AWS S3 Bucket name.)
createdAtstring (date-time)Creation timestamp in UTC in RFC3339 format. (example: 2018-10-16T09:10:00Z)
createdBystringIdentifier of the user who created the resource. (example: 0000000006743FDD)
descriptionstringDescription of the S3 data forwarding destination.
destinationNamestringName of the S3 data forwarding destination. (example: df-destination)
enabledbooleanTrue if the destination is Active.
encryptedbooleanEnable S3 server-side encryption.
invalidatedBySystembooleanTrue if invalidated by the system.
modifiedAtstring (date-time)Last modification timestamp in UTC. (example: 2018-10-16T09:10:00Z)
modifiedBystringIdentifier of the user who last modified the resource. (example: 0000000006743FE8)
regionstringThe region where the S3 bucket is located. (example: us-east-1)
roleArnstringThe AWS Role ARN to access the S3 bucket. (example: roleArn)
secretAccessKeystringThe AWS Secret Key to access the S3 bucket. (example: secretAccessKey)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getDataForwardingDestinationselectid, regionGet an S3 data forwarding destination by the given identifier.
getDataForwardingBucketsselectregionlimit, tokenGet a list of all Amazon S3 data forwarding destinations.
createDataForwardingBucketinsertregion, data__authenticationModeCreate a new Amazon S3 data forwarding destination.
deleteDataForwardingBucketdeleteid, regionDelete an existing Amazon S3 data forwarding destination with the given identifier.
UpdateDataForwardingBucketexecid, region, authenticationModeUpdate an S3 data forwarding destination by 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 forwarding destination to update. (example: 1)
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)
limitinteger (int32)Limit the number of data forwarding destinations returned in the response. The number of data forwarding 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 an S3 data forwarding destination by the given identifier.

SELECT
id,
accessKeyId,
authenticationMode,
bucketName,
createdAt,
createdBy,
description,
destinationName,
enabled,
encrypted,
invalidatedBySystem,
modifiedAt,
modifiedBy,
region,
roleArn,
secretAccessKey
FROM sumologic.logs_data_forwarding.destinations
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a new Amazon S3 data forwarding destination.

INSERT INTO sumologic.logs_data_forwarding.destinations (
data__destinationName,
data__description,
data__authenticationMode,
data__accessKeyId,
data__secretAccessKey,
data__roleArn,
data__region,
data__encrypted,
data__enabled,
data__bucketName,
region
)
SELECT
'{{ destinationName }}',
'{{ description }}',
'{{ authenticationMode }}' /* required */,
'{{ accessKeyId }}',
'{{ secretAccessKey }}',
'{{ roleArn }}',
'{{ region }}',
{{ encrypted }},
{{ enabled }},
'{{ bucketName }}',
'{{ region }}'
RETURNING
id,
accessKeyId,
authenticationMode,
bucketName,
createdAt,
createdBy,
description,
destinationName,
enabled,
encrypted,
invalidatedBySystem,
modifiedAt,
modifiedBy,
region,
roleArn,
secretAccessKey
;

DELETE examples

Delete an existing Amazon S3 data forwarding destination with the given identifier.

DELETE FROM sumologic.logs_data_forwarding.destinations
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Update an S3 data forwarding destination by the given identifier.

EXEC sumologic.logs_data_forwarding.destinations.UpdateDataForwardingBucket 
@id='{{ id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"destinationName": "{{ destinationName }}",
"description": "{{ description }}",
"authenticationMode": "{{ authenticationMode }}",
"accessKeyId": "{{ accessKeyId }}",
"secretAccessKey": "{{ secretAccessKey }}",
"roleArn": "{{ roleArn }}",
"region": "{{ region }}",
"encrypted": {{ encrypted }},
"enabled": {{ enabled }}
}'
;