The VMware Telco Cloud Automation provides APIs for debugging or updating the default certificate observability options. Run the following API on the relevant VMware Telco Cloud Automation Manager (TCA-M) or Control Plane (TCA-CP) instance.

API

Global Settings API

PUT https://<TCA_M | TCA_CP>/admin/hybridity/api/global/settings/<namespace>/<option>
Note:

This API only returns options if you have previously configured any option. If not, by default it will be empty.

Options

Namespace

Option

Description

Sample Request

CertObs

refreshViewSchedule

**Applicable only on TCA-Manager.

Cron expression for deciding the frequency of refreshing the materialized view. Default is "0 */5 * * * ?" (every 5 minutes).

{ "value": "0 */5 * * * ?" }

CertObs

default_gracePeriodHrs

Grace period (in hours). Certificate observability service will report "Expiring" status if the certificate for any component expires within the grace period. Default value is "2190" (3 months), and the minimum value is "168" (1 week).

{ "value": "3600" }

CertObs

default_cronExpression

Cron expression for deciding the frequency at which certificate observability service scans all the endpoints. Default is "0 0 * * * ?" (every hour)

Cron Syntax:

http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html

{ "value": "0 */2 * * * ?" }

Apart from the above mentioned options, you can also configure for various endpoint types, as listed in the following table.

Namespace

Option

Description

Sample Request

CertObs

<endpointType>_gracePeriodHrs

Grace period (in hours). Certificate observability service will report "Expiring" status if the certificate for all components of type <endpointType> expires within the grace period. Default value is "2190" (3 months), and the minimum value is "168" (1 week).

This value will override the default_gracePeriodHrs (if provided).

Accepted values for <endpointType> are: [vcenter, nsx, harbor, vro, airgap, tca_cp, syslog, vrli, kubernetes]. Example, "vcenter_gracePeriodHrs"

{ "value": "2800" }

CertObs

<endpointType>_cronExpression

{ "value": "0 */2 * * * ?" }

Sample cUrl command to update the ` default_gracePeriodHrs`:
curl --location --request PUT 'https://<TCA-M | TCA-CP>/admin/hybridity/api/global/settings/CertObs/default_gracePeriodHrs' \
--header 'Content-Type: application/json' \
--data-raw '{  
  "value": "1800"
}'

// Sample response on successful request.

{"isSuccess":true,"status":"SUCCESS","httpStatusCode":200}

Sample cUrl command to get the user configured `refreshViewSchedule` value:

curl --location --request GET 'https://<TCA-M | TCA-CP>/admin/hybridity/api/global/settings/CertObs/refreshViewSchedule' \
--header 'Content-Type: application/json'

// Sample response on successful request.  

{    
      "name": "refreshViewSchedule",    
      "value": "0 *\/5 * * * ?",    
      "namespace": "CertObs"
}

Sample cUrl command to update the `vcenter_cronExpression`:

curl --location --request PUT 'https://<TCA-M | TCA-CP>/admin/hybridity/api/global/settings/CertObs/vcenter_cronExpression' \
--header 'Content-Type: application/json' \
--data-raw '{  
  "value": "0 */2 * * * ?"
}'

// Sample response on successful request.

{"isSuccess":true,"status":"SUCCESS","httpStatusCode":200}