Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to import only an endpoint to replicate for do this this work
repctl -d /data/folder importrepository json_file=endpoint.json
But I need do that using an API method.
Thanks
Hi @lguevara ,
If you want to create a new endpoint, please try using the ImportAll API.
Regards,
Desmond
Hello @lguevara ,
The API PatchEndpoint can be used to modify an endpoint definition.
Hope this helps.
John.
Hi @john_wang ,
In this case I have the endpoint definition in a file .json like:
{
"name": "endpoint_name",
"cmd.replication_definition": {
"databases": [
{
"name": "endpoint_name_s3",
"role": "TARGET",
"is_licensed": true,
"type_id": "S3_COMPONENT_TYPE",
"db_settings": {
"$type": "Amazons3Settings",
"csvStringEscape": "\"",
"cdcMaxBatchInterval": 5,
"bucketName": "buckets3",
"s3Region": "AUTO_DETECT",
"s3AccessKey": "XXXXXXXXXXXXXX",
"s3SecretKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"bucketFolder": "path/",
"byteNotFixedLenType": true
},
"override_properties": {}
}
]
},
"_version": {
"version": "2024.11.0.177",
"version_major": 2024,
"version_minor": 11,
"version_revision": 177,
"fips": 0
},
"description": "Host name"
}
And I want to create a new endpoint in another enviroment using this definition, then I want to do this using a method API.
Thanks.
Hi @lguevara ,
If you want to create a new endpoint, please try using the ImportAll API.
Regards,
Desmond