SetDestination
POST/twirp/ttab.newswire.Delivery/SetDestination
SetDestination creates or updates a destination.
Request
- application/json
Body
Enabled - whether the destination should be active or paused.
Possible values: [FORMAT_UNSPECIFIED, FORMAT_TTNINJS, FORMAT_NEWSML]
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.
Title describing the destination.
Possible values: [DESTINATION_UNSPECIFIED, DESTINATION_API, DESTINATION_SFTP, DESTINATION_S3]
Responses
- 200
- default
Method response
- application/json
- Schema
- Example (from schema)
Schema
PublicKey of the keypair that will be used to connect to the server.
{
"public_key": "string"
}