Create automation

POST https://caas.digicert.com/automationws/v1/automation/createAutomation
Use this endpoint to set up certificate automation for a single host.

This endpoint supports:

  • Configuring automation for an ACME automation agent (agent-based automation).
  • Configuring a sensor to automate certificate requests on load balancers (agentless automation).

Example requests and responses

Create automation

cURL

curl --location --request POST 'https://caas.digicert.com/automationws/v1/automation/createAutomation' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountId": 5153184,
    "automationActionType": "ENROLL",
    "divisionId": 677793,
    "profileName": "22jul2020 01",
    "serverLicense": 1,
    "cn": "avp1.cert-testing.com",
    "sans": "avp2.cert-testing.com,avp3.cert-testing.com",
    "serverDetails": {
        "agentLicenseKey": "FED7731D93992414",
        "ip": "172.18.172.44",
        "port": 440,
    },
    "installSettings": {
        "installationType": "AUTO_INSTALL_AFTER_APPROVAL",
        "isAlwaysOn": false
    },
     "additionalFields": {
        "keySecurityType": "STYPE_FIPS"
   }
}'

200 OK

{
    "error": null,
    "data": {
        "message": "Successfully triggered certificate automation ENROLL for IP: 172.18.172.44 and Port: 440",
        "errors": [],
        "status": {}
    }
}

Automation for SNI

cURL

curl --location --request POST 'https://caas.digicert.com/automationws/v1/automation/createAutomation' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountId": 5153184,
    "automationActionType": "ENROLL",
    "cn": "SNIParent.winthecustomer.com",
    "divisionId": 677793,
    "installSettings": {
        "installationType": "AUTO_INSTALL_AFTER_APPROVAL",
        "isAlwaysOn": false
    },
    "profileName": "24Dec2020 01",
    "serverDetails": {
        "domainName": "SNIParent.winthecustomer.com",
        "ip": "172.18.172.44",
        "managementIp": "10.100.192.246",
        "port": 440
    }
}

200 OK

{
    "error": null,
    "data": {
        "message": "Successfully triggered certificate automation ENROLL for IP: 172.18.172.44 and Port: 440",
        "errors": [],
        "status": {}
    }
}

Automation for adding SNI (Agentless)

cURL

curl --location --request POST 'https://caas.digicert.com/automationws/v1/automation/createAutomation' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountId": 5153184,
    "isSniDefault": true,
    "automationActionType": "ADD_SNI",
    "divisionId": 677793,
    "profileName": "22jul2020 01",
    "serverLicense": 1,
    "serverName": "avp1.cert-testing.com", 	
    "cn": "avp1.cert-testing.com",
    "sans": "avp2.cert-testing.com,avp3.cert-testing.com",
    "serverDetails": {
        "agentLicenseKey": "FED7731D93992414",
        "ip": "172.18.172.44",
        "virtualServerName": "/Partition2/per19",
        "port": 440,
    },
     "installSettings": {
        "installationType": "AUTO_INSTALL_AFTER_APPROVAL",
        "isAlwaysOn": false
    },
     "additionalFields": {
        "keySecurityType": "STYPE_FIPS"
   }
}'

200 OK

{
    "error": null,
    "data": {
        "message": "Successfully triggered certificate automation ENROLL for IP: 172.18.172.44 and Port: 440",
        "errors": [],
        "status": {}
    }
}

Automation for adding SNI (Agent)

cURL

curl --location --request POST 'https://caas.digicert.com/automationws/v1/automation/createAutomation' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountId": 5153184,
    "automationActionType": "ADD_SNI",
    "divisionId": 677793,
    "profileName": "22jul2020 01",
    "serverLicense": 1,
    "serverName": "avp1.cert-testing.com", 	
    "cn": "avp1.cert-testing.com",
    "sans": "avp2.cert-testing.com,avp3.cert-testing.com",
    "serverDetails": {
        "agentLicenseKey": "FED7731D93992414",
        "ip": "172.18.172.44",
        "port": 440,
    },
    "installSettings": {
        "installationType": "AUTO_INSTALL_AFTER_APPROVAL",
        "isAlwaysOn": false
    }
}'

200 OK

{
    "error": null,
    "data": {
        "message": "Successfully triggered certificate automation ENROLL for IP: 172.18.172.44 and Port: 440",
        "errors": [],
        "status": {}
    }
}

