{"type":"api","title":"Delete data destination","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/b95772dc6c621d9842faced8610ee58b0cb9cb02/ed506c95-6866-3a66-a6b3-5338f7cb6c21","info":{"title":"Crosswork Data Gateway Destination API","description":"This document details Crosswork Data Gateway APIs you can use to create, update and delete CDG data destinations","version":"7.1.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"}},"security":[{"bearerAuth":[]}],"tags":[{"name":"Destination operations","description":"Get/Set Destinations in CDG"}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/cdg_destination_dg_api_overview.md"}},"swagger":"2.0","basePath":"/crosswork/dg-manager/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer Auth Token"}}},"spec":{"description":"Delete one or more data destinations by providing an array of destination uuid or all attributes of each destination.","summary":"Delete data destination","operationId":"DeleteDestination","deprecated":false,"produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"Content-Type","in":"header","required":true,"type":"string","description":"application/json"},{"name":"Body","in":"body","required":true,"description":"Request payload for deleting destination","schema":{"title":"DeleteDestinationRequest","example":{"providers":[{"uuid":"5fa5d53e-e895-4b7a-93b5-cb417a2c6c8e","name":"kafka-2","connectivity_info":[{"type":"ROBOT_MSVC_TRANS_KAFKA","ipaddrs":[{"inet_af":"ROBOT_INET_ADDR_TYPE_v4","inet_addr":"10.14.0.150","mask":"20"}],"port":9192}],"family":"ROBOT_PROVIDER_DESTINATION","properties":{"BATCH_SIZE_CONFIG":"6400000","COMPRESSION_TYPE_CONFIG":"snappy","DESTINATION_TYPE":"destination_type_kafka","ENCODING":"gpbkv","IS_SECURITY_ENABLED":"false","IS_SYSTEM_DEFINED":"false","LINGER_MS_CONFIG":"5000","MAX_REQUEST_SIZE_CONFIG":"1000000","BUFFER_MEMORY_CONFIG":"52428800","REQUEST_TIMEOUT_CONFIG":"30"}}]},"type":"object","properties":{"providers":{"type":"array","items":{"title":"KafkaDestination","example":{"name":"kafka-1","connectivity_info":[{"type":"ROBOT_MSVC_TRANS_KAFKA","ipaddrs":[{"inet_af":"ROBOT_INET_ADDR_TYPE_v4","inet_addr":"10.14.0.150","mask":"20"}],"port":9192}],"family":"ROBOT_PROVIDER_DESTINATION","properties":{"BATCH_SIZE_CONFIG":"6400000","COMPRESSION_TYPE_CONFIG":"snappy","DESTINATION_TYPE":"destination_type_kafka","ENCODING":"gpbkv","IS_SECURITY_ENABLED":"false","IS_SYSTEM_DEFINED":"false","LINGER_MS_CONFIG":"3000","MAX_REQUEST_SIZE_CONFIG":"1000000","BUFFER_MEMORY_CONFIG":"52428800","REQUEST_TIMEOUT_CONFIG":"30"}},"type":"object","properties":{"name":{"type":"string"},"connectivity_info":{"type":"array","items":{"title":"ConnectivityInfo","example":{"type":"ROBOT_MSVC_TRANS_KAFKA","ipaddrs":[{"inet_af":"ROBOT_INET_ADDR_TYPE_v4","inet_addr":"10.14.0.131","mask":"24"}],"port":30993},"type":"object","properties":{"type":{"type":"string"},"ipaddrs":{"type":"array","items":{"title":"Ipaddr","example":{"inet_af":"ROBOT_INET_ADDR_TYPE_v4","inet_addr":"10.14.0.131","mask":"24"},"type":"object","properties":{"inet_af":{"type":"string"},"inet_addr":{"type":"string"},"mask":{"type":"string"}},"required":["inet_af","inet_addr","mask"],"$$ref":"#/definitions/Ipaddr"}},"port":{"type":"integer","format":"int32"}},"required":["type","ipaddrs","port"],"$$ref":"#/definitions/ConnectivityInfo"}},"family":{"type":"string"},"properties":{"title":"KafkaProperties","example":{"AUTH_TYPE":"mutual","BATCH_SIZE_CONFIG":"6400000","COMPRESSION_TYPE_CONFIG":"snappy","DESTINATION_TYPE":"destination_type_kafka","ENCODING":"gpbkv","IS_SECURITY_ENABLED":"true","IS_SYSTEM_DEFINED":"true","LINGER_MS_CONFIG":"5000","MAX_REQUEST_SIZE_CONFIG":"100000000","BUFFER_MEMORY_CONFIG":"52428800","REQUEST_TIMEOUT_CONFIG":"30"},"type":"object","properties":{"AUTH_TYPE":{"type":"string","enum":["mutual","server"]},"BATCH_SIZE_CONFIG":{"type":"string"},"COMPRESSION_TYPE_CONFIG":{"type":"string"},"DESTINATION_TYPE":{"type":"string"},"ENCODING":{"type":"string"},"IS_SECURITY_ENABLED":{"type":"string"},"IS_SYSTEM_DEFINED":{"type":"string"},"LINGER_MS_CONFIG":{"type":"string"},"MAX_REQUEST_SIZE_CONFIG":{"type":"string"},"REQUEST_TIMEOUT_CONFIG":{"type":"string"}},"required":["BATCH_SIZE_CONFIG","COMPRESSION_TYPE_CONFIG","DESTINATION_TYPE","ENCODING","IS_SECURITY_ENABLED","IS_SYSTEM_DEFINED","LINGER_MS_CONFIG","MAX_REQUEST_SIZE_CONFIG","BUFFER_MEMORY_CONFIG","REQUEST_TIMEOUT_CONFIG"],"$$ref":"#/definitions/KafkaProperties"}},"required":["name","connectivity_info","family","properties"],"$$ref":"#/definitions/KafkaDestination"}}},"required":["providers","uuid"],"$$ref":"#/definitions/DeleteDestinationRequest"}}],"responses":{"200":{"description":"OK","schema":{"title":"DeleteDestinationResponse","example":{"job_id":"9135a84e-3c08-4276-9976-9de5ea544978","state":"JOB_COMPLETED","type":"Delete Destination","completion_time":"1627153526","creation_time":"1627153526","created_by":"admin"},"type":"object","properties":{"job_id":{"type":"string"},"state":{"type":"string"},"type":{"type":"string"},"completion_time":{"type":"string"},"creation_time":{"type":"string"},"created_by":{"type":"string"}},"required":["job_id","state","type","completion_time","creation_time","created_by"],"$$ref":"#/definitions/DeleteDestinationResponse"},"headers":{}},"500":{"description":"Internal Server Error"}},"security":[],"__originalOperationId":"DeleteDestination","method":"delete","path":"/destinations"}}