PATCH
/
waap
/
v1
/
domains
/
{domain_id}
/
api-discovery
/
settings
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
response = client.waap.domains.api_discovery.update_settings(
    domain_id=0,
)
print(response.description_file_location)
{
  "descriptionFileLocation": "<string>",
  "descriptionFileScanEnabled": true,
  "descriptionFileScanIntervalHours": 123,
  "trafficScanEnabled": true,
  "trafficScanIntervalHours": 123
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

domain_id
integer
required

The domain ID

Body

application/json

Request model for updating the API discovery settings

Response

200
application/json

Successful Response

Response model for the API discovery settings