Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
lguevara
Partner - Creator II
Partner - Creator II

With QEM Rest API do importrepository

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

Labels (3)
1 Solution

Accepted Solutions
DesmondWOO
Support
Support

Hi @lguevara ,

If you want to create a new endpoint, please try using the ImportAll API.

Regards,
Desmond

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

3 Replies
john_wang
Support
Support

Hello @lguevara ,

The API PatchEndpoint can be used to modify an endpoint definition.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
lguevara
Partner - Creator II
Partner - Creator II
Author

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.

 

 

DesmondWOO
Support
Support

Hi @lguevara ,

If you want to create a new endpoint, please try using the ImportAll API.

Regards,
Desmond

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!