{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To update the details of a destination, send a PATCH request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.","properties":{"path":{"type":"object","properties":{"destination_uuid":{"type":"string","examples":["1a64809f-1708-48ee-a742-dec8d481b8d1"],"description":"A unique identifier for a destination."}},"required":["destination_uuid"],"additionalProperties":false},"body":{"$ref":"#/definitions/destination_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"destination_request":{"type":"object","required":["config","type"],"properties":{"name":{"type":"string","description":"destination name","examples":["managed_opensearch_cluster"]},"type":{"type":"string","enum":["opensearch_dbaas","opensearch_ext"],"description":"The destination type. `opensearch_dbaas` for a DigitalOcean managed OpenSearch\ncluster or `opensearch_ext` for an externally managed one.\n"},"config":{"$ref":"#/definitions/opensearch_config_request"}}},"opensearch_config_request":{"type":"object","required":["endpoint"],"properties":{"credentials":{"type":"object","description":"Credentials for an OpenSearch cluster user. Optional if `cluster_uuid` is passed.","properties":{"username":{"type":"string","examples":["username"]},"password":{"type":"string","examples":["password"]}}},"endpoint":{"type":"string","description":"host of the OpenSearch cluster","examples":["example.com"]},"cluster_uuid":{"type":"string","description":"A unique identifier for a managed OpenSearch cluster.","examples":["85148069-7e35-4999-80bd-6fa1637ca385"]},"cluster_name":{"type":"string","description":"Name of a managed OpenSearch cluster.","examples":["managed_dbaas_cluster"]},"index_name":{"type":"string","description":"OpenSearch index to send logs to.","examples":["logs"]},"retention_days":{"type":"integer","description":"Number of days to retain logs in an OpenSearch cluster.","default":14,"examples":[14]}}}}},"name":"Update Logging Destination","id":"digitalocean.monitoring_update_destination","example":{"path":{"destination_uuid":"1a64809f-1708-48ee-a742-dec8d481b8d1"},"body":{"config":{"endpoint":"example.com"},"type":"opensearch_dbaas"}},"maxRequests":1,"summary":false}}