Update the connector scheduling Beta; Added in 8.12.0

PUT /_connector/{connector_id}/_scheduling

Path parameters

  • connector_id string Required

    The unique identifier of the connector to be updated

application/json

Body Required

  • scheduling object Required
    Hide scheduling attributes Show scheduling attributes object
    • access_control object
      Hide access_control attributes Show access_control attributes object
      • enabled boolean Required
      • interval string Required

        The interval is expressed using the crontab syntax

    • full object
      Hide full attributes Show full attributes object
      • enabled boolean Required
      • interval string Required

        The interval is expressed using the crontab syntax

    • incremental object
      Hide incremental attributes Show incremental attributes object
      • enabled boolean Required
      • interval string Required

        The interval is expressed using the crontab syntax

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • result string Required

      Values are created, updated, deleted, not_found, or noop.

PUT /_connector/{connector_id}/_scheduling
PUT _connector/my-connector/_scheduling { "scheduling": { "access_control": { "enabled": true, "interval": "0 10 0 * * ?" }, "full": { "enabled": true, "interval": "0 20 0 * * ?" }, "incremental": { "enabled": false, "interval": "0 30 0 * * ?" } } }
resp = client.connector.update_scheduling( connector_id="my-connector", scheduling={ "access_control": { "enabled": True, "interval": "0 10 0 * * ?" }, "full": { "enabled": True, "interval": "0 20 0 * * ?" }, "incremental": { "enabled": False, "interval": "0 30 0 * * ?" } }, )
const response = await client.connector.updateScheduling({ connector_id: "my-connector", scheduling: { access_control: { enabled: true, interval: "0 10 0 * * ?", }, full: { enabled: true, interval: "0 20 0 * * ?", }, incremental: { enabled: false, interval: "0 30 0 * * ?", }, }, });
response = client.connector.update_scheduling( connector_id: "my-connector", body: { "scheduling": { "access_control": { "enabled": true, "interval": "0 10 0 * * ?" }, "full": { "enabled": true, "interval": "0 20 0 * * ?" }, "incremental": { "enabled": false, "interval": "0 30 0 * * ?" } } } )
$resp = $client->connector()->updateScheduling([ "connector_id" => "my-connector", "body" => [ "scheduling" => [ "access_control" => [ "enabled" => true, "interval" => "0 10 0 * * ?", ], "full" => [ "enabled" => true, "interval" => "0 20 0 * * ?", ], "incremental" => [ "enabled" => false, "interval" => "0 30 0 * * ?", ], ], ], ]);
curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d '{"scheduling":{"access_control":{"enabled":true,"interval":"0 10 0 * * ?"},"full":{"enabled":true,"interval":"0 20 0 * * ?"},"incremental":{"enabled":false,"interval":"0 30 0 * * ?"}}}' "$ELASTICSEARCH_URL/_connector/my-connector/_scheduling"
client.connector().updateScheduling(u -> u .connectorId("my-connector") .scheduling(s -> s .accessControl(a -> a .enabled(true) .interval("0 10 0 * * ?") ) .full(f -> f .enabled(true) .interval("0 20 0 * * ?") ) .incremental(i -> i .enabled(false) .interval("0 30 0 * * ?") ) ) ); 
{ "scheduling": { "access_control": { "enabled": true, "interval": "0 10 0 * * ?" }, "full": { "enabled": true, "interval": "0 20 0 * * ?" }, "incremental": { "enabled": false, "interval": "0 30 0 * * ?" } } }
{ "scheduling": { "full": { "enabled": true, "interval": "0 10 0 * * ?" } } }
Response examples (200)
{ "result": "updated" }