GetDestination
POST/twirp/ttab.newswire.Delivery/GetDestination
GetDestination returns details about a destination, this never includes any sensitive credentials.
Request
- application/json
Body
Name of the destination to get.
Responses
- 200
- default
Method response
- application/json
- Schema
- Example (from schema)
Schema
Enabled - whether the destination is active or paused.
Name identifying the destination.
spec object
s3 object
Bucket to put the item in.
credentials object
ID is the access key id.
Secret is the access key secret.
Endpoint (host) to use with the S3 client. Usually if the format "s3.[region].amazonaws.com", should match the region of the S3 bucket when using AWS.
Insecure is set to true to use http instead of https when communicating with the S3 API. Should only be used for testing purposes.
Prefix to use when storing items in the bucket.
sftp object
credentials object
Possible values: [KEY_NONE, KEY_RSA, KEY_ED25519]
Password to use when connecting to the server.
PrivateKey to use when connecting to the server. Must be PEM encoded, supports RSA, DSA, ECDSA, and Ed25519 private keys in PKCS#1, PKCS#8, OpenSSL, and OpenSSH formats.
Host of the server to connect to.
HostKey in SSH format: ecdsa-sha2-nistp256 AAAAE2Vj...IHfsd/jD11tEvr8 =. Optional, will be validated against (or default to) the public key supplied by the server.
IdleTimeoutSec is the time to allow a connection to the server to stay idle before closing it. Defaults to two minutes.
Path to the diectory to upload deliveries to.
PublicKey is the public key of the keypair used to connect to the server. Generated automatically from private key, if any, and doesn't need to be provided when updating the destination.
StrictHostValidation will halt delivery if the host key on file doesn't match the one returned by the server.
User to connect as.
Possible values: [DESTINATION_UNSPECIFIED, DESTINATION_API, DESTINATION_SFTP, DESTINATION_S3]
Version of the destination.
{
"enabled": true,
"name": "string",
"spec": {
"s3": {
"bucket": "string",
"credentials": {
"id": "string",
"secret": "string"
},
"endpoint": "string",
"insecure": true,
"prefix": "string"
},
"sftp": {
"credentials": {
"generate": "KEY_NONE",
"password": "string",
"private_key": "string"
},
"host": "string",
"host_key": "string",
"idle_timout_sec": 0,
"path": "string",
"public_key": "string",
"strict_host_validation": true,
"user": "string"
}
},
"type": "DESTINATION_UNSPECIFIED",
"version": 0
}