Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Query to get all REST Type of Connections

harishyara
Regular Contributor
Regular Contributor

Hello All,

What is the query to get all the REST type of connections and also need to update  below config in ConfigJSON with below syntax for all the REST type of connections using custom query. Please help me with the syntax. @rushikeshvartak @naveenss 

{
"connectionTimeoutConfig": {
"timeout": 300,
"retryWait": 500
}
}
5 REPLIES 5

naveenss
All-Star
All-Star

Hi @harishyara 

please try with the below select statement.

select * from externalconnattvalue where connectiontype in (select EXTERNALCONNECTIONKEY from externalconnection where EXTERNALCONNECTIONTYPE in (select EXTERNALCONNECTIONTYPEKEY from externalconnectiontype where connectiontype like '%REST%')) and attributekey='ConfigJson'
Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

pmahalle
All-Star
All-Star

Hi @harishyara ,

Use below query to get all the connection of type REST present.

select EXTERNALCONNECTIONTYPE, CONNECTIONNAME from externalconnection where EXTERNALCONNECTIONTYPE =30

Make sure to execute this query through analytics and not in data analyzer as this table is not exposed in Data Analyzer.


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

Sahaanaa08
New Contributor II
New Contributor II

Hi @pmahalle Where should i find all columns which belongs "externalconnection" table and "jobs" related tables inside saviynt. is thr anyother way apart from data analyzer.

naveenss
All-Star
All-Star

@harishyara below is the sample update statement as well. let me know if this helps!

UPDATE externalconnattvalue ex,
    externalconnection ext,
    externalconnectiontype et 
SET 
    ex.attributevalue = '{\"connectionTimeoutConfig\": {\"timeout\": 300,\"retryWait\": 500}}'
WHERE
    ex.connectiontype=ext.externalconnectionkey
        AND ext.externalconnectiontype = et.externalconnectiontypekey
        AND et.connectiontype = 'REST'
        AND ex.attributekey = 'ConfigJson';
Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

harishyara
Regular Contributor
Regular Contributor

@naveenss above update statement worked many thanks!! Naveen.

Regards,

Harish