Updating/Adding provisioningTimeout property via Update Source Template API

I’m trying to add a property called provisioningTimeout to a source template using the Update Source Template API.

Here’s my approach so far:

  1. I first retrieve the XML template for the source using the GET Source Template API.

  2. I modify the XML to include the provisioningTimeout property in the same way I see it defined for other connectors.

  3. I then call the Update Source Template API with the modified XML.

However, when I run the update call, I receive the following error:

{
    "detailCode": "404 Not found",
    "messages": [
        {
            "locale": "en-US",
            "localeOrigin": "DEFAULT",
            "text": "The server did not find a current representation for the target resource."
        },
        {
            "locale": "und",
            "localeOrigin": "REQUEST",
            "text": "The server did not find a current representation for the target resource."
        }
    ],
    "causes": []
}

Is there a way to directly define this provisioningTimeout value in the SaaS connector code — for example, in the connector-spec.json file — or in any other configuration file, so it’s part of the connector by default?

Any guidance for either the API method or defining it directly in connector code would be appreciated.

You can try to use the Update Source (Partial) api. That just adds the one setting. The Body of the command is below:

[

{

“op”: “add”,

“path”: “/connectorAttributes/provisioningTimeout”,

“value”: 120

}

]

But if this is a for SAAS connector that you have created, the SAAS connectors will time out after 3 minutes, unless you send a res.keepAlive(). Limits | SailPoint Developer Community

I can update the value on a Source, but I want to update it on the source template of my SaaS connector.

Oh. I don’t think you can use the API for that. But you can do it in your connector-spec.json file in your SAAS connector. Add a section to one of the menu configurations in the SourceConfig area.

{
  "type": "section",
  "sectionTitle": "Additional Settings",
  "sectionHelpMessage": "Provide connection parameters for additional settings",
  "items": [
    {
        "key": "provisioningTimeout",
        "label": "Provisioning Timeout",
        "type": "number",
        "required": true
    }
  ]
}

Also include a default value.

“sourceConfigInitialValues”: {
  "provisioningTimeout": 120
}

Then it will show up in the UI as: