Skip to content

Create a Server Sync Job

Request

Creates a server sync job for an Active Directory connection

Security
bearerAuth
Path
team_namestringrequired

The name of your Team

ad_connection_idstringrequired

The UUID of an AD connection

Bodyapplication/json
access_address_attributestring

The AD attribute that defines an IP address or DNS name for a server. This is used by the Gateway to connect to discovered servers.

Example:"access_address"
additional_attribute_mappingobject

Additional AD attributes used to map information to specified labels

alt_names_attributesstring

The AD attribute that defines alternative hostnames or DNS entries. These are used to resolve discovered servers.

Example:"alt_name"
bastion_attributestring

The AD attribute that defines the bastion host for a server. Clients use this bastion to tunnel traffic to discovered servers.

Example:"bastion"
frequencystring

Indicates how often the server sync job runs. Possible values: 1, 6, 12, 24.

Example:24
host_name_attributestring

The AD attribute that defines the hostname for a server. This is used to identify discovered servers.

Example:"host_name"
idstring, (regex)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...

The UUID of the server sync job

Example:"229a1621-a1g2-6366-q84d-da4vf2e76t2b"
is_activeboolean

If true, enables the server sync job

is_guidboolean

If true, the AD attribute is identified as a Globally Unique Identifier (GUID)

namestring

The name of the server sync job

Example:"Server Sync Job - 1"
os_attributestring

The AD attribute that defines the operating system of discovered servers

Example:"os"
rule_assignmentsobject

The rules used to assign discovered servers to Projects

start_hour_utcstring

A UTC timestamp that indicates the hour range when the server sync job runs. Only used if frequencyis set to 24.

Example:"2022-08-24T14:15:22Z"
curl -i -X POST \
  'https://app.scaleft.com/v1/teams/{team_name}/integrations/ad_connections/{ad_connection_id}/task_settings' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "access_address_attribute": "access_address",
    "additional_attribute_mapping": {
      "label": "region",
      "value": "server_region"
    },
    "alt_names_attributes": "alt_name",
    "bastion_attribute": "bastion",
    "frequency": 24,
    "host_name_attribute": "host_name",
    "id": "229a1621-a1g2-6366-q84d-da4vf2e76t2b",
    "is_active": true,
    "is_guid": true,
    "name": "Server Sync Job - 1",
    "os_attribute": "os",
    "rule_assignments": {
      "base_dn": "string",
      "ldap_query_filter": "string",
      "priority": "string",
      "project_id": "string"
    },
    "start_hour_utc": "2022-08-24T14:15:22Z"
  }'

Responses

Created

Bodyapplication/json
access_address_attributestring

The AD attribute that defines an IP address or DNS name for a server. This is used by the Gateway to connect to discovered servers.

Example:"access_address"
additional_attribute_mappingobject

Additional AD attributes used to map information to specified labels

alt_names_attributesstring

The AD attribute that defines alternative hostnames or DNS entries. These are used to resolve discovered servers.

Example:"alt_name"
bastion_attributestring

The AD attribute that defines the bastion host for a server. Clients use this bastion to tunnel traffic to discovered servers.

Example:"bastion"
frequencystring

Indicates how often the server sync job runs. Possible values: 1, 6, 12, 24.

Example:24
host_name_attributestring

The AD attribute that defines the hostname for a server. This is used to identify discovered servers.

Example:"host_name"
idstring, (regex)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...

The UUID of the server sync job

Example:"229a1621-a1g2-6366-q84d-da4vf2e76t2b"
is_activeboolean

If true, enables the server sync job

is_guidboolean

If true, the AD attribute is identified as a Globally Unique Identifier (GUID)

namestring

The name of the server sync job

Example:"Server Sync Job - 1"
os_attributestring

The AD attribute that defines the operating system of discovered servers

Example:"os"
recent_task_resultobject(ADServerSyncResults)read-only

The results from the most recent server sync job

rule_assignmentsobject

The rules used to assign discovered servers to Projects

start_hour_utcstring

A UTC timestamp that indicates the hour range when the server sync job runs. Only used if frequencyis set to 24.

Example:"2022-08-24T14:15:22Z"
Response
{ "access_address_attribute": "access_address", "additional_attribute_mapping": { "label": "region", "value": "server_region" }, "alt_names_attributes": "alt_name", "bastion_attribute": "bastion", "frequency": 24, "host_name_attribute": "host_name", "id": "229a1621-a1g2-6366-q84d-da4vf2e76t2b", "is_active": true, "is_guid": true, "name": "Server Sync Job - 1", "os_attribute": "os", "recent_task_result": { "ad_task_settings_id": "229a1621-a1g2-6366-q84d-da4vf2e76t2b", "ad_task_settings_name": "Server Sync Job - 1", "ad_test_request_id": "string", "created_at": "2022-08-25T00:00:00Z", "id": "p05ty0e4-a7tv-erp0-r6ynh-robt937s84hf", "rules_summary_status": "done", "status": { … }, "task_state": "done", "updated_at": "2022-08-25T00:10:00Z" }, "rule_assignments": { "base_dn": "string", "ldap_query_filter": "string", "priority": "string", "project_id": "string" }, "start_hour_utc": "2022-08-24T14:15:22Z" }