Request parameters

NameReq/OptTypeDescription
accountIdrequiredstringAccount ID.
isSniDefaultoptionalbooleanWhether Server Name Indication (SNI) is set to default for automation.
Default: true
Note: For F5 and AWS load balancers, if set to true, it will not override the settings.
automationActionTypeoptionalintegerCertificate automation type.
Default: ENROLL
Allowed values:
Values allowed for Agent/Agentless based automation:
divisionIdrequiredintegerDivision ID.
profileNameoptionalstringAutomation profile name.
serverLicenseoptionalintegerServer license number.
serverNameoptional*stringFully qualified server name.
*Required if automationActionType is selected as ADD_SNI or ADD_SNI_DUPLICATE.
Note: For Agentless automation, this parameter is only required, if the load balancer is A10.
cnoptionalstringCommon name of the certificate.
sansoptionalstringComma-separated list of additional subject alternative names (SANs) to secure with automated certificate requests.
parentOrderIdoptional*stringExisting order ID to be used for requesting a duplicate certificate.
*Required if automationActionType is selected as DUPLICATE.
additionalEmailsoptionalstringComma-separated list of additional email IDs to send certificate lifecycle notifications.
serverDetailsrequiredobjectObject with server details
.. agentLicenseKeyoptional*stringAgent license key.
*Required for ACME automation agent flow.
.. domainNameoptional*stringThe domain name that you want to configure automation for.
*Required only for SNI (having multiple profiles or certificates on same IP/Port) automation.
.. iprequiredstringThe IP address that you want to configure automation for.
.. managementIpoptional*stringManagement IP.
*Required for agentless automation flow.
For more information, see Sensor automation on F5 load balancer.
.. virtualServerNameoptional*stringName of the virtual server to automate.
*Required for agentless automation flow.
Note: This parameter is not required for AWS load balancer.
.. portrequiredintegerThe port that you want to configure automation for.
.. redirectPortoptionalintegerChange the default SSL port (443) to a custom port of your choice.
installSettingsrequiredobjectObject with installation settings.
.. installationTyperequiredstringCertificate installation type.
Certificate installation can either be on-demand or scheduled for a specific time.
.. isAlwaysOnrequiredbooleanWhether to auto-renew and install certificates.
If true, you must specify autoRenewSettings in your request.
Default: false
.. scheduleTimeoptionalintegerTime when automation starts.
Format: epoch in milliseconds.
An epoch corresponds to 0 hours, 0 minutes, and 0 seconds (00:00:00) Coordinated Universal Time (UTC) on a specific date, which varies from system to system.
Example: 1598299200000
Note: Required if the installationType is SCHEDULED_INSTALL.
.. scheduleTimeZoneoptionalstringTime zone for the automation.
Format: GMT + your timezone offset.
Example: -8#pacifictime
**Note:**Required if the installationType is SCHEDULED_INSTALL.
.. autoRenewSettingsoptionalobjectObject with auto-renew settings.
.. .. daysBeforeExpiryoptionalintegerNumber of days before expiration to renew the certificate.
Min: 1 day
Max: Less than the certificate validity
.. .. isAutoReplaceoptionalbooleanFor a revoked or missing certificate, true requests and installs the certificate on the host.
Default: false
.. .. scheduleTimeoptionalintegerTime when automatic renewal starts on the specified relative day before certificate expiry.
Format: Number of seconds (0 (00:00:00) - 86399 (23:59:59)).
Example: 82800 (23:00)
.. .. scheduleTimeZoneoptionalstringTime zone for the automation.
Format: GMT + your timezone offset.
Example:-8#pacifictime
isCertTransparentoptionalbooleanIf true, enables certificate transparency (CT) logging for the host.
Default: false
For more information, see CT log monitoring service.
additionalFieldsoptionalobjectObject with additional settings.
.. keySecurityTypeoptionalstringKey security type used on F5 load balancer.
*Required only if F5 load balancer is used.
Allowed values:
Default: STYPE_Normal

Response parameters

NameTypeDescription
errorobjectObject with error details.
dataobjectObject with response data.
.. messagestringMessage with details about successful creation.
.. errorsarrayList of errors, if any.
.. errorCodestringError code.
.. errorFieldstringThe field that is missing.
.. errorMessagestringError message if the request failed.