Configure server services status - BlueCat Integrity - 9.3.0

Address Manager API Guide

Locale
English
Product name
BlueCat Integrity
Version
9.3.0

Return the DNS/DHCP server service configuration status of the configuration task that you created using the configureServerService API method.

API method: GET /v1/getServerServicesConfigurationStatus
Attention: You must be an administrator to use this API.
Output/Response:

Returns a JSON string of the overall configuration status and the configuration status of individual services.

The request section displays a list of the object IDs of the DNS/DHCP Servers to be configured with services using the configureServerService API method.

The status section displays the status of the configuration. The deployment status can be STARTED, FINISHED, or TOKEN_NOT_FOUND.
Note: If the deployment task token passed is invalid or does not exist, only the status section is returned with the message TOKEN_NOT_FOUND.

The response section contains specific information about the services including the object ID of the DNS/DHCP Server being configured, the status of the overall DNS/DHCP Server service configuration, the status of the individual service configurations, and the result of the service configuration.

The error section lists out any errors encountered during the configuration. If the services configured successfully, the section displays an empty list.

The following is an example of a returned string:

{
    "request":[1000000, 1000001, 1000002],
    "status": "STARTED/FINISHED/TOKEN_NOT_FOUND",
    "response":
        {
            "servers":[
                {
                    "id": 1000000,
                    "status": "QUEUED/STARTED/FINISHED",
                    "services": [
                        {
                          "interfaces": 
                              {
                                "status": "SUCCEEDED/FAILED",
                                "error": ""
                              },
                          "ntp":                            
                              {
                                "status": "SUCCEEDED/FAILED",
                                "error": ""
                              },
                          "firewall":
                              {
                                "status": "SUCCEEDED/FAILED",
                                "error": ""
                              },
                          "syslog":
                              {
                                "status": "SUCCEEDED/FAILED",
                                "error": ""
                              },
                        }
                    ],
                    "error": ""
                  },
                  {
                    "id": 1000001,
                    "status": "QUEUED/STARTED/FINISHED",
                    "services": [
                        {
                          "syslog":
                              {
                                "status": "SUCCEEDED/FAILED",
                                "error": ""
                              }
                        }
                    ],
                    "error": ""
                  },
                  {
                    "id": 1000002,
                    "status": "QUEUED/STARTED/FINISHED",
                    "services": [
                        {
                          "ntp":                            
                              {
                                "status": "SUCCEEDED/FAILED",
                                "error": ""
                              },
                          "firewall":
                              {
                                "status": "SUCCEEDED/FAILED",
                                "error": ""
                              },
                        }
                    ],
                    "error": ""
                }
            ]
        }
} 

When configuring large amounts of DNS/DHCP Servers, the configureServerServices API method configures 20 DNS/DHCP Servers at a time. Once a DNS/DHCP Server has finished configuring, the next DNS/DHCP Server is added to the end of the list. You can use the getServerServicesConfigurationStatus API method to retrieve the updated list of DNS/DHCP Servers that are currently being configured.