Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

"credentials"/"client_id" - the recipient, for which we should have a certificate imported in GPG


Including Sink Definitions

The Distribution Profile can include other sink definitions and redefine their parameters. For example if we have a file named "test_sinks.json" in eagle/estar/tpe/dynamic/metadata/distributions/ with the following content:

Code Block
languagejs
themeDJango
titleSample Include File
linenumberstrue
{
"sinks": {
    "sftp_sink": {
	"type":"SFTP",
	"credentials" : "test_cred/test_credentials",
	"cfg" : {
		"host":"sftp.eagleinvsys.com",
		"port":22,
		"location" : "client1/extract",
		"encryption_policy" :  "test_encryption_policy/enc_policy1",
		"compression_codec": "GZIP"
	}
    }
 }
}


We can include it into a policy file "send_to_sftp_profile.json" as:

Code Block
languagejs
themeDJango
titleDistribution Profile With Include
linenumberstrue
{
	"include": ["test_sinks.json"],
	
	"data_sinks": [{
				"sink" : "sftp_sink"
	}
}