However, if updating a rack, use
or all of
+If using + room/building name, first combination of room name or room and building + name will be used.
+ summary: Create/update + tags: + - Racks + parameters: + - name: name + type: string + in: formData + required: true + description: Rack name - must be unique within a room + - name: size + type: integer + description: In UI + in: formData + required: true + - name: rack_id + type: integer + description: >- + Required to update a rack using ID. This has highest priority to update a + rack. + in: formData + - name: room + type: string + description: Name of room - Required if changing a rack without rack_id. + in: formData + - name: building + type: string + in: formData + description: Name of building - Used when there are non-unique room names. + - $ref: '#/parameters/new_name' + - $ref: '#/parameters/room_id_post' + - $ref: '#/parameters/numbering_start_from_bottom' + - $ref: '#/parameters/first_number' + - $ref: '#/parameters/row' + - $ref: '#/parameters/manufacturer_post' + - $ref: '#/parameters/notes_post' + - $ref: '#/parameters/start_row' + - $ref: '#/parameters/start_col' + - $ref: '#/parameters/row_size' + - $ref: '#/parameters/col_size' + - $ref: '#/parameters/orientation_rack' + - $ref: '#/parameters/groups_post' + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + msg: + example: + - rack added. + - 29 + - '34' + code: + example: 0 + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + '/api/1.0/racks/{ID}/': + get: + operationId: getRacksID + description: >- + Retrieve detailed information about a specific rack including all racked + devices, assets and PDUs + summary: Get specific + tags: + - Racks + parameters: + - name: ID + type: integer + in: path + required: true + description: The ID of the rack to retrieve + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + asset_no: + example: '' + assets: + example: [] + available_u: + example: 10 + building: + example: New Haven + custom_fields: + type: array + items: + properties: + key: + example: Master Key? + notes: + example: '' + value: + example: '' + devices: + type: array + items: + $ref: '#/definitions/RackDevices' + first_number: + example: 0 + manufacturer: + example: APC Inc. + name: + example: NH-DC1-02 + notes: + example: '' + number_between_us: + example: true + numbering_start_from_bottom: + example: 'yes' + pdus: + type: array + items: + properties: + bootstrap_power: + example: 0.00 W + depth: + example: Half Depth + file_names: + example: + - /var/www/graphics/images/apc-rack-pdu-front.png + - '' + name: + example: USNHCTPDU-03 + num_ports: + example: '32' + orientation: + example: Back + pdu_id: + example: 16 + power_draw: + example: ' ' + reversed: + example: 'no' + size: + example: 1 + start_at: + example: '' + total_ports: + example: 32 + where: + example: Right + width: + example: 2520 + xpos: + example: 0 + rack_id: + example: 21 + rack_middle_option: + example: Start at + rack_url: + example: /api/api/1.0/racks/21/ + room: + example: NHDC1 + row: + example: '' + row_size: + example: 1 + size: + example: 42 + start_col: + example: 29 + start_row: + example: 10 + tags: + example: [] + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + delete: + operationId: deleteRacksID + description: >- + This API is used to delete the rack with the rack id supplied as the + required argument + summary: Delete + tags: + - Racks + parameters: + - name: ID + type: integer + in: path + required: true + description: rack id + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + deleted: + example: 'true' + id: + example: '114' + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + '/api/1.0/asset/rack/{id}/': + delete: + operationId: deleteAssetsRack + summary: Remove Asset from Rack + description: This API is used to un-rack the asset + tags: + - Racks + parameters: + - name: id + type: integer + in: path + required: true + description: Asset ID + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + deleted: + example: 'true' + id: + example: '114' + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + /api/1.0/custom_fields/rack/: + put: + operationId: putCustom_fieldsRack + description: >- + Create or update custom fields for racks. "ID" or "name" of rack is + needed even when value is not being changed + summary: Custom fields + tags: + - Racks + parameters: + - name: name + type: string + in: formData + description: name of room + - name: id + type: string + in: formData + description: Rack ID or UI > Tools > Export > Rack + - $ref: '#/parameters/key' + - $ref: '#/parameters/custom_field_type' + - $ref: '#/parameters/mandatory' + - $ref: '#/parameters/filterable' + - $ref: '#/parameters/log_for_api' + - $ref: '#/parameters/related_field_name' + - $ref: '#/parameters/add_to_picklist' + - $ref: '#/parameters/remove_from_picklist' + - $ref: '#/parameters/delete_in_use' + - $ref: '#/parameters/related_field_value_by_id' + - $ref: '#/parameters/value' + - $ref: '#/parameters/clear_value' + - $ref: '#/parameters/notes_post' + - $ref: '#/parameters/clear_notes' + - $ref: '#/parameters/bulk_fields' + - $ref: '#/parameters/multi_select' + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + msg: + example: + - custom key pair values added or updated + - 29 + - 34 - 12 (in 3nd Floor @ main office) + code: + example: 0 + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + /api/1.0/assets/: + get: + operationId: getAssets + description: Retrieve basic information about all assets + summary: Get all + tags: + - Assets + parameters: + - $ref: '#/parameters/asset_no' + - $ref: '#/parameters/serial_no' + - $ref: '#/parameters/last_updated_lt' + - $ref: '#/parameters/last_updated_gt' + - $ref: '#/parameters/first_added_lt' + - $ref: '#/parameters/first_added_gt' + - name: type + type: string + description: filter by asset type + in: query + - $ref: '#/parameters/asset_id' + - $ref: '#/parameters/service_level' + - $ref: '#/parameters/customer' + - $ref: '#/parameters/tags' + - $ref: '#/parameters/tags_and' + - $ref: '#/parameters/asset_no_contains' + - $ref: '#/parameters/custom_fields_and' + - $ref: '#/parameters/custom_fields_or' + - $ref: '#/parameters/related_device_id' + - $ref: '#/parameters/include_cols' + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + assets: + type: array + items: + $ref: '#/definitions/Assets' + limit: + example: 2 + offset: + example: 0 + total_count: + example: 209 + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + post: + operationId: postAssets + description: Create assets + summary: Create + tags: + - Assets + parameters: + - name: type + in: formData + enum: + - 'AC' + - 'Block Tile' + - 'Breaker Panel' + - 'Cable Modem' + - 'DMARC' + - 'Door' + - 'Fabric Extender' + - 'Fax Machine' + - 'Filler Panel' + - 'Monitor' + - 'Patch Panel' + - 'Patch Panel Module' + - 'Projector' + - 'Scanner' + - 'Sensor' + - 'Shredder' + - 'Software' + - 'Speaker Phone' + - 'TAP Module' + - 'Window' + description: The type of the asset. - required.To add a single element (device) to a Business Service, use the
+ device_id OR device_name parameters. ID will be used before the name.
+
To add multiple elements (devices) to a Business Service, use the
+ device_ids OR device_names parameters. ID will be used before the name
+
To add a single element (resource) to a Business Service, use the
+ resource_id, resource_name, OR resource_identifier parameters. ID will be used before the name and identifier.
+
To add multiple elements (resources) to a Business Service, use the
+ resource_ids OR resource_names parameters. ID will be used before the name
+
To add a single element (application component) to a Business Service, use the
+ appcomp_id OR appcomp_name parameters. ID will be used before the name.
+
To add multiple elements (application component) to a Business Service, use the
+ appcomp_ids OR appcomp_names parameters. ID will be used before the name
+ summary: Add element
+ tags:
+ - Business Services
+ parameters:
+ - name: businessapp_id
+ required: truw
+ type: integer
+ in: formData
+ description: The ID of an existing Business Service to add elements (devices) to.
+ - name: device_id
+ type: integer
+ in: formData
+ description: ID of an element (device) to add to the business service.
+ - name: device_name
+ type: string
+ in: formData
+ description: Name of an element (device) to add to the business service.
+ - name: device_ids
+ type: string
+ in: formData
+ description: CSV list of the IDs of elements (devices) to add to the business service.
+ - name: device_names
+ type: string
+ in: formData
+ description: CSV list of names of the elements (devices) to add to the business service.
+ - name: resource_id
+ type: integer
+ in: formData
+ description: ID of an element (resource) to add to the business service.
+ - name: resource_name
+ type: string
+ in: formData
+ description: Name of an element (resource) to add to the business service.
+ - name: resource_identifier
+ type: string
+ in: formData
+ description: Identifier of an element (resource) to add to the business service.
+ - name: resource_ids
+ type: string
+ in: formData
+ description: CSV list of the IDs of elements (resources) to add to the business service.
+ - name: resource_names
+ type: string
+ in: formData
+ description: CSV list of names of the elements (resources) to add to the business service.
+ - name: resource_identifiers
+ type: string
+ in: formData
+ description: CSV list of identifiers of the elements (resources) to add to the business service.
+ - name: appcomp_id
+ type: integer
+ in: formData
+ description: ID of an element (application component) to add to the business service.
+ - name: appcomp_name
+ type: string
+ in: formData
+ description: Name of an element (application component) to add to the business service.
+ - name: appcomp_ids
+ type: string
+ in: formData
+ description: CSV list of the IDs of elements (application components) to add to the business service.
+ - name: appcomp_names
+ type: string
+ in: formData
+ description: CSV list of names of the elements (application components) to add to the business service.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - element(s) added to business_app CRM App
+ - 11
+ - 1234, 5678
+ - true
+ - true
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ delete:
+ operationId: deletebusinessAppsElements
+ summary: Delete element
+ description: >-
+ This API is used to delete the business service element
+ tags:
+ - Business Services
+ parameters:
+ - name: businessapp_id
+ type: integer
+ description: business service id
+ in: query
+ required: true
+ - name: device_id
+ type: integer
+ description: device id of business element
+ in: query
+ - name: resource_id
+ type: integer
+ description: resource id of business element
+ in: query
+ - name: appcomp_id
+ type: integer
+ description: appcomp id of business element
+ in: query
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ uuid:
+ example: '03b30f77-1638-4d34-911e-5c63da8de9d9'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ get:
+ operationId: getbusinessAppsElements
+ description: This call will get business service elements
+ summary: Get elements
+ tags:
+ - Business Services
+ parameters:
+ - name: name
+ type: string
+ in: query
+ description: The name (case-insensitive) of the element to seach for.
+ - name: businessapp_id
+ type: integer
+ in: query
+ description: The ID of the business service the element belongs to.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ businessapp_elements:
+ type: array
+ items:
+ properties:
+ businessapp_id:
+ example: 2
+ businessapp_element_uuid:
+ example: '344316e2-409d-4bbf-b994-f4e3f152947a'
+ device_id:
+ example: 5
+ name:
+ example: 'test device'
+ orphaned:
+ example: 'no'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/businessapps/connections/{uuid}/:
+ get:
+ operationId: getbusinessAppsConnections_uuid
+ description: This call will get a business service connection
+ summary: Get a connection
+ tags:
+ - Business Services
+ parameters:
+ - name: uuid
+ type: string
+ in: path
+ required: true
+ description: The UUID of the single connection you are looking for.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ $ref: '#/definitions/businessapps_connection'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/businessapps/connections/:
+ get:
+ operationId: getbusinessAppsConnections
+ description: This call will get business service connections
+ summary: Get connections
+ tags:
+ - Business Services
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ businessapp_connections:
+ type: array
+ items:
+ properties:
+ businessapp_connection_uuid:
+ example: '344316e2-409d-4bbf-b994-f4e3f152947a'
+ from_businessapp_element_uuid:
+ example: '344316e2-409d-4bbf-b994-f4e3f152947b'
+ to_businessapp_element_uuid:
+ example: '344316e2-409d-4bbf-b994-f4e3f152947c'
+ type:
+ example: 'test'
+ labels:
+ example: 'test'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/services/:
+ get:
+ operationId: getServices
+ description: Get services
+ summary: Get
+ tags:
+ - Services
+ parameters:
+ - name: service_id
+ in: query
+ description: D42 ID of the service
+ type: string
+ required: true
+ - $ref: '#/parameters/name'
+ - $ref: '#/parameters/category'
+ - $ref: '#/parameters/vendor'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ services:
+ type: array
+ items:
+ $ref: '#/definitions/Services'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postServices
+ description: Create/update services
+ summary: Create/update
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/name'
+ - $ref: '#/parameters/display_name'
+ - $ref: '#/parameters/category'
+ - $ref: '#/parameters/service_type'
+ - $ref: '#/parameters/vendor_post'
+ - $ref: '#/parameters/description_post'
+ - $ref: '#/parameters/notes'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - service added/updated
+ - 2
+ - DisplayLinkManager
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/1.0/services/{id}/':
+ delete:
+ operationId: deleteServices
+ summary: Delete
+ description: >-
+ This API is used to delete the service with the service id supplied as
+ the required argument. Note: You will only be able to delete the service
+ if the supplied username has the correct permissions
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: path
+ format: uuid
+ description: service id
+ type: string
+ required: true
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: 114
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/service_details/:
+ get:
+ operationId: getService_details
+ description: Get service details
+ summary: Get service details
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/device_id'
+ - $ref: '#/parameters/device'
+ - $ref: '#/parameters/service_id'
+ - $ref: '#/parameters/service_detail_id'
+ - $ref: '#/parameters/user_id'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: '543'
+ service_details:
+ type: array
+ items:
+ $ref: '#/definitions/Service_details'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postService_details
+ description: Create/update service details
+ summary: Create/update service details
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/service_name'
+ - $ref: '#/parameters/service_display_name'
+ - $ref: '#/parameters/vendor_post'
+ - $ref: '#/parameters/description_post'
+ - $ref: '#/parameters/service_type'
+ - $ref: '#/parameters/category'
+ - $ref: '#/parameters/startmode'
+ - $ref: '#/parameters/state'
+ - $ref: '#/parameters/device'
+ - $ref: '#/parameters/user'
+ - $ref: '#/parameters/appcomp'
+ - $ref: '#/parameters/install_date'
+ - $ref: '#/parameters/status'
+ - $ref: '#/parameters/at_logon'
+ - $ref: '#/parameters/at_startup'
+ - $ref: '#/parameters/event_based'
+ - $ref: '#/parameters/idle_time'
+ - $ref: '#/parameters/other_trigger'
+ - $ref: '#/parameters/other_type'
+ - $ref: '#/parameters/minutes'
+ - $ref: '#/parameters/hours'
+ - $ref: '#/parameters/days'
+ - $ref: '#/parameters/weeks'
+ - $ref: '#/parameters/day_of_month'
+ - $ref: '#/parameters/month_of_year'
+ - $ref: '#/parameters/day_of_week'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - service_detail added/updated
+ - 1
+ - Reddit Tracker
+ - true
+ - true
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/1.0/service_detail/{id}/':
+ delete:
+ operationId: deleteService_details
+ summary: Delete service details
+ description: >-
+ This API is used to delete the service details with the service details id
+ supplied as the required argument. Note: You will only be able to delete
+ the service if the supplied username has the correct permissions
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: path
+ format: uuid
+ description: service detail id
+ type: string
+ required: true
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '1'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/service_ports/:
+ get:
+ operationId: getService_ports
+ description: Get service ports
+ summary: Get service ports
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: query
+ description: filter by id of the service port
+ type: string
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: '565'
+ service_ports:
+ type: array
+ items:
+ $ref: '#/definitions/Service_ports'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postService_ports
+ description: Create/update service ports
+ summary: Create/update service port
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/port'
+ - $ref: '#/parameters/device_name'
+ - $ref: '#/parameters/listening_ip'
+ - $ref: '#/parameters/description'
+ - $ref: '#/parameters/discovered_service'
+ - $ref: '#/parameters/discovered_process'
+ - $ref: '#/parameters/mapped_service'
+ - $ref: '#/parameters/remote_ips'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - service port added/updated
+ - 1
+ - '0.0.0.0:80'
+ - true
+ - true
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/1.0/service_ports/{id}/':
+ delete:
+ operationId: deleteService_ports
+ summary: Delete service port
+ description: >-
+ This API is used to delete the service port with the service port id
+ supplied as the required argument. Note: You will only be able to delete
+ the service port if the supplied username has the correct permissions
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: path
+ format: uuid
+ description: service port id
+ type: string
+ required: true
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '1'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/listener_connection_stats/:
+ get:
+ operationId: getListener_connection_stats
+ description: Get listener connection statistics
+ summary: Get listener connection statistics
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/listener_device_name'
+ - $ref: '#/parameters/port'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ client_ips:
+ example: 76.127.207.96
+ client_stats:
+ type: array
+ items:
+ $ref: '#/definitions/Client_stats'
+ description:
+ example: ''
+ id:
+ example: 2207
+ listener_device_id:
+ example: 2440
+ listener_device_name:
+ example: prod-retail-webfrontend
+ listener_service:
+ example: sshd
+ listening_ip:
+ example: 0.0.0.0
+ port:
+ example: 22
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/network_shares/:
+ get:
+ operationId: getNetwork_shares
+ description: Get network shares
+ summary: Get network shares
+ tags:
+ - Services
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ networkshare_details:
+ type: array
+ items:
+ $ref: '#/definitions/Networkshare_details'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/listener_connection_stats/:
+ get:
+ operationId: getListenerConnectionStats
+ summary: Get listener connection statistics
+ description: Retrieve all listener connection statistics
+ tags:
+ - Services
+ parameters:
+ - name: port
+ in: query
+ description: child is optional assuming you have a parent created (see examples)
+ type: string
+ - name: device_name
+ in: query
+ description: the name of the device
+ type: string
+ - $ref: '#/parameters/listener_device_name'
+ - $ref: '#/parameters/discovered_service'
+ - $ref: '#/parameters/mapped_service'
+ - name: service_instance_id
+ in: query
+ description: filter by id of the service instance in use
+ type: integer
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ $ref: '#/definitions/Listener_connection_stats'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/2.0/listener_connection_stats/{id}':
+ get:
+ operationId: getListenerConnectionStatsByID
+ summary: Get listener connection statistics by ID
+ description: Retrieve listener connection statistics by service port ID
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: path
+ description: service port id
+ type: integer
+ required: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ $ref: '#/definitions/Listener_connection_stats_id'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/scheduled_tasks/:
+ get:
+ operationId: getScheduledTasks
+ summary: Get scheduled tasks
+ description: Retreive information about all scheduled tasks
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: query
+ description: filter results by Service schedule ID
+ type: integer
+ - name: device_id
+ in: query
+ description: device id
+ type: integer
+ - name: device
+ in: query
+ description: device
+ type: string
+ - name: user_id
+ in: query
+ description: user id
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: 2
+ service_schedules:
+ $ref: '#/definitions/Service_schedules'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postScheduledTasks
+ description: >-
+ Create/update scheduled task. 3 parameters are required:
------ OR + ------
Required parameters by cloud vendor or job type.
(API parameter = UI equivalent)
ALL DISCOVERY JOBS
- name = Name
- cloud_type = Cloud Type
+
AMAZON AWS
- accountid = Access Key ID
- secret_key OR secret_key_id = Secret Key
- regions = Regions
+
MICROSOFT AZURE
- auth_type = Authentication Type
- accountid = Client ID (Service Principal) or Username (User Credentials)
- secret_key OR secret_key_id = Client Secret (Service Principal) or Password (User Credentials)
- subscriptionid = Subscription ID
- tenant = Tenant ID
+
LINODE
- api_key OR api_key_id = API Key
+
DIGITALOCEAN
- token_key = Token Key
+
OPENSTACK
- ip = URL
- username = User
- secret_key OR secret_key_id = Password
- tenant = Project Name
+
GOOGLE CLOUD
- tenant = Project ID
- secret_key OR secret_key_id = Credentials JSON
- google_regions = Zones
+
ALIBABA CLOUD
- accountid = Access Key ID
- secret_key OR secret_key_id = Access Key Secret
+
ORACLE CLOUD
- accountid = User ID
- api_key OR api_key_id = Fingerprint
- secret_key OR secret_key_id = Key File
- tenant = Tenant ID
- oracle_regions = Zones
+
STANDALONE KUBERNETES
- ip = URL
- auth_type = Authentication Type
- accountid = Bearer Token or Basic Credentials (depending on Authentication Type)
+
ARISTA CLOUDVISION
- server = node(s)
- auth_type = Authentication Type
- username (Basic Credentials Only)
- secret_key (password if auth_type = Basic Authentication, API Token if auth_type = Bearer Token)
- tenant (CVSaaS only)
+
JAMF
- ip = URL
- accountid = User ID
+
WORKSPACE ONE
- ip = URL
- tenant = Tenant
- accountid = Basic Credentials
+ summary: Create/update cloud job
+ tags:
+ - Autodiscovery
+ - cloud
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: Name of the discovery job; required for all jobs.
+ - $ref: '#/parameters/cloud_type'
+ - $ref: '#/parameters/secret_key_id'
+ - $ref: '#/parameters/vendor_post'
+ - name: kubernetes_discovery
+ in: formData
+ description: Available for Amazon AWS, Microsoft Azure, and standalone Kubernetes.
Yes / No
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ - name: remote_collector_id
+ in: formData
+ description: ID number of the remote collector (RC) to use for the job.
+ type: string
+ - name: customer_id
+ in: formData
+ description: Customer ID number for discovered devices.
+ type: string
+ - $ref: '#/parameters/clear_customer'
+ - name: device_name_format
+ in: formData
+ description: Name format for discovered cloud instances (only for Alibaba Cloud, Amazon AWS, Google Cloud, MS Azure, Oracle Cloud).
+ type: string
+ enum:
+ - 'Instance ID + name (if defined)'
+ - 'Instance ID'
+ - 'Name (only use if unique)'
+ - name: container_not_found
+ in: formData
+ description: For Kubernetes discovery.
1 = changes status, 2 = delete container
+ type: string
+ enum:
+ - '1'
+ - '2'
+ - name: auth_type
+ in: formData
+ description: Type of authentication credentials for MS Azure and Standalone Kubernetes.
+ type: string
+ enum:
+ - 'User Credentials'
+ - 'Service Principal'
+ - 'Bearer Token'
+ - 'Basic Credentials'
+ - name: accountid
+ type: string
+ in: formData
+ description: Required for Alibaba Cloud, Amazon AWS, Kubernetes, MS Azure, Oracle Cloud, Jamf, Workspace ONE.
+ - $ref: '#/parameters/vrfgroup'
+ - $ref: '#/parameters/notes_post'
+ - $ref: '#/parameters/remove_unfound_instances'
+ - $ref: '#/parameters/strip_domain_name'
+ - $ref: '#/parameters/add_suffix'
+ - $ref: '#/parameters/match_name_only_for_virtuals'
+ - $ref: '#/parameters/match_name_only_for_hypervisor'
+ - name: groups
+ type: string
+ in: formData
+ description: name of one or more groups separated by commas
+ - name: object_category
+ type: string
+ in: formData
+ description: category of discovered vservers and vms
+ - $ref: '#/parameters/debug_level'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/secret_key'
+ - $ref: '#/parameters/regions'
+ - $ref: '#/parameters/aws_roles'
+ - aws_roles_remove:
+ name: aws_roles_remove
+ in: formData
+ type: string
+ description: >-
+ Comma separated names of aws_roles to remove from a cloud discovery job. Use * to clear all aws_roles from a cloud discovery job.
+ - name: azure_cloud_definition
+ type: string
+ in: formData
+ enum:
+ - 'Public'
+ - 'China'
+ - 'US Gov.'
+ - 'German'
+ description: Cloud Definition for MS Azure discovery jobs.
+ - name: google_regions
+ type: string
+ in: formData
+ description: comma-separated list of Google region names
+ - name: oracle_regions
+ type: string
+ in: formData
+ description: comma-separated list of Oracle region names
+ - $ref: '#/parameters/subscriptionid'
+ - name: ip
+ type: string
+ in: formData
+ description: OpenStack URL; Standalone Kubernetes URL; Jamf URL; Workspace ONE URL;
+ - name: server
+ type: string
+ in: formData
+ description: (Arista CloudVision; IP(s) or hostname(s) for CVP nodes)
+ - $ref: '#/parameters/tenant'
+ - name: username
+ type: string
+ in: formData
+ description: OpenStack username - required for OpenStack
+ - name: api_key
+ type: string
+ in: formData
+ description: Oracle Cloud Fingerprint; Linode API Key
+ - name: api_key_id
+ type: string
+ in: formData
+ description: Oracle Cloud Fingerprint; Linode API Key
+ - $ref: '#/parameters/api_token'
+ - $ref: '#/parameters/token_key'
+ - name: alibaba_regions
+ in: formData
+ description: Comma-separated list of Alibaba Cloud region names.
+ type: string
+ - name: features
+ in: formData
+ type: string
+ description: >-
+ Comma-separated list of features.
+ Choices for AWS are: s3, ebs, route53, databases, elb, functions, redshift, dynamodb, efs.
+ Choices for GCP are: databases.
+ Choices for AZURE are: databases, functions.
+ Use 'D42_NULL' to disable advanced features for Cloud discovery jobs.
+ - name: collect_db_info
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Collect database server information. Use yes or no. ( Cosmos DB for PostgreSQL only )
+ - name: db_username
+ type: string
+ in: formData
+ description: Username for DB discovery. Required if collect_db_info is 'yes'
+ - name: db_password
+ type: string
+ in: formData
+ description: Password for DB discovery. Required if collect_db_info is 'yes'
+ - name: extended_discovery
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Collect summary information on all AWS/Azure resources that are not supported by full discovery yet. Use yes or no.
+ - name: chromeos_discovery
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Collect summary information on all ChromeOS devices in Google Cloud Platform discovery. Use yes or no.
+ - name: use_env_credentials
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Use cloud credentials from environment not from job. Only supported for AWS.
+ - name: discover_all_subscriptions
+ type: boolean
+ in: formData
+ description: Discover all Subscriptions within Azure Tenant.
+ - $ref: '#/parameters/service_level_post'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - name: add_tags_as_custom_fields
+ type: integer
+ in: formData
+ enum:
+ - 1
+ - 2
+ - 3
+ description: >-
+ The way how to add vendor metadata.
+ 1: Do nothing 2: Add as custom fields 3: Add as tags
+ - name: vendor_metadata_source
+ type: integer
+ in: formData
+ enum:
+ - 1
+ - 2
+ description: >-
+ Metadata source ( For Google Cloud Only ).
+ 1: Labels 2: Custom Metadata
+ - $ref: '#/parameters/remove_password_ids'
+ - name: add_tags_to_device
+ type: integer
+ in: formData
+ enum:
+ - 1
+ - 2
+ description: >-
+ Add tags to device ( For Google Cloud Only ).
+ 1: Do nothing 2: Import Tags
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryCloudaccount
+ description: Execute cloud job
+ summary: Run cloud job
+ tags:
+ - Autodiscovery
+ - cloud
+ parameters:
+ - name: name
+ type: string
+ description: name of the job - required if no job_id
+ in: formData
+ - $ref: '#/parameters/job_id_wname'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/cloud_infrastructure/:
+ get:
+ operationId: getCloud_infrastructure
+ summary: Get AWS cloud info
+ description: Retrieves cloud account for AWS discovery
+ tags:
+ - Cloud Account
+ parameters:
+ - name: id
+ type: string
+ in: formData
+ description: Cloud account id.
+ - name: account
+ type: string
+ in: formData
+ description: Cloud account.
+ - name: organization
+ type: string
+ in: formData
+ description: Organization.
+ - name: name
+ type: string
+ in: formData
+ description: Name.
+ - name: tags
+ type: string
+ in: formData
+ description: Comma-separated list of infrastucture tags.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: 1
+ limit:
+ example: 1000
+ offset:
+ example: 0
+ cloud_infrastructures:
+ type: array
+ items:
+ type: object
+ properties:
+ account:
+ example: 458407285063
+ cloud_vendor_id:
+ example: 1
+ notes:
+ example: New Notes
+ tags:
+ example: []
+ last_changed:
+ example: 2020-06-19T16:40:02.528Z
+ first_added:
+ example: 2020-06-19T16:13:18.179Z
+ organization:
+ example: D42 Internal
+ last_edited:
+ example: 2020-06-19T16:40:02.811Z
+ id:
+ example: 1
+ custome_fields:
+ example: []
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postCloud_infrastructure
+ description: Modify cloud infrastructure for AWS discovery
+ summary: Update AWS cloud info
+ tags:
+ - Cloud Account
+ parameters:
+ - name: id
+ type: string
+ in: formData
+ description: Cloud account id (search only).
+ - name: account
+ type: string
+ in: formData
+ description: Cloud account (search only).
+ - name: notes
+ type: string
+ in: formData
+ description: Infrastucture notes.
+ - name: tags
+ type: string
+ in: formData
+ description: Comma-separated list of infrastucture tags.
+ - name: tags_remove
+ type: string
+ in: formData
+ description: Remove existing tags - yes/no.
+ enum:
+ - 'yes'
+ - 'no'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - cloud infrastructure added/updated
+ - 11
+ - rajj
+ - true
+ - false
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/cloud_infrastructure/{id}/:
+ delete:
+ operationId: deleteCloud_infrastructure
+ summary: Delete cloud info
+ description: Deletes cloud account ID and all attached cloud resources
+ tags:
+ - Cloud Account
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of the infrastructure to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '11'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/custom_fields/cloud_infrastructure/:
+ put:
+ operationId: putCustom_FieldCloud_infrastructure
+ description: Create/updated custom fields for cloud account
+ summary: Cloud info custom fields
+ tags:
+ - Cloud Account
+ parameters:
+ - name: id
+ in: formData
+ description: ID of the cloud account.
+ required: true
+ type: string
+ - $ref: '#/parameters/key'
+ - $ref: '#/parameters/custom_field_type'
+ - $ref: '#/parameters/mandatory'
+ - $ref: '#/parameters/filterable'
+ - $ref: '#/parameters/log_for_api'
+ - $ref: '#/parameters/related_field_name'
+ - $ref: '#/parameters/add_to_picklist'
+ - $ref: '#/parameters/remove_from_picklist'
+ - $ref: '#/parameters/delete_in_use'
+ - $ref: '#/parameters/related_field_value_by_id'
+ - $ref: '#/parameters/value'
+ - $ref: '#/parameters/clear_value'
+ - $ref: '#/parameters/notes_post'
+ - $ref: '#/parameters/clear_notes'
+ - $ref: '#/parameters/bulk_fields'
+ - $ref: '#/parameters/multi_select'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - custom key pair values added or updated
+ - 2
+ - 'D42-internal'
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource/:
+ get:
+ operationId: getCloud_resource
+ summary: Get cloud resource
+ description: Retrieves cloud resources for AWS discovery
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ type: integer
+ in: formData
+ description: Cloud resource id.
+ - name: name
+ type: string
+ in: formData
+ description: Resource name (partial match).
+ - name: identifier
+ type: string
+ in: formData
+ description: Resource identifier.
+ - name: device
+ type: string
+ in: formData
+ description: Device name.
+ - name: vendor_define_type
+ type: string
+ in: formData
+ description: Vendor definition type.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: 128
+ resource:
+ type: array
+ items:
+ properties:
+ category:
+ example: Device
+ zones:
+ example: usa-east-2a
+ identifier:
+ example: i-0d90158f3cf3e7e19
+ tags:
+ example: ""
+ name:
+ example: d42-internal
+ notes:
+ example: oracle cloud
+ last_changed:
+ example: 2020-06-19T16:13:18.225Z
+ subtype:
+ example: []
+ cloud_infra_id:
+ example: 2
+ region:
+ example: usa-east-2
+ root_resource_id:
+ example: 2
+ root_resource:
+ example: wbd42pstgr1
+ last_edited:
+ example: 2020-06-19T16:13:18.229Z
+ first_added:
+ example: 2020-06-19T16:13:18.229Z
+ id:
+ example: 3
+ resource_storage:
+ example: []
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postCloud_resource
+ description: Modify cloud resource for AWS discovery
+ summary: Update cloud resource
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ type: string
+ in: formData
+ description: Cloud resource id (search only).
+ - name: identifier
+ type: string
+ in: formData
+ description: Cloud resource identifier (search only).
+ - name: notes
+ type: string
+ in: formData
+ description: Resource notes.
+ - name: tags
+ type: string
+ in: formData
+ description: Comma-separated list of resource tags.
+ - name: tags_remove
+ type: string
+ in: formData
+ description: Remove existing tags - yes/no.
+ enum:
+ - 'yes'
+ - 'no'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - resource added/updated
+ - 11
+ - d42_internal
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource/{id}/:
+ delete:
+ operationId: deleteCloud_resource
+ summary: Delete cloud resource
+ description: Deletes cloud resource ID and all attached cloud resources
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of the resource to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '11'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource/{id}/archive/:
+ post:
+ operationId: archiveResourceIdv2
+ description: This API archives a resource by ID
+ summary: Archive resource by ID
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ type: integer
+ in: path
+ required: true
+ description: Resource id.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ $ref: '#/definitions/objectArchive'
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/custom_fields/resource/:
+ put:
+ operationId: putCustom_FieldCloud_resource
+ description: Create/updated custom fields for cloud resource
+ summary: Cloud resource custom fields
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ in: formData
+ description: ID of the cloud resource.
+ required: true
+ type: string
+ - $ref: '#/parameters/key'
+ - $ref: '#/parameters/custom_field_type'
+ - $ref: '#/parameters/mandatory'
+ - $ref: '#/parameters/filterable'
+ - $ref: '#/parameters/log_for_api'
+ - $ref: '#/parameters/related_field_name'
+ - $ref: '#/parameters/add_to_picklist'
+ - $ref: '#/parameters/remove_from_picklist'
+ - $ref: '#/parameters/delete_in_use'
+ - $ref: '#/parameters/related_field_value_by_id'
+ - $ref: '#/parameters/value'
+ - $ref: '#/parameters/clear_value'
+ - $ref: '#/parameters/notes_post'
+ - $ref: '#/parameters/clear_notes'
+ - $ref: '#/parameters/bulk_fields'
+ - $ref: '#/parameters/multi_select'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - custom key pair values added or updated
+ - 2
+ - 'CPU NA, PN: 1000base-lx-sfp'
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource_relationship/:
+ get:
+ operationId: getResource_relationship
+ summary: Get cloud resource relationships
+ description: Retrieves cloud resource relationships for AWS
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ type: string
+ in: formData
+ description: Cloud resource id.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: 128
+ resource_relationships:
+ type: array
+ items:
+ properties:
+ from_resource:
+ example: []
+ category:
+ example: Volume
+ vendor_custom_fields:
+ example: []
+ last_edited:
+ example: 2020-06-21T16:13:18.225Z
+ name:
+ example: d42-internal
+ tags:
+ example: []
+ notes:
+ example: new notes
+ cloud_infra:
+ example: []
+ account:
+ example: AW90746321
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource_relationship/{id}/:
+ delete:
+ operationId: deleteResource_relationship
+ summary: Delete cloud resource relationship
+ description: Deletes cloud resource relationship ID and attached resource relationships
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of the resource relationship to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '11'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/snmp_disc/:
+ get:
+ operationId: getAuto_discoverySnmp_disc
+ summary: Get all SNMP jobs
+ description: Retrieves all SNMP autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 54
+ name:
+ example: snmpjob54
+ port:
+ example: 163
+ servers:
+ example: 192.168.3.1
+ snmp_version:
+ example: v3
+ icmp_tcp_port_check:
+ example: yes
+ debug_level:
+ example: Debug Off
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoverySnmp_disc
+ description: Create/update other SNMP autodiscovery job
+ summary: Create/update SNMP job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - name: server
+ type: string
+ in: formData
+ description: FQDN or IP of the server(s) or cidr or ranges.
+ - name: ip_address
+ type: string
+ in: formData
+ description: IP address. Required if new
+ - $ref: '#/parameters/end_ip_address'
+ - $ref: '#/parameters/snmp_string'
+ - $ref: '#/parameters/snmp_string_id'
+ - $ref: '#/parameters/snmp_strings'
+ - $ref: '#/parameters/snmp_string_ids'
+ - name: remote_collector_id
+ type: string
+ in: formData
+ description: D42 ID of the remote collector to use for this job.
+ - name: do_port_check
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Run nmap port-scan prior to discovery.
+ - name: snmp_min_parallel
+ type: integer
+ in: formData
+ description: Set nmap option min_parallelism (Only change if directed by Support).
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/strip_domain_name'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - name: groups
+ type: string
+ in: formData
+ description: name of one or more groups separated by commas
+ - $ref: '#/parameters/snmp_port'
+ - $ref: '#/parameters/snmp_version'
+ - $ref: '#/parameters/snmpv3_auth_password_id'
+ - $ref: '#/parameters/snmpv3_privacy_protocol_password_id'
+ - $ref: '#/parameters/snmpv3_user'
+ - $ref: '#/parameters/snmpv3_auth_mode'
+ - $ref: '#/parameters/snmpv3_auth_protocol'
+ - $ref: '#/parameters/snmpv3_auth_password'
+ - $ref: '#/parameters/snmpv3_privacy_protocol'
+ - $ref: '#/parameters/snmpv3_privacy_protocol_password'
+ - $ref: '#/parameters/snmpv3_context'
+ - $ref: '#/parameters/debug_level'
+ - name: service_level
+ type: string
+ in: formData
+ description: service level of discovered devices
+ - name: snmp_timeout
+ type: integer
+ in: formData
+ description: timeout for the snmp job
+ - name: snmp_retries
+ type: integer
+ in: formData
+ description: number of retries for the snmp job
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - $ref: '#/parameters/clear_customer'
+ - name: ignore_logical_ports
+ required: false
+ type: boolean
+ in: formData
+ default: false
+ description: Ignore logical ports.
+ - customer_id:
+ name: customer_id
+ in: formData
+ type: string
+ description: D42 ID of customer or department name.
+ - name: customer
+ type: string
+ in: formData
+ description: Name of customer/department.
+ - $ref: '#/parameters/remove_password_ids'
+ - $ref: '#/parameters/autodiscover_cdp_devices'
+ - $ref: '#/parameters/delete_older_mac_association_after'
+ - $ref: '#/parameters/delete_switch_port_not_found'
+ - $ref: '#/parameters/discover_parts'
+ - $ref: '#/parameters/exclude_servers'
+ - $ref: '#/parameters/get_all_switch_ports'
+ - $ref: '#/parameters/hostname_precedence'
+ - $ref: '#/parameters/module_not_found'
+ - $ref: '#/parameters/name_to_use_for_newly_discovered_module'
+ - $ref: '#/parameters/polling_interval'
+ - $ref: '#/parameters/port_name_prefix_to_ignore_macs'
+ - $ref: '#/parameters/skip_vlan_indexing'
+ - $ref: '#/parameters/toggle_in_service_on_module_power_state'
+ - $ref: '#/parameters/use_name_alias_port_descr'
+ - $ref: '#/parameters/vlans_to_ignore'
+ - $ref: '#/parameters/vrfgroup'
+ - name: category
+ in: formData
+ description: name of the category
+ type: string
+ - name: port_name_prefix_to_mark_as_uplink
+ type: string
+ in: formData
+ description: Port name prefix to mark as uplink. Marks discovered ports with these switch port prefix names (comma separated) as uplinks.
+ - name: query_device_advertised_contexts
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Query device advertised contexts
+ - name: Secondary Contexts
+ type: string
+ in: formData
+ description: Comma separated values of secondary contexts.
+ - name: ignore_oids
+ type: string
+ in: formData
+ description: Ignore the following OIDs
+ - name: vlans_to_include
+ type: string
+ in: formData
+ description: Comma separated or range values of VLAN to include.
+ - name: dont_add_new_device_on_remote_port
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Ignore remote port device information
+ - name: enable_pdu_monitoring
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Enable PDU monitoring - yes/no.
+ - name: overwrite_object_categories
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Overwrite the object categories for existing discovered devices.
Note - this is equivalent to the 'Overwrite existing object categories' parameter shown in the D42 Nmap UI.
+ - name: overwrite_subnet_categories
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ description: >-
+ If a subnet is discovered that exists and already has a subnet
+ category, the category will be overwritten and all child subnets of
+ the discovered subnet will also get the new category.
+ - name: send_sfp_as_parts
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Add SFP ports as Parts
+ - name: include_unit_name
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Include the power unit name in the Device42 name assigned to the power unit
+ - name: include_serial_in_name
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Include the serial number in the Device42 name assigned to the power unit
+ - name: include_ip_in_name
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Include the serial number in the Device42 name assigned to the power unit
+ - name: service_level_module
+ type: string
+ in: formData
+ description: Service Level for Module not found
+ - name: device_category
+ type: string
+ in: formData
+ description: Object Category for discovered devices.Existing object category will not be overwritten.
+ - name: ignore_os
+ type: string
+ in: formData
+ description: Ignore the following OS(s)
+ - name: discovered_port_types_to_ignore
+ type: string
+ in: formData
+ description: Discovered port types to ignore separated by commas.
+ - name: remove_discovered_port_types_to_ignore
+ type: string
+ in: formData
+ description: Remove from Discovered port types to ignore list separated by commas.
+ - name: discovered_port_types_not_to_count
+ type: string
+ in: formData
+ description: Discovered port types not to count separated by commas.
+ - name: remove_discovered_port_types_not_to_count
+ type: string
+ in: formData
+ description: Remove from Discovered port types not to count list separated by commas.
+ - name: scan_all_protocols
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ in: formData
+ description: yes or no
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoverySnmp_disc
+ description: Execute SNMP autodiscovery job
+ summary: Run SNMP job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ description: name of the job - required if no job_id
+ in: formData
+ - $ref: '#/parameters/job_id_wname'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/auto_discovery/storagearraytarget/:
+ get:
+ operationId: getAuto_discoveryStorageArray
+ summary: Get all storage array jobs
+ description: Retrieves all storage array autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 54
+ name:
+ example: SA-Test-Job-2
+ platform:
+ example: netapp
+ servers:
+ example: 192.168.3.1
+ schedule_days:
+ example: ''
+ schedule_time:
+ example: ''
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryStorageArray
+ description: Create/update a storage array autodiscovery job
+ summary: Create/update storage array job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - name: server
+ type: string
+ in: formData
+ description: IP or FQDN of target server(s).
REQUIRED if new.
+ - name: remote_collector_id
+ type: string
+ in: formData
+ description: D42 ID of the remote collector to use for this job.
REQUIRED if new.
+ - name: platform
+ type: string
+ in: formData
+ enum:
+ - 'emc-ecs'
+ - 'emc-smis'
+ - 'emc-unity'
+ - 'hp3par'
+ - 'infinidat'
+ - 'isilon'
+ - 'netapp'
+ - 'orcl-zfs'
+ - 'pure-storage'
+ - 'hitachi'
+ - 'lsi'
+ - 'ibm'
+ - 'dell-equal'
+ - 'hp3par'
+ - 'xtrem-io'
+ - 'tintri'
+ - 'recover-point'
+ - 'hp-lefthand'
+ - 'hdsg1k'
+ - 'data-domain'
+ - 'ibm-flash'
+ - 'dell-compellent'
+ - 'nimble'
+ - 'hpe-storeeasy'
+ - 'emc-uni-rest'
+ - 'dell-powerstore'
+ - 'purity-fb'
+ - 'lenovo'
+ description: Storage Array platform.
+ - name: url_prefix
+ type: string
+ in: formData
+ enum:
+ - 'http'
+ - 'https'
+ - name: port
+ type: string
+ in: formData
+ description: Specify port. Use UI default if unsure.
+ - name: exclude_servers
+ type: string
+ in: formData
+ description: IP or FQDN of servers to exclude.
+ - name: polling_interval
+ type: integer
+ in: formData
+ description: Polling interval in seconds.
+ - name: enable_resources_monitoring
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Enable performance data collection.
+ - name: max_timeout
+ type: integer
+ in: formData
+ description: Maximum timeout on connection (in seconds).
+ - name: netapp_target
+ type: string
+ in: formData
+ enum:
+ - 'filer'
+ - 'dfm'
+ - 'ocum'
+ description: Netapp target type.
+ - name: netap_protocol
+ type: string
+ in: formData
+ enum:
+ - 'https'
+ - 'http'
+ - 'insecure-https'
+ description: Netapp protocol type.
+ - name: sat_not_found
+ type: string
+ in: formData
+ enum:
+ - '1'
+ - '2'
+ description: Action for Storage Array not found.
1 = Keep array resource.
2 = Delete array resource.
+ - name: username
+ type: string
+ in: formData
+ description: Username to use for discovery.
+ - name: password
+ type: string
+ in: formData
+ description: Password to use for discovery.
+ - name: password_ids
+ type: string
+ in: formData
+ description: One or more D42 password ID numbers separated by commas.
+ - name: token_auth
+ type: string
+ in: formData
+ description: Whether to authenticate with the token or username/password.
+ enum:
+ - 'yes'
+ - 'no'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - $ref: '#/parameters/remove_password_ids'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - storage array job added/updated
+ - 11
+ - d42_internal
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryStorageArray
+ description: Execute a storage array autodiscovery job
+ summary: Run storage array job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ description: Name of the job
- required if no job_id supplied
+ in: formData
+ - name: job_id
+ type: string
+ description: D42 ID for the job
- required if no job name supplied
+ in: formData
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/auto_discovery/storagearraytarget/{id}/:
+ delete:
+ operationId: deleteStorageArray_discovery
+ summary: Deletes storage array job
+ description: Deletes a storage array autodiscovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of Storage Array discovery job to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '11'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/ipmi/:
+ get:
+ operationId: getAuto_discoveryIpmi
+ summary: Get all IPMI/Redfish jobs
+ description: Retrieves all IPMI/Redfish autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 54
+ name:
+ example: IPMIjob54
+ discovery_type:
+ example: IPMI
+ ip_start:
+ example: 10.42.54.17
+ ip_end:
+ example: 10.42.54.21
+ serial_to_use:
+ example: Product serial
+ servers:
+ example: 192.168.3.1
+ host_name_to_use:
+ example: Serial / Reverse DNS / IP
+ vrfgroup:
+ example: ''
+ add_hardware_model:
+ example: no
+ overwrite_device_name:
+ example: yes
+ debug_level:
+ example: Debug Off
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryIpmi
+ description: Create IPMI/Redfish autodiscovery job
+ summary: Create IPMI/Redfish job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - $ref: '#/parameters/ip_start'
+ - $ref: '#/parameters/ip_end'
+ - $ref: '#/parameters/bmc_user'
+ - $ref: '#/parameters/bmc_password'
+ - $ref: '#/parameters/hostname_to_use'
+ - $ref: '#/parameters/update_model_if_found'
+ - $ref: '#/parameters/run_as_operator'
+ - $ref: '#/parameters/overwrite_device_name'
+ - name: object_category
+ type: string
+ in: formData
+ - name: vrfgroup
+ type: string
+ in: formData
+ description: name of vrf group for discovered subnets
+ - name: vrfgroup_id
+ type: number
+ in: formData
+ description: id of vrf group for discovered subnets
+ - $ref: '#/parameters/overwrite_object_categories'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - name: groups
+ type: string
+ in: formData
+ description: name of one or more groups separated by commas
+ - name: debug_level
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ in: formData
+ - $ref: '#/parameters/discovery_type'
+ - $ref: '#/parameters/remote_collector_id'
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - $ref: '#/parameters/remove_password_ids'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: IPMI autodiscovery job added
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryIpmi
+ description: Execute IPMI/Redfish autodiscovery job
+ summary: Run IPMI job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/ucs/:
+ get:
+ operationId: getAuto_discoveryUcs
+ summary: Get all UCS/ACI/Load Balancer jobs
+ description: Retrieves all UCS/ACI/Load Balancer autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ decommissioned_service_level_id:
+ example: ''
+ job_id:
+ example: 54
+ hostname_to_use:
+ example: 2
+ platform:
+ example: UCS
+ name:
+ example: UCSjob54
+ exclude_servers:
+ example: ''
+ server:
+ example: 10.42.54.21
+ device_category:
+ example: ''
+ schedule_days:
+ example: 1,2,4
+ schedule_time:
+ example: 23:00
+ debug_level:
+ example: Debug Off
+ port:
+ example: 443
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryUcs
+ description: Create/update a UCS/ACI/Load Balancer autodiscovery job
+ summary: Create/update UCS/ACI/Load Balancer job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - $ref: '#/parameters/remote_collector_id'
+ - name: platform
+ in: formData
+ type: string
+ required: true
+ enum:
+ - 'UCS'
+ - 'ACI'
+ - 'F5'
+ - 'NetScaler'
+ - 'Alteon'
+ - 'Cisco Prime'
+ description: Required
+ - name: server
+ in: formData
+ type: string
+ description: FQDN or IP of the server(s) or CIDR or ranges
+ - name: port
+ in: formData
+ type: string
+ required: true
+ description: Default is 443 - use this default if you are not sure.
+ - name: use_ssl
+ in: formData
+ type: string
+ description: Default is Yes - use this default if you are not sure.
+ enum:
+ - 'Yes'
+ - 'No'
+ - name: exclude_servers
+ in: formData
+ type: string
+ description: Servers to ignore
+ - name: username
+ in: formData
+ type: string
+ required: True
+ - name: password
+ in: formData
+ type: string
+ required: True
+ - name: password_id
+ type: integer
+ in: formData
+ description: The D42 ID of the existing secret for the password for the job.
+ - name: hostname_to_use
+ type: string
+ in: formData
+ required: true
+ description: Required - relevant for new devices only. If a device with same serial number already exists, name is ignored
+ enum:
+ - 'Serial #'
+ - 'Discovered Name'
+ - name: hostname_precedence
+ type: string
+ in: formData
+ description: Discovered name for the device is given precedence over existing name in the system.
+ enum:
+ - 'Yes'
+ - 'No'
+ - name: toggle_service_level_on_power_state
+ type: string
+ in: formData
+ description: Toggle the service level of a device based on power state.
+ enum:
+ - 'Yes'
+ - 'No'
+ - name: decommissioned_service_level_id
+ type: string
+ in: formData
+ description: Service level for decommissioned devices.
+ - name: vrf_group_id
+ in: formData
+ type: string
+ description: VRF Group for discovered devices.
+ - name: object_category
+ type: string
+ in: formData
+ description: Existing object category will not be overwritten.
+ - $ref: '#/parameters/overwrite_object_categories'
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - name: debug_level
+ type: string
+ in: formData
+ enum:
+ - 'Debug Off'
+ - 'Debug On'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - $ref: '#/parameters/remove_password_ids'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - ucs autodiscovery job added
+ - 11
+ - UCS-AD-1
+ - true
+ - true
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryUcs
+ description: Execute UCS/ACI/Load Balancer autodiscovery job
+ summary: Run UCS/ACI/Load Balancer job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/dns/:
+ get:
+ operationId: getAuto_discoveryDns
+ summary: Get DNS jobs
+ description: Retrieves all autodiscovery jobs for DNS
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ nameserver:
+ example: 192.168.11.104
+ zonename:
+ example: 10.10.in-addr.arpa
+ job_id:
+ example: '10'
+ schedule:
+ example: 'M T W Th F S Su 09:44:18 ; M T F S Su 09:44:23 ;'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryDns
+ description: Create DNS autodiscovery job
+ summary: Create DNS job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/zonename'
+ - name: nameserver
+ type: string
+ description: IP/FQDN of the nameserver
+ required: true
+ in: formData
+ - name: remote_collector_id
+ type: string
+ in: formData
+ description: D42 ID of the remote collector to use for this job.
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: DNS Zone autodiscovery job added
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryDns
+ description: Execute DNS autodiscovery job
+ summary: Run DNS job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/auto_discovery/database_discovery/:
+ get:
+ operationId: getAuto_discoveryDBDiscovery
+ summary: Get Database Discovery jobs
+ description: Retrieves all autodiscovery jobs for Database Discovery
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ limit:
+ example: 1000
+ offset:
+ example: 0
+ database_discovery:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 1
+ remote_collector_id:
+ example: 10
+ last_status:
+ example: success
+ schedule_time:
+ example: 16:08
+ schedule_days:
+ example: 0,1,2,3,4,5,6
+ adm_interval:
+ example: 1800
+ debug_level:
+ example: "on"
+ job_name:
+ example: Demo Database Discovery
+ database_accounts:
+ type: array
+ items:
+ properties:
+ server:
+ example: 10.90.11.5
+ dba_id:
+ example: 17
+ appcomp_id:
+ example: 4
+ connection_name:
+ example: oracle_name
+ platform:
+ example: oracle
+ secret_id:
+ example: 1
+ instance:
+ example: ORCL2
+ port:
+ example: 1521
+ total_count:
+ example: 30
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryDBDiscovery
+ description: Create Database Discovery autodiscovery job
+ summary: Create Database Discovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: Name of the job
+ - $ref: '#/parameters/remote_collector_id'
+ - name: debug_level
+ type: string
+ in: formData
+ enum:
+ - 'Debug Off'
+ - 'Debug On'
+ - name: adm_interval
+ type: integer
+ in: formData
+ description: >-
+ Interval in seconds to periodically sample Database Connections.
+ Valid values are: 0, 1800, 3600, 7200, 14400, 21600, 43200, 86400.
+ No Database Connection sampling will occur if the value is zero.
+ - name: connection_name
+ type: string
+ required: true
+ in: formData
+ description: Name of the connection
+ - name: appcomp_id
+ type: integer
+ required: true
+ in: formData
+ description: Application component ID to be associated with the discovered database
+ - name: platform
+ required: true
+ in: formData
+ description: Database platform
+ type: string
+ enum:
+ - oracle
+ - mssql
+ - postgres
+ - db2
+ - name: server
+ type: string
+ required: true
+ in: formData
+ description: Database server
+ - name: port
+ type: integer
+ required: true
+ in: formData
+ description: Database port
+ - name: instance
+ type: string
+ in: formData
+ description: Database Instance for Oracle. Required for Oracle
+ - name: database
+ type: string
+ in: formData
+ description: Database for Postgres/DB2. Required for Postgres, required for DB2 if "databases" is not supplied
+ - name: databases
+ type: string
+ in: formData
+ description: Databases for DB2. Required for DB2 if "database" is not supplied
+ - name: db_username
+ type: string
+ in: formData
+ description: Username for Database discovery. Required if "db_password" is supplied
+ - name: db_password
+ type: string
+ in: formData
+ description: Password for Database discovery. Required if "db_username" is supplied
+ - name: credential_id
+ type: integer
+ in: formData
+ description: Password ID for Database discovery. Required if "db_username"/"db_password" are not supplied
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/clear_existing_schedule'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ type: array
+ items:
+ example:
+ - database discovery autodiscovery job added
+ - 54
+ - test_api
+ - true
+ - true
+ code:
+ example:
+ 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryDBDiscovery
+ description: Execute Database Discovery autodiscovery job
+ summary: Run Database Discovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/2.0/auto_discovery/database_discovery/{id}/':
+ delete:
+ operationId: deleteAuto_discoveryDBDiscovery
+ summary: Delete Database Discovery job
+ description: >-
+ Deletes an Database Discovery autodiscovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of Database Discovery discovery job to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '182'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/auto_discovery/dhcp_discovery/:
+ get:
+ operationId: getAuto_discoveryDHCPDiscovery
+ summary: Get DHCP Discovery jobs
+ description: Retrieves all autodiscovery jobs for DHCP Discovery
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ limit:
+ example: 1000
+ offset:
+ example: 0
+ dhcp_discovery:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 1
+ remote_collector_id:
+ example: 10
+ use_win_rm:
+ example: false
+ wds:
+ example: "10.90.11.23"
+ last_status:
+ example: success
+ schedule_time:
+ example: 16:08
+ schedule_days:
+ example: 0,1,2,3,4,5,6
+ debug_level:
+ example: "on"
+ job_name:
+ example: Demo DHCP Discovery
+ dhcp_servers:
+ type: array
+ items:
+ properties:
+ server:
+ example: 10.90.11.5
+ dhcp_conn_id:
+ example: 17
+ secret_id:
+ example: 1
+ total_count:
+ example: 30
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryDHCPDiscovery
+ description: Create DHCP Discovery autodiscovery job
+ summary: Create DHCP Discovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: Name of the job
+ - $ref: '#/parameters/remote_collector_id'
+ - name: debug_level
+ type: string
+ in: formData
+ enum:
+ - 'Debug Off'
+ - 'Debug On'
+ - name: use_win_rm
+ type: boolean
+ required: false
+ in: formData
+ description: Flag to indicate whether use WinRM for discovery
+ - name: wds
+ in: formData
+ description: WDS server to use
+ type: string
+ - name: server
+ type: string
+ required: true
+ in: formData
+ description: DHCP server
+ - name: dhcp_username
+ type: string
+ in: formData
+ description: Username for DHCP discovery. Required if "dhcp_password" is supplied
+ - name: dhcp_password
+ type: string
+ in: formData
+ description: Password for DHCP discovery. Required if "dhcp_username" is supplied
+ - name: credential_id
+ type: integer
+ in: formData
+ description: Password ID for DHCP discovery. Required if "dhcp_username"/"dhcp_password" are not supplied
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - $ref: '#/parameters/customer_form'
+ - $ref: '#/parameters/clear_customer'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ type: array
+ items:
+ example:
+ - DHCP discovery autodiscovery job added
+ - 54
+ - test_api
+ - true
+ - true
+ code:
+ example:
+ 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryDHCPDiscovery
+ description: Execute DHCP Discovery autodiscovery job
+ summary: Run DHCP Discovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/2.0/auto_discovery/dhcp_discovery/{id}/':
+ delete:
+ operationId: deleteAuto_discoveryDHCPDiscovery
+ summary: Delete DHCP Discovery job
+ description: >-
+ Deletes an DHCP Discovery autodiscovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of DHCP Discovery autodiscovery job to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '182'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/certificate/:
+ get:
+ operationId: getAuto_discoveryCertificate
+ summary: Get certificate jobs
+ description: Retrieves all autodiscovery jobs for certificates
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ end_ip_address:
+ example: 10.42.42.100
+ follow_chain:
+ example: 'no'
+ job_id:
+ example: '1'
+ name:
+ example: D42
+ ports:
+ example: '443'
+ start_ip_address:
+ example: 10.42.42.0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryCertificate
+ description: Create Certificate autodiscovery job
+ summary: Create certificate job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - $ref: '#/parameters/server'
+ - $ref: '#/parameters/start_ip_address'
+ - name: end_ip_address
+ in: formData
+ type: string
+ description: Legacy Field. Please use Server property
+ - $ref: '#/parameters/exclude_servers'
+ - $ref: '#/parameters/ports'
+ - name: remote_collector_id
+ type: string
+ in: formData
+ description: D42 ID of the remote collector to use for this job
+ - name: get_cipher_suites
+ type: boolean
+ in: formData
+ description: Find cipher suites supported by the server
+ - $ref: '#/parameters/follow_chain'
+ - name: debug_level
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ default: 'no'
+ in: formData
+ - name: dont_add_new_devices
+ type: string
+ in: formData
+ enum:
+ - 'true'
+ - 'false'
+ description: Protocol and cipher suites information will be ignored if device doesn't exist.
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Certificate autodiscovery job added
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryCertificate
+ description: Execute certificate autodiscovery job
+ summary: Run certificate job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ description: name of the job - required if no job_id
+ in: formData
+ - $ref: '#/parameters/job_id_wname'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/adldap/:
+ get:
+ operationId: getAuto_discoveryAdldap
+ summary: Get all AD/LDAP jobs
+ description: Retrieves all AD/LDAP autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 2
+ name:
+ example: AD-TestAdmins
+ ldap_settings:
+ example: Active Directory/LDAP Settings
+ dn_type:
+ example: Group
+ group_dn:
+ example: adsasd
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryAdldap
+ description: >-
+ Create/update AD/LDAP autodiscovery job. Required parameters:
However, if updating a rack, use
or all of
+If using + room/building name, first combination of room name or room and building + name will be used.
+ summary: Create/update + tags: + - Racks + parameters: + - name: name + type: string + in: formData + required: true + description: Rack name - must be unique within a room + - name: size + type: integer + description: In UI + in: formData + required: true + - name: rack_id + type: integer + description: >- + Required to update a rack using ID. This has highest priority to update a + rack. + in: formData + - name: room + type: string + description: Name of room - Required if changing a rack without rack_id. + in: formData + - name: building + type: string + in: formData + description: Name of building - Used when there are non-unique room names. + - $ref: '#/parameters/new_name' + - $ref: '#/parameters/room_id_post' + - $ref: '#/parameters/numbering_start_from_bottom' + - $ref: '#/parameters/first_number' + - $ref: '#/parameters/row' + - $ref: '#/parameters/manufacturer_post' + - $ref: '#/parameters/notes_post' + - $ref: '#/parameters/start_row' + - $ref: '#/parameters/start_col' + - $ref: '#/parameters/row_size' + - $ref: '#/parameters/col_size' + - $ref: '#/parameters/orientation_rack' + - $ref: '#/parameters/groups_post' + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + msg: + example: + - rack added. + - 29 + - '34' + code: + example: 0 + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + '/api/1.0/racks/{ID}/': + get: + operationId: getRacksID + description: >- + Retrieve detailed information about a specific rack including all racked + devices, assets and PDUs + summary: Get specific + tags: + - Racks + parameters: + - name: ID + type: integer + in: path + required: true + description: The ID of the rack to retrieve + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + asset_no: + example: '' + assets: + example: [] + available_u: + example: 10 + building: + example: New Haven + custom_fields: + type: array + items: + properties: + key: + example: Master Key? + notes: + example: '' + value: + example: '' + devices: + type: array + items: + $ref: '#/definitions/RackDevices' + first_number: + example: 0 + manufacturer: + example: APC Inc. + name: + example: NH-DC1-02 + notes: + example: '' + number_between_us: + example: true + numbering_start_from_bottom: + example: 'yes' + pdus: + type: array + items: + properties: + bootstrap_power: + example: 0.00 W + depth: + example: Half Depth + file_names: + example: + - /var/www/graphics/images/apc-rack-pdu-front.png + - '' + name: + example: USNHCTPDU-03 + num_ports: + example: '32' + orientation: + example: Back + pdu_id: + example: 16 + power_draw: + example: ' ' + reversed: + example: 'no' + size: + example: 1 + start_at: + example: '' + total_ports: + example: 32 + where: + example: Right + width: + example: 2520 + xpos: + example: 0 + rack_id: + example: 21 + rack_middle_option: + example: Start at + rack_url: + example: /api/api/1.0/racks/21/ + room: + example: NHDC1 + row: + example: '' + row_size: + example: 1 + size: + example: 42 + start_col: + example: 29 + start_row: + example: 10 + tags: + example: [] + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + delete: + operationId: deleteRacksID + description: >- + This API is used to delete the rack with the rack id supplied as the + required argument + summary: Delete + tags: + - Racks + parameters: + - name: ID + type: integer + in: path + required: true + description: rack id + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + deleted: + example: 'true' + id: + example: '114' + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + '/api/1.0/asset/rack/{id}/': + delete: + operationId: deleteAssetsRack + summary: Remove Asset from Rack + description: This API is used to un-rack the asset + tags: + - Racks + parameters: + - name: id + type: integer + in: path + required: true + description: Asset ID + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + deleted: + example: 'true' + id: + example: '114' + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + /api/1.0/custom_fields/rack/: + put: + operationId: putCustom_fieldsRack + description: >- + Create or update custom fields for racks. "ID" or "name" of rack is + needed even when value is not being changed + summary: Custom fields + tags: + - Racks + parameters: + - name: name + type: string + in: formData + description: name of room + - name: id + type: string + in: formData + description: Rack ID or UI > Tools > Export > Rack + - $ref: '#/parameters/key' + - $ref: '#/parameters/custom_field_type' + - $ref: '#/parameters/mandatory' + - $ref: '#/parameters/filterable' + - $ref: '#/parameters/log_for_api' + - $ref: '#/parameters/related_field_name' + - $ref: '#/parameters/add_to_picklist' + - $ref: '#/parameters/remove_from_picklist' + - $ref: '#/parameters/delete_in_use' + - $ref: '#/parameters/related_field_value_by_id' + - $ref: '#/parameters/value' + - $ref: '#/parameters/clear_value' + - $ref: '#/parameters/notes_post' + - $ref: '#/parameters/clear_notes' + - $ref: '#/parameters/bulk_fields' + - $ref: '#/parameters/multi_select' + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + msg: + example: + - custom key pair values added or updated + - 29 + - 34 - 12 (in 3nd Floor @ main office) + code: + example: 0 + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + /api/1.0/assets/: + get: + operationId: getAssets + description: Retrieve basic information about all assets + summary: Get all + tags: + - Assets + parameters: + - $ref: '#/parameters/asset_no' + - $ref: '#/parameters/serial_no' + - $ref: '#/parameters/last_updated_lt' + - $ref: '#/parameters/last_updated_gt' + - $ref: '#/parameters/first_added_lt' + - $ref: '#/parameters/first_added_gt' + - name: type + type: string + description: filter by asset type + in: query + - $ref: '#/parameters/asset_id' + - $ref: '#/parameters/service_level' + - $ref: '#/parameters/customer' + - $ref: '#/parameters/tags' + - $ref: '#/parameters/tags_and' + - $ref: '#/parameters/asset_no_contains' + - $ref: '#/parameters/custom_fields_and' + - $ref: '#/parameters/custom_fields_or' + - $ref: '#/parameters/related_device_id' + - $ref: '#/parameters/include_cols' + responses: + '200': + description: 'The above command returns results like this:' + schema: + properties: + assets: + type: array + items: + $ref: '#/definitions/Assets' + limit: + example: 2 + offset: + example: 0 + total_count: + example: 209 + '400': + $ref: '#/definitions/BadRequest' + '401': + $ref: '#/definitions/Unauthorized' + '403': + $ref: '#/definitions/Forbidden' + '404': + $ref: '#/definitions/NotFound' + '500': + $ref: '#/definitions/InternalServerError' + '503': + $ref: '#/definitions/ServiceUnavailable' + post: + operationId: postAssets + description: Create assets + summary: Create + tags: + - Assets + parameters: + - name: type + in: formData + enum: + - 'AC' + - 'Block Tile' + - 'Breaker Panel' + - 'Cable Modem' + - 'DMARC' + - 'Door' + - 'Fabric Extender' + - 'Fax Machine' + - 'Filler Panel' + - 'Monitor' + - 'Patch Panel' + - 'Patch Panel Module' + - 'Projector' + - 'Scanner' + - 'Sensor' + - 'Shredder' + - 'Software' + - 'Speaker Phone' + - 'TAP Module' + - 'Window' + description: The type of the asset. - required.To add a single element (device) to a Business Service, use the
+ device_id OR device_name parameters. ID will be used before the name.
+
To add multiple elements (devices) to a Business Service, use the
+ device_ids OR device_names parameters. ID will be used before the name
+
To add a single element (resource) to a Business Service, use the
+ resource_id, resource_name, OR resource_identifier parameters. ID will be used before the name and identifier.
+
To add multiple elements (resources) to a Business Service, use the
+ resource_ids OR resource_names parameters. ID will be used before the name
+
To add a single element (application component) to a Business Service, use the
+ appcomp_id OR appcomp_name parameters. ID will be used before the name.
+
To add multiple elements (application component) to a Business Service, use the
+ appcomp_ids OR appcomp_names parameters. ID will be used before the name
+
To add a single element (business service) to a Business Service, use the
+ associated_businessservice_id OR associated_businessservice_name parameters. ID will be used before the name.
+
To add multiple elements (business service) to a Business Service, use the
+ associated_businessservice_ids OR associated_businessservice_names parameters. ID will be used before the name
+ summary: Add element
+ tags:
+ - Business Services
+ parameters:
+ - name: businessapp_id
+ required: true
+ type: integer
+ in: formData
+ description: The ID of an existing Business Service to add elements (devices) to.
+ - name: device_id
+ type: integer
+ in: formData
+ description: ID of an element (device) to add to the business service.
+ - name: device_name
+ type: string
+ in: formData
+ description: Name of an element (device) to add to the business service.
+ - name: device_ids
+ type: string
+ in: formData
+ description: CSV list of the IDs of elements (devices) to add to the business service.
+ - name: device_names
+ type: string
+ in: formData
+ description: CSV list of names of the elements (devices) to add to the business service.
+ - name: resource_id
+ type: integer
+ in: formData
+ description: ID of an element (resource) to add to the business service.
+ - name: resource_name
+ type: string
+ in: formData
+ description: Name of an element (resource) to add to the business service.
+ - name: resource_identifier
+ type: string
+ in: formData
+ description: Identifier of an element (resource) to add to the business service.
+ - name: resource_ids
+ type: string
+ in: formData
+ description: CSV list of the IDs of elements (resources) to add to the business service.
+ - name: resource_names
+ type: string
+ in: formData
+ description: CSV list of names of the elements (resources) to add to the business service.
+ - name: resource_identifiers
+ type: string
+ in: formData
+ description: CSV list of identifiers of the elements (resources) to add to the business service.
+ - name: appcomp_id
+ type: integer
+ in: formData
+ description: ID of an element (application component) to add to the business service.
+ - name: appcomp_name
+ type: string
+ in: formData
+ description: Name of an element (application component) to add to the business service.
+ - name: appcomp_ids
+ type: string
+ in: formData
+ description: CSV list of the IDs of elements (application components) to add to the business service.
+ - name: appcomp_names
+ type: string
+ in: formData
+ description: CSV list of names of the elements (application components) to add to the business service.
+ - name: associated_businessservice_id
+ type: integer
+ in: formData
+ description: ID of an element (business service) to add to the business service.
+ - name: associated_businessservice_name
+ type: string
+ in: formData
+ description: Name of an element (business service) to add to the business service.
+ - name: associated_businessservice_ids
+ type: string
+ in: formData
+ description: CSV list of the IDs of elements (business services) to add to the business service.
+ - name: associated_businessservice_names
+ type: string
+ in: formData
+ description: CSV list of names of the elements (business services) to add to the business service.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - element(s) added to business_app CRM App
+ - 11
+ - 1234, 5678
+ - true
+ - true
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ delete:
+ operationId: deletebusinessAppsElements
+ summary: Delete element
+ description: >-
+ This API is used to delete the business service element
+ tags:
+ - Business Services
+ parameters:
+ - name: businessapp_id
+ type: integer
+ description: business service id
+ in: query
+ required: true
+ - name: device_id
+ type: integer
+ description: device id of business element
+ in: query
+ - name: resource_id
+ type: integer
+ description: resource id of business element
+ in: query
+ - name: appcomp_id
+ type: integer
+ description: appcomp id of business element
+ in: query
+ - name: associated_businessservice_id
+ type: integer
+ description: associated business service id of business element
+ in: query
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ uuid:
+ example: '03b30f77-1638-4d34-911e-5c63da8de9d9'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ get:
+ operationId: getbusinessAppsElements
+ description: This call will get business service elements
+ summary: Get elements
+ tags:
+ - Business Services
+ parameters:
+ - name: name
+ type: string
+ in: query
+ description: The name (case-insensitive) of the element to seach for.
+ - name: businessapp_id
+ type: integer
+ in: query
+ description: The ID of the business service the element belongs to.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ businessapp_elements:
+ type: array
+ items:
+ properties:
+ businessapp_id:
+ example: 2
+ businessapp_element_uuid:
+ example: '344316e2-409d-4bbf-b994-f4e3f152947a'
+ device_id:
+ example: 5
+ name:
+ example: 'test device'
+ orphaned:
+ example: 'no'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/businessapps/connections/{uuid}/:
+ get:
+ operationId: getbusinessAppsConnections_uuid
+ description: This call will get a business service connection
+ summary: Get a connection
+ tags:
+ - Business Services
+ parameters:
+ - name: uuid
+ type: string
+ in: path
+ required: true
+ description: The UUID of the single connection you are looking for.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ $ref: '#/definitions/businessapps_connection'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/businessapps/connections/:
+ get:
+ operationId: getbusinessAppsConnections
+ description: This call will get business service connections
+ summary: Get connections
+ tags:
+ - Business Services
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ businessapp_connections:
+ type: array
+ items:
+ properties:
+ businessapp_connection_uuid:
+ example: '344316e2-409d-4bbf-b994-f4e3f152947a'
+ from_businessapp_element_uuid:
+ example: '344316e2-409d-4bbf-b994-f4e3f152947b'
+ to_businessapp_element_uuid:
+ example: '344316e2-409d-4bbf-b994-f4e3f152947c'
+ type:
+ example: 'test'
+ labels:
+ example: 'test'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/services/:
+ get:
+ operationId: getServices
+ description: Get services
+ summary: Get
+ tags:
+ - Services
+ parameters:
+ - name: service_id
+ in: query
+ description: D42 ID of the service
+ type: string
+ required: true
+ - $ref: '#/parameters/name'
+ - $ref: '#/parameters/category'
+ - $ref: '#/parameters/vendor'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ services:
+ type: array
+ items:
+ $ref: '#/definitions/Services'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postServices
+ description: Create/update services
+ summary: Create/update
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/name'
+ - $ref: '#/parameters/display_name'
+ - $ref: '#/parameters/category'
+ - $ref: '#/parameters/service_type'
+ - $ref: '#/parameters/vendor_post'
+ - $ref: '#/parameters/description_post'
+ - $ref: '#/parameters/notes'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - service added/updated
+ - 2
+ - DisplayLinkManager
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/1.0/services/{id}/':
+ delete:
+ operationId: deleteServices
+ summary: Delete
+ description: >-
+ This API is used to delete the service with the service id supplied as
+ the required argument. Note: You will only be able to delete the service
+ if the supplied username has the correct permissions
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: path
+ format: uuid
+ description: service id
+ type: string
+ required: true
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: 114
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/service_details/:
+ get:
+ operationId: getService_details
+ description: Get service details
+ summary: Get service details
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/device_id'
+ - $ref: '#/parameters/device'
+ - $ref: '#/parameters/service_id'
+ - $ref: '#/parameters/service_detail_id'
+ - $ref: '#/parameters/user_id'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: '543'
+ service_details:
+ type: array
+ items:
+ $ref: '#/definitions/Service_details'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postService_details
+ description: Create/update service details
+ summary: Create/update service details
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/service_name'
+ - $ref: '#/parameters/service_display_name'
+ - $ref: '#/parameters/vendor_post'
+ - $ref: '#/parameters/description_post'
+ - $ref: '#/parameters/service_type'
+ - $ref: '#/parameters/category'
+ - $ref: '#/parameters/startmode'
+ - $ref: '#/parameters/state'
+ - $ref: '#/parameters/device'
+ - $ref: '#/parameters/user'
+ - $ref: '#/parameters/appcomp'
+ - $ref: '#/parameters/install_date'
+ - $ref: '#/parameters/status'
+ - $ref: '#/parameters/at_logon'
+ - $ref: '#/parameters/at_startup'
+ - $ref: '#/parameters/event_based'
+ - $ref: '#/parameters/idle_time'
+ - $ref: '#/parameters/other_trigger'
+ - $ref: '#/parameters/other_type'
+ - $ref: '#/parameters/minutes'
+ - $ref: '#/parameters/hours'
+ - $ref: '#/parameters/days'
+ - $ref: '#/parameters/weeks'
+ - $ref: '#/parameters/day_of_month'
+ - $ref: '#/parameters/month_of_year'
+ - $ref: '#/parameters/day_of_week'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - service_detail added/updated
+ - 1
+ - Reddit Tracker
+ - true
+ - true
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/1.0/service_detail/{id}/':
+ delete:
+ operationId: deleteService_details
+ summary: Delete service details
+ description: >-
+ This API is used to delete the service details with the service details id
+ supplied as the required argument. Note: You will only be able to delete
+ the service if the supplied username has the correct permissions
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: path
+ format: uuid
+ description: service detail id
+ type: string
+ required: true
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '1'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/service_ports/:
+ get:
+ operationId: getService_ports
+ description: Get service ports
+ summary: Get service ports
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: query
+ description: filter by id of the service port
+ type: string
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: '565'
+ service_ports:
+ type: array
+ items:
+ $ref: '#/definitions/Service_ports'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postService_ports
+ description: Create/update service ports
+ summary: Create/update service port
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/port'
+ - $ref: '#/parameters/device_name'
+ - $ref: '#/parameters/listening_ip'
+ - $ref: '#/parameters/description'
+ - $ref: '#/parameters/discovered_service'
+ - $ref: '#/parameters/discovered_process'
+ - $ref: '#/parameters/mapped_service'
+ - $ref: '#/parameters/remote_ips'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - service port added/updated
+ - 1
+ - '0.0.0.0:80'
+ - true
+ - true
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/1.0/service_ports/{id}/':
+ delete:
+ operationId: deleteService_ports
+ summary: Delete service port
+ description: >-
+ This API is used to delete the service port with the service port id
+ supplied as the required argument. Note: You will only be able to delete
+ the service port if the supplied username has the correct permissions
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: path
+ format: uuid
+ description: service port id
+ type: string
+ required: true
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '1'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/listener_connection_stats/:
+ get:
+ operationId: getListener_connection_stats
+ description: Get listener connection statistics
+ summary: Get listener connection statistics
+ tags:
+ - Services
+ parameters:
+ - $ref: '#/parameters/listener_device_name'
+ - $ref: '#/parameters/port'
+ deprecated: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ client_ips:
+ example: 76.127.207.96
+ client_stats:
+ type: array
+ items:
+ $ref: '#/definitions/Client_stats'
+ description:
+ example: ''
+ id:
+ example: 2207
+ listener_device_id:
+ example: 2440
+ listener_device_name:
+ example: prod-retail-webfrontend
+ listener_service:
+ example: sshd
+ listening_ip:
+ example: 0.0.0.0
+ port:
+ example: 22
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/network_shares/:
+ get:
+ operationId: getNetwork_shares
+ description: Get network shares
+ summary: Get network shares
+ tags:
+ - Services
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ networkshare_details:
+ type: array
+ items:
+ $ref: '#/definitions/Networkshare_details'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/listener_connection_stats/:
+ get:
+ operationId: getListenerConnectionStats
+ summary: Get listener connection statistics
+ description: Retrieve all listener connection statistics
+ tags:
+ - Services
+ parameters:
+ - name: port
+ in: query
+ description: child is optional assuming you have a parent created (see examples)
+ type: string
+ - name: device_name
+ in: query
+ description: the name of the device
+ type: string
+ - $ref: '#/parameters/listener_device_name'
+ - $ref: '#/parameters/discovered_service'
+ - $ref: '#/parameters/mapped_service'
+ - name: service_instance_id
+ in: query
+ description: filter by id of the service instance in use
+ type: integer
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ $ref: '#/definitions/Listener_connection_stats'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/2.0/listener_connection_stats/{id}':
+ get:
+ operationId: getListenerConnectionStatsByID
+ summary: Get listener connection statistics by ID
+ description: Retrieve listener connection statistics by service port ID
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: path
+ description: service port id
+ type: integer
+ required: true
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ $ref: '#/definitions/Listener_connection_stats_id'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/scheduled_tasks/:
+ get:
+ operationId: getScheduledTasks
+ summary: Get scheduled tasks
+ description: Retreive information about all scheduled tasks
+ tags:
+ - Services
+ parameters:
+ - name: id
+ in: query
+ description: filter results by Service schedule ID
+ type: integer
+ - name: device_id
+ in: query
+ description: device id
+ type: integer
+ - name: device
+ in: query
+ description: device
+ type: string
+ - name: user_id
+ in: query
+ description: user id
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: 2
+ service_schedules:
+ $ref: '#/definitions/Service_schedules'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postScheduledTasks
+ description: >-
+ Create/update scheduled task. 3 parameters are required:
------ OR + ------
Required parameters by cloud vendor or job type.
(API parameter = UI equivalent)
ALL DISCOVERY JOBS
- name = Name
- cloud_type = Cloud Type
+
AMAZON AWS
- accountid = Access Key ID
- secret_key OR secret_key_id = Secret Key
- regions = Regions
+
MICROSOFT AZURE
- auth_type = Authentication Type
- accountid = Client ID (Service Principal) or Username (User Credentials)
- secret_key OR secret_key_id = Client Secret (Service Principal) or Password (User Credentials)
- subscriptionid = Subscription ID
- tenant = Tenant ID
+
LINODE
- api_key OR api_key_id = API Key
+
DIGITALOCEAN
- token_key = Token Key
+
OPENSTACK
- ip = URL
- username = User
- secret_key OR secret_key_id = Password
- tenant = Project Name
+
GOOGLE CLOUD
- tenant = Project ID
- secret_key OR secret_key_id = Credentials JSON
- google_regions = Zones
+
ALIBABA CLOUD
- accountid = Access Key ID
- secret_key OR secret_key_id = Access Key Secret
+
ORACLE CLOUD
- accountid = User ID
- api_key OR api_key_id = Fingerprint
- secret_key OR secret_key_id = Key File
- tenant = Tenant ID
- oracle_regions = Zones
+
STANDALONE KUBERNETES
- ip = URL
- auth_type = Authentication Type
- accountid = Bearer Token or Basic Credentials (depending on Authentication Type)
+
ARISTA CLOUDVISION
- server = node(s)
- auth_type = Authentication Type
- username (Basic Credentials Only)
- secret_key (password if auth_type = Basic Authentication, API Token if auth_type = Bearer Token)
- tenant (CVSaaS only)
+
JAMF
- ip = URL
- accountid = User ID
+
WORKSPACE ONE
- ip = URL
- tenant = Tenant
- accountid = Basic Credentials
+ summary: Create/update cloud job
+ tags:
+ - Autodiscovery
+ - cloud
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: Name of the discovery job; required for all jobs.
+ - $ref: '#/parameters/cloud_type'
+ - $ref: '#/parameters/secret_key_id'
+ - $ref: '#/parameters/vendor_post'
+ - name: kubernetes_discovery
+ in: formData
+ description: Available for Amazon AWS, Microsoft Azure, and standalone Kubernetes.
Yes / No
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ - name: remote_collector_id
+ in: formData
+ description: ID number of the remote collector (RC) to use for the job.
+ type: string
+ - name: customer_id
+ in: formData
+ description: Customer ID number for discovered devices.
+ type: string
+ - $ref: '#/parameters/clear_customer'
+ - name: device_name_format
+ in: formData
+ description: Name format for discovered cloud instances (only for Alibaba Cloud, Amazon AWS, Google Cloud, MS Azure, Oracle Cloud).
+ type: string
+ enum:
+ - 'Instance ID + name (if defined)'
+ - 'Instance ID'
+ - 'Name (only use if unique)'
+ - name: container_not_found
+ in: formData
+ description: For Kubernetes discovery.
1 = changes status, 2 = delete container
+ type: string
+ enum:
+ - '1'
+ - '2'
+ - name: auth_type
+ in: formData
+ description: Type of authentication credentials for MS Azure and Standalone Kubernetes.
+ type: string
+ enum:
+ - 'User Credentials'
+ - 'Service Principal'
+ - 'Bearer Token'
+ - 'Basic Credentials'
+ - name: accountid
+ type: string
+ in: formData
+ description: Required for Alibaba Cloud, Amazon AWS, Kubernetes, MS Azure, Oracle Cloud, Jamf, Workspace ONE.
+ - $ref: '#/parameters/vrfgroup'
+ - $ref: '#/parameters/notes_post'
+ - $ref: '#/parameters/remove_unfound_instances'
+ - $ref: '#/parameters/strip_domain_name'
+ - $ref: '#/parameters/add_suffix'
+ - $ref: '#/parameters/match_name_only_for_virtuals'
+ - $ref: '#/parameters/match_name_only_for_hypervisor'
+ - name: groups
+ type: string
+ in: formData
+ description: name of one or more groups separated by commas
+ - name: object_category
+ type: string
+ in: formData
+ description: category of discovered vservers and vms
+ - $ref: '#/parameters/debug_level'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/secret_key'
+ - $ref: '#/parameters/regions'
+ - $ref: '#/parameters/aws_roles'
+ - aws_roles_remove:
+ name: aws_roles_remove
+ in: formData
+ type: string
+ description: >-
+ Comma separated names of aws_roles to remove from a cloud discovery job. Use * to clear all aws_roles from a cloud discovery job.
+ - name: azure_cloud_definition
+ type: string
+ in: formData
+ enum:
+ - 'Public'
+ - 'China'
+ - 'US Gov.'
+ - 'German'
+ description: Cloud Definition for MS Azure discovery jobs.
+ - name: google_regions
+ type: string
+ in: formData
+ description: comma-separated list of Google region names
+ - name: oracle_regions
+ type: string
+ in: formData
+ description: comma-separated list of Oracle region names
+ - $ref: '#/parameters/subscriptionid'
+ - name: ip
+ type: string
+ in: formData
+ description: OpenStack URL; Standalone Kubernetes URL; Jamf URL; Workspace ONE URL;
+ - name: server
+ type: string
+ in: formData
+ description: (Arista CloudVision; IP(s) or hostname(s) for CVP nodes)
+ - $ref: '#/parameters/tenant'
+ - name: username
+ type: string
+ in: formData
+ description: OpenStack username - required for OpenStack
+ - name: api_key
+ type: string
+ in: formData
+ description: Oracle Cloud Fingerprint; Linode API Key
+ - name: api_key_id
+ type: string
+ in: formData
+ description: Oracle Cloud Fingerprint; Linode API Key
+ - $ref: '#/parameters/api_token'
+ - $ref: '#/parameters/token_key'
+ - name: alibaba_regions
+ in: formData
+ description: Comma-separated list of Alibaba Cloud region names.
+ type: string
+ - name: features
+ in: formData
+ type: string
+ description: >-
+ Comma-separated list of features.
+ Choices for AWS are: s3, ebs, route53, databases, elb, functions, redshift, dynamodb, efs.
+ Choices for GCP are: databases.
+ Choices for AZURE are: databases, functions.
+ Use 'D42_NULL' to disable advanced features for Cloud discovery jobs.
+ - name: collect_db_info
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Collect database server information. Use yes or no. ( Cosmos DB for PostgreSQL only )
+ - name: db_username
+ type: string
+ in: formData
+ description: Username for DB discovery. Required if collect_db_info is 'yes'
+ - name: db_password
+ type: string
+ in: formData
+ description: Password for DB discovery. Required if collect_db_info is 'yes'
+ - name: extended_discovery
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Collect summary information on all AWS/Azure resources that are not supported by full discovery yet. Use yes or no.
+ - name: chromeos_discovery
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Collect summary information on all ChromeOS devices in Google Cloud Platform discovery. Use yes or no.
+ - name: use_env_credentials
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Use cloud credentials from environment not from job. Only supported for AWS.
+ - name: discover_all_subscriptions
+ type: boolean
+ in: formData
+ description: Discover all Subscriptions within Azure Tenant.
+ - $ref: '#/parameters/service_level_post'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - name: add_tags_as_custom_fields
+ type: integer
+ in: formData
+ enum:
+ - 1
+ - 2
+ - 3
+ description: >-
+ The way how to add vendor metadata.
+ 1: Do nothing 2: Add as custom fields 3: Add as tags
+ - name: vendor_metadata_source
+ type: integer
+ in: formData
+ enum:
+ - 1
+ - 2
+ description: >-
+ Metadata source ( For Google Cloud Only ).
+ 1: Labels 2: Custom Metadata
+ - $ref: '#/parameters/remove_password_ids'
+ - name: add_tags_to_device
+ type: integer
+ in: formData
+ enum:
+ - 1
+ - 2
+ description: >-
+ Add tags to device ( For Google Cloud Only ).
+ 1: Do nothing 2: Import Tags
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryCloudaccount
+ description: Execute cloud job
+ summary: Run cloud job
+ tags:
+ - Autodiscovery
+ - cloud
+ parameters:
+ - name: name
+ type: string
+ description: name of the job - required if no job_id
+ in: formData
+ - $ref: '#/parameters/job_id_wname'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/cloud_infrastructure/:
+ get:
+ operationId: getCloud_infrastructure
+ summary: Get AWS cloud info
+ description: Retrieves cloud account for AWS discovery
+ tags:
+ - Cloud Account
+ parameters:
+ - name: id
+ type: string
+ in: formData
+ description: Cloud account id.
+ - name: account
+ type: string
+ in: formData
+ description: Cloud account.
+ - name: organization
+ type: string
+ in: formData
+ description: Organization.
+ - name: name
+ type: string
+ in: formData
+ description: Name.
+ - name: tags
+ type: string
+ in: formData
+ description: Comma-separated list of infrastucture tags.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: 1
+ limit:
+ example: 1000
+ offset:
+ example: 0
+ cloud_infrastructures:
+ type: array
+ items:
+ type: object
+ properties:
+ account:
+ example: 458407285063
+ cloud_vendor_id:
+ example: 1
+ notes:
+ example: New Notes
+ tags:
+ example: []
+ last_changed:
+ example: 2020-06-19T16:40:02.528Z
+ first_added:
+ example: 2020-06-19T16:13:18.179Z
+ organization:
+ example: D42 Internal
+ last_edited:
+ example: 2020-06-19T16:40:02.811Z
+ id:
+ example: 1
+ custome_fields:
+ example: []
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postCloud_infrastructure
+ description: Modify cloud infrastructure for AWS discovery
+ summary: Update AWS cloud info
+ tags:
+ - Cloud Account
+ parameters:
+ - name: id
+ type: string
+ in: formData
+ description: Cloud account id (search only).
+ - name: account
+ type: string
+ in: formData
+ description: Cloud account (search only).
+ - name: notes
+ type: string
+ in: formData
+ description: Infrastucture notes.
+ - name: tags
+ type: string
+ in: formData
+ description: Comma-separated list of infrastucture tags.
+ - name: tags_remove
+ type: string
+ in: formData
+ description: Remove existing tags - yes/no.
+ enum:
+ - 'yes'
+ - 'no'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - cloud infrastructure added/updated
+ - 11
+ - rajj
+ - true
+ - false
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/cloud_infrastructure/{id}/:
+ delete:
+ operationId: deleteCloud_infrastructure
+ summary: Delete cloud info
+ description: Deletes cloud account ID and all attached cloud resources
+ tags:
+ - Cloud Account
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of the infrastructure to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '11'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/custom_fields/cloud_infrastructure/:
+ put:
+ operationId: putCustom_FieldCloud_infrastructure
+ description: Create/updated custom fields for cloud account
+ summary: Cloud info custom fields
+ tags:
+ - Cloud Account
+ parameters:
+ - name: id
+ in: formData
+ description: ID of the cloud account.
+ required: true
+ type: string
+ - $ref: '#/parameters/key'
+ - $ref: '#/parameters/custom_field_type'
+ - $ref: '#/parameters/mandatory'
+ - $ref: '#/parameters/filterable'
+ - $ref: '#/parameters/log_for_api'
+ - $ref: '#/parameters/related_field_name'
+ - $ref: '#/parameters/add_to_picklist'
+ - $ref: '#/parameters/remove_from_picklist'
+ - $ref: '#/parameters/delete_in_use'
+ - $ref: '#/parameters/related_field_value_by_id'
+ - $ref: '#/parameters/value'
+ - $ref: '#/parameters/clear_value'
+ - $ref: '#/parameters/notes_post'
+ - $ref: '#/parameters/clear_notes'
+ - $ref: '#/parameters/bulk_fields'
+ - $ref: '#/parameters/multi_select'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - custom key pair values added or updated
+ - 2
+ - 'D42-internal'
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource/:
+ get:
+ operationId: getCloud_resource
+ summary: Get cloud resource
+ description: Retrieves cloud resources for AWS discovery
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ type: integer
+ in: formData
+ description: Cloud resource id.
+ - name: name
+ type: string
+ in: formData
+ description: Resource name (partial match).
+ - name: identifier
+ type: string
+ in: formData
+ description: Resource identifier.
+ - name: device
+ type: string
+ in: formData
+ description: Device name.
+ - name: vendor_define_type
+ type: string
+ in: formData
+ description: Vendor definition type.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: 128
+ resource:
+ type: array
+ items:
+ properties:
+ category:
+ example: Device
+ zones:
+ example: usa-east-2a
+ identifier:
+ example: i-0d90158f3cf3e7e19
+ tags:
+ example: ""
+ name:
+ example: d42-internal
+ notes:
+ example: oracle cloud
+ last_changed:
+ example: 2020-06-19T16:13:18.225Z
+ subtype:
+ example: []
+ cloud_infra_id:
+ example: 2
+ region:
+ example: usa-east-2
+ root_resource_id:
+ example: 2
+ root_resource:
+ example: wbd42pstgr1
+ last_edited:
+ example: 2020-06-19T16:13:18.229Z
+ first_added:
+ example: 2020-06-19T16:13:18.229Z
+ id:
+ example: 3
+ resource_storage:
+ example: []
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postCloud_resource
+ description: Modify cloud resource for AWS discovery
+ summary: Update cloud resource
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ type: string
+ in: formData
+ description: Cloud resource id (search only).
+ - name: identifier
+ type: string
+ in: formData
+ description: Cloud resource identifier (search only).
+ - name: notes
+ type: string
+ in: formData
+ description: Resource notes.
+ - name: tags
+ type: string
+ in: formData
+ description: Comma-separated list of resource tags.
+ - name: tags_remove
+ type: string
+ in: formData
+ description: Remove existing tags - yes/no.
+ enum:
+ - 'yes'
+ - 'no'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - resource added/updated
+ - 11
+ - d42_internal
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource/{id}/:
+ delete:
+ operationId: deleteCloud_resource
+ summary: Delete cloud resource
+ description: Deletes cloud resource ID and all attached cloud resources
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of the resource to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '11'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource/{id}/archive/:
+ post:
+ operationId: archiveResourceIdv2
+ description: This API archives a resource by ID
+ summary: Archive resource by ID
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ type: integer
+ in: path
+ required: true
+ description: Resource id.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ $ref: '#/definitions/objectArchive'
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/custom_fields/resource/:
+ put:
+ operationId: putCustom_FieldCloud_resource
+ description: Create/updated custom fields for cloud resource
+ summary: Cloud resource custom fields
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ in: formData
+ description: ID of the cloud resource.
+ required: true
+ type: string
+ - $ref: '#/parameters/key'
+ - $ref: '#/parameters/custom_field_type'
+ - $ref: '#/parameters/mandatory'
+ - $ref: '#/parameters/filterable'
+ - $ref: '#/parameters/log_for_api'
+ - $ref: '#/parameters/related_field_name'
+ - $ref: '#/parameters/add_to_picklist'
+ - $ref: '#/parameters/remove_from_picklist'
+ - $ref: '#/parameters/delete_in_use'
+ - $ref: '#/parameters/related_field_value_by_id'
+ - $ref: '#/parameters/value'
+ - $ref: '#/parameters/clear_value'
+ - $ref: '#/parameters/notes_post'
+ - $ref: '#/parameters/clear_notes'
+ - $ref: '#/parameters/bulk_fields'
+ - $ref: '#/parameters/multi_select'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - custom key pair values added or updated
+ - 2
+ - 'CPU NA, PN: 1000base-lx-sfp'
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource_relationship/:
+ get:
+ operationId: getResource_relationship
+ summary: Get cloud resource relationships
+ description: Retrieves cloud resource relationships for AWS
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ type: string
+ in: formData
+ description: Cloud resource id.
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ total_count:
+ example: 128
+ resource_relationships:
+ type: array
+ items:
+ properties:
+ from_resource:
+ example: []
+ category:
+ example: Volume
+ vendor_custom_fields:
+ example: []
+ last_edited:
+ example: 2020-06-21T16:13:18.225Z
+ name:
+ example: d42-internal
+ tags:
+ example: []
+ notes:
+ example: new notes
+ cloud_infra:
+ example: []
+ account:
+ example: AW90746321
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/resource_relationship/{id}/:
+ delete:
+ operationId: deleteResource_relationship
+ summary: Delete cloud resource relationship
+ description: Deletes cloud resource relationship ID and attached resource relationships
+ tags:
+ - Resources
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of the resource relationship to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '11'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/snmp_disc/:
+ get:
+ operationId: getAuto_discoverySnmp_disc
+ summary: Get all SNMP jobs
+ description: Retrieves all SNMP autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 54
+ name:
+ example: snmpjob54
+ port:
+ example: 163
+ servers:
+ example: 192.168.3.1
+ snmp_version:
+ example: v3
+ icmp_tcp_port_check:
+ example: yes
+ debug_level:
+ example: Debug Off
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoverySnmp_disc
+ description: Create/update other SNMP autodiscovery job
+ summary: Create/update SNMP job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - name: server
+ type: string
+ in: formData
+ description: FQDN or IP of the server(s) or cidr or ranges.
+ - name: ip_address
+ type: string
+ in: formData
+ description: IP address. Required if new
+ - $ref: '#/parameters/end_ip_address'
+ - $ref: '#/parameters/snmp_string'
+ - $ref: '#/parameters/snmp_string_id'
+ - $ref: '#/parameters/snmp_strings'
+ - $ref: '#/parameters/snmp_string_ids'
+ - name: remote_collector_id
+ type: string
+ in: formData
+ description: D42 ID of the remote collector to use for this job.
+ - name: do_port_check
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Run nmap port-scan prior to discovery.
+ - name: snmp_min_parallel
+ type: integer
+ in: formData
+ description: Set nmap option min_parallelism (Only change if directed by Support).
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/strip_domain_name'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - name: groups
+ type: string
+ in: formData
+ description: name of one or more groups separated by commas
+ - $ref: '#/parameters/snmp_port'
+ - $ref: '#/parameters/snmp_version'
+ - $ref: '#/parameters/snmpv3_auth_password_id'
+ - $ref: '#/parameters/snmpv3_privacy_protocol_password_id'
+ - $ref: '#/parameters/snmpv3_user'
+ - $ref: '#/parameters/snmpv3_auth_mode'
+ - $ref: '#/parameters/snmpv3_auth_protocol'
+ - $ref: '#/parameters/snmpv3_auth_password'
+ - $ref: '#/parameters/snmpv3_privacy_protocol'
+ - $ref: '#/parameters/snmpv3_privacy_protocol_password'
+ - $ref: '#/parameters/snmpv3_context'
+ - $ref: '#/parameters/debug_level'
+ - name: service_level
+ type: string
+ in: formData
+ description: service level of discovered devices
+ - name: snmp_timeout
+ type: integer
+ in: formData
+ description: timeout for the snmp job
+ - name: snmp_retries
+ type: integer
+ in: formData
+ description: number of retries for the snmp job
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - $ref: '#/parameters/clear_customer'
+ - name: ignore_logical_ports
+ required: false
+ type: boolean
+ in: formData
+ default: false
+ description: Ignore logical ports.
+ - customer_id:
+ name: customer_id
+ in: formData
+ type: string
+ description: D42 ID of customer or department name.
+ - name: customer
+ type: string
+ in: formData
+ description: Name of customer/department.
+ - $ref: '#/parameters/remove_password_ids'
+ - $ref: '#/parameters/autodiscover_cdp_devices'
+ - $ref: '#/parameters/delete_older_mac_association_after'
+ - $ref: '#/parameters/delete_switch_port_not_found'
+ - $ref: '#/parameters/discover_parts'
+ - $ref: '#/parameters/exclude_servers'
+ - $ref: '#/parameters/get_all_switch_ports'
+ - $ref: '#/parameters/hostname_precedence'
+ - $ref: '#/parameters/module_not_found'
+ - $ref: '#/parameters/name_to_use_for_newly_discovered_module'
+ - $ref: '#/parameters/polling_interval'
+ - $ref: '#/parameters/port_name_prefix_to_ignore_macs'
+ - $ref: '#/parameters/skip_vlan_indexing'
+ - $ref: '#/parameters/toggle_in_service_on_module_power_state'
+ - $ref: '#/parameters/use_name_alias_port_descr'
+ - $ref: '#/parameters/vlans_to_ignore'
+ - $ref: '#/parameters/vrfgroup'
+ - name: category
+ in: formData
+ description: name of the category
+ type: string
+ - name: port_name_prefix_to_mark_as_uplink
+ type: string
+ in: formData
+ description: Port name prefix to mark as uplink. Marks discovered ports with these switch port prefix names (comma separated) as uplinks.
+ - name: query_device_advertised_contexts
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Query device advertised contexts
+ - name: Secondary Contexts
+ type: string
+ in: formData
+ description: Comma separated values of secondary contexts.
+ - name: ignore_oids
+ type: string
+ in: formData
+ description: Ignore the following OIDs
+ - name: vlans_to_include
+ type: string
+ in: formData
+ description: Comma separated or range values of VLAN to include.
+ - name: dont_add_new_device_on_remote_port
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Ignore remote port device information
+ - name: enable_pdu_monitoring
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Enable PDU monitoring - yes/no.
+ - name: overwrite_object_categories
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Overwrite the object categories for existing discovered devices.
Note - this is equivalent to the 'Overwrite existing object categories' parameter shown in the D42 Nmap UI.
+ - name: overwrite_subnet_categories
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ description: >-
+ If a subnet is discovered that exists and already has a subnet
+ category, the category will be overwritten and all child subnets of
+ the discovered subnet will also get the new category.
+ - name: send_sfp_as_parts
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Add SFP ports as Parts
+ - name: include_unit_name
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Include the power unit name in the Device42 name assigned to the power unit
+ - name: include_serial_in_name
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Include the serial number in the Device42 name assigned to the power unit
+ - name: include_ip_in_name
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Include the serial number in the Device42 name assigned to the power unit
+ - name: service_level_module
+ type: string
+ in: formData
+ description: Service Level for Module not found
+ - name: device_category
+ type: string
+ in: formData
+ description: Object Category for discovered devices.Existing object category will not be overwritten.
+ - name: ignore_os
+ type: string
+ in: formData
+ description: Ignore the following OS(s)
+ - name: discovered_port_types_to_ignore
+ type: string
+ in: formData
+ description: Discovered port types to ignore separated by commas.
+ - name: remove_discovered_port_types_to_ignore
+ type: string
+ in: formData
+ description: Remove from Discovered port types to ignore list separated by commas.
+ - name: discovered_port_types_not_to_count
+ type: string
+ in: formData
+ description: Discovered port types not to count separated by commas.
+ - name: remove_discovered_port_types_not_to_count
+ type: string
+ in: formData
+ description: Remove from Discovered port types not to count list separated by commas.
+ - name: scan_all_protocols
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ in: formData
+ description: yes or no
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoverySnmp_disc
+ description: Execute SNMP autodiscovery job
+ summary: Run SNMP job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ description: name of the job - required if no job_id
+ in: formData
+ - $ref: '#/parameters/job_id_wname'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/auto_discovery/storagearraytarget/:
+ get:
+ operationId: getAuto_discoveryStorageArray
+ summary: Get all storage array jobs
+ description: Retrieves all storage array autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 54
+ name:
+ example: SA-Test-Job-2
+ platform:
+ example: netapp
+ servers:
+ example: 192.168.3.1
+ schedule_days:
+ example: ''
+ schedule_time:
+ example: ''
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryStorageArray
+ description: Create/update a storage array autodiscovery job
+ summary: Create/update storage array job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - name: server
+ type: string
+ in: formData
+ description: IP or FQDN of target server(s).
REQUIRED if new.
+ - name: remote_collector_id
+ type: string
+ in: formData
+ description: D42 ID of the remote collector to use for this job.
REQUIRED if new.
+ - name: platform
+ type: string
+ in: formData
+ enum:
+ - 'emc-ecs'
+ - 'emc-smis'
+ - 'emc-unity'
+ - 'hp3par'
+ - 'infinidat'
+ - 'isilon'
+ - 'netapp'
+ - 'orcl-zfs'
+ - 'pure-storage'
+ - 'hitachi'
+ - 'lsi'
+ - 'ibm'
+ - 'dell-equal'
+ - 'hp3par'
+ - 'xtrem-io'
+ - 'tintri'
+ - 'recover-point'
+ - 'hp-lefthand'
+ - 'hdsg1k'
+ - 'data-domain'
+ - 'ibm-flash'
+ - 'dell-compellent'
+ - 'nimble'
+ - 'hpe-storeeasy'
+ - 'emc-uni-rest'
+ - 'dell-powerstore'
+ - 'purity-fb'
+ - 'lenovo'
+ description: Storage Array platform.
+ - name: url_prefix
+ type: string
+ in: formData
+ enum:
+ - 'http'
+ - 'https'
+ - name: port
+ type: string
+ in: formData
+ description: Specify port. Use UI default if unsure.
+ - name: exclude_servers
+ type: string
+ in: formData
+ description: IP or FQDN of servers to exclude.
+ - name: polling_interval
+ type: integer
+ in: formData
+ description: Polling interval in seconds.
+ - name: enable_resources_monitoring
+ type: string
+ in: formData
+ enum:
+ - 'yes'
+ - 'no'
+ description: Enable performance data collection.
+ - name: max_timeout
+ type: integer
+ in: formData
+ description: Maximum timeout on connection (in seconds).
+ - name: netapp_target
+ type: string
+ in: formData
+ enum:
+ - 'filer'
+ - 'dfm'
+ - 'ocum'
+ description: Netapp target type.
+ - name: netap_protocol
+ type: string
+ in: formData
+ enum:
+ - 'https'
+ - 'http'
+ - 'insecure-https'
+ description: Netapp protocol type.
+ - name: sat_not_found
+ type: string
+ in: formData
+ enum:
+ - '1'
+ - '2'
+ description: Action for Storage Array not found.
1 = Keep array resource.
2 = Delete array resource.
+ - name: username
+ type: string
+ in: formData
+ description: Username to use for discovery.
+ - name: password
+ type: string
+ in: formData
+ description: Password to use for discovery.
+ - name: password_ids
+ type: string
+ in: formData
+ description: One or more D42 password ID numbers separated by commas.
+ - name: token_auth
+ type: string
+ in: formData
+ description: Whether to authenticate with the token or username/password.
+ enum:
+ - 'yes'
+ - 'no'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - $ref: '#/parameters/remove_password_ids'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - storage array job added/updated
+ - 11
+ - d42_internal
+ - true
+ - false
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryStorageArray
+ description: Execute a storage array autodiscovery job
+ summary: Run storage array job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ description: Name of the job
- required if no job_id supplied
+ in: formData
+ - name: job_id
+ type: string
+ description: D42 ID for the job
- required if no job name supplied
+ in: formData
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/auto_discovery/storagearraytarget/{id}/:
+ delete:
+ operationId: deleteStorageArray_discovery
+ summary: Deletes storage array job
+ description: Deletes a storage array autodiscovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of Storage Array discovery job to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '11'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/ipmi/:
+ get:
+ operationId: getAuto_discoveryIpmi
+ summary: Get all IPMI/Redfish jobs
+ description: Retrieves all IPMI/Redfish autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 54
+ name:
+ example: IPMIjob54
+ discovery_type:
+ example: IPMI
+ ip_start:
+ example: 10.42.54.17
+ ip_end:
+ example: 10.42.54.21
+ serial_to_use:
+ example: Product serial
+ servers:
+ example: 192.168.3.1
+ host_name_to_use:
+ example: Serial / Reverse DNS / IP
+ vrfgroup:
+ example: ''
+ add_hardware_model:
+ example: no
+ overwrite_device_name:
+ example: yes
+ debug_level:
+ example: Debug Off
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryIpmi
+ description: Create IPMI/Redfish autodiscovery job
+ summary: Create IPMI/Redfish job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - $ref: '#/parameters/ip_start'
+ - $ref: '#/parameters/ip_end'
+ - $ref: '#/parameters/bmc_user'
+ - $ref: '#/parameters/bmc_password'
+ - $ref: '#/parameters/hostname_to_use'
+ - $ref: '#/parameters/update_model_if_found'
+ - $ref: '#/parameters/run_as_operator'
+ - $ref: '#/parameters/overwrite_device_name'
+ - name: object_category
+ type: string
+ in: formData
+ - name: vrfgroup
+ type: string
+ in: formData
+ description: name of vrf group for discovered subnets
+ - name: vrfgroup_id
+ type: number
+ in: formData
+ description: id of vrf group for discovered subnets
+ - $ref: '#/parameters/overwrite_object_categories'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - name: groups
+ type: string
+ in: formData
+ description: name of one or more groups separated by commas
+ - name: debug_level
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ in: formData
+ - $ref: '#/parameters/discovery_type'
+ - $ref: '#/parameters/remote_collector_id'
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - $ref: '#/parameters/remove_password_ids'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: IPMI autodiscovery job added
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryIpmi
+ description: Execute IPMI/Redfish autodiscovery job
+ summary: Run IPMI job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/ucs/:
+ get:
+ operationId: getAuto_discoveryUcs
+ summary: Get all UCS/ACI/Load Balancer jobs
+ description: Retrieves all UCS/ACI/Load Balancer autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ decommissioned_service_level_id:
+ example: ''
+ job_id:
+ example: 54
+ hostname_to_use:
+ example: 2
+ platform:
+ example: UCS
+ name:
+ example: UCSjob54
+ exclude_servers:
+ example: ''
+ server:
+ example: 10.42.54.21
+ device_category:
+ example: ''
+ schedule_days:
+ example: 1,2,4
+ schedule_time:
+ example: 23:00
+ debug_level:
+ example: Debug Off
+ port:
+ example: 443
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryUcs
+ description: Create/update a UCS/ACI/Load Balancer autodiscovery job
+ summary: Create/update UCS/ACI/Load Balancer job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - $ref: '#/parameters/remote_collector_id'
+ - name: platform
+ in: formData
+ type: string
+ required: true
+ enum:
+ - 'UCS'
+ - 'ACI'
+ - 'F5'
+ - 'NetScaler'
+ - 'Alteon'
+ - 'Cisco Prime'
+ description: Required
+ - name: server
+ in: formData
+ type: string
+ description: FQDN or IP of the server(s) or CIDR or ranges
+ - name: port
+ in: formData
+ type: string
+ required: true
+ description: Default is 443 - use this default if you are not sure.
+ - name: use_ssl
+ in: formData
+ type: string
+ description: Default is Yes - use this default if you are not sure.
+ enum:
+ - 'Yes'
+ - 'No'
+ - name: exclude_servers
+ in: formData
+ type: string
+ description: Servers to ignore
+ - name: username
+ in: formData
+ type: string
+ required: True
+ - name: password
+ in: formData
+ type: string
+ required: True
+ - name: password_id
+ type: integer
+ in: formData
+ description: The D42 ID of the existing secret for the password for the job.
+ - name: hostname_to_use
+ type: string
+ in: formData
+ required: true
+ description: Required - relevant for new devices only. If a device with same serial number already exists, name is ignored
+ enum:
+ - 'Serial #'
+ - 'Discovered Name'
+ - name: hostname_precedence
+ type: string
+ in: formData
+ description: Discovered name for the device is given precedence over existing name in the system.
+ enum:
+ - 'Yes'
+ - 'No'
+ - name: toggle_service_level_on_power_state
+ type: string
+ in: formData
+ description: Toggle the service level of a device based on power state.
+ enum:
+ - 'Yes'
+ - 'No'
+ - name: decommissioned_service_level_id
+ type: string
+ in: formData
+ description: Service level for decommissioned devices.
+ - name: vrf_group_id
+ in: formData
+ type: string
+ description: VRF Group for discovered devices.
+ - name: object_category
+ type: string
+ in: formData
+ description: Existing object category will not be overwritten.
+ - $ref: '#/parameters/overwrite_object_categories'
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - name: debug_level
+ type: string
+ in: formData
+ enum:
+ - 'Debug Off'
+ - 'Debug On'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ - $ref: '#/parameters/remove_password_ids'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example:
+ - ucs autodiscovery job added
+ - 11
+ - UCS-AD-1
+ - true
+ - true
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryUcs
+ description: Execute UCS/ACI/Load Balancer autodiscovery job
+ summary: Run UCS/ACI/Load Balancer job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/dns/:
+ get:
+ operationId: getAuto_discoveryDns
+ summary: Get DNS jobs
+ description: Retrieves all autodiscovery jobs for DNS
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ nameserver:
+ example: 192.168.11.104
+ zonename:
+ example: 10.10.in-addr.arpa
+ job_id:
+ example: '10'
+ schedule:
+ example: 'M T W Th F S Su 09:44:18 ; M T F S Su 09:44:23 ;'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryDns
+ description: Create DNS autodiscovery job
+ summary: Create DNS job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/zonename'
+ - name: nameserver
+ type: string
+ description: IP/FQDN of the nameserver
+ required: true
+ in: formData
+ - name: remote_collector_id
+ type: string
+ in: formData
+ description: D42 ID of the remote collector to use for this job.
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: DNS Zone autodiscovery job added
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryDns
+ description: Execute DNS autodiscovery job
+ summary: Run DNS job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/auto_discovery/database_discovery/:
+ get:
+ operationId: getAuto_discoveryDBDiscovery
+ summary: Get Database Discovery jobs
+ description: Retrieves all autodiscovery jobs for Database Discovery
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ limit:
+ example: 1000
+ offset:
+ example: 0
+ database_discovery:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 1
+ remote_collector_id:
+ example: 10
+ last_status:
+ example: success
+ schedule_time:
+ example: 16:08
+ schedule_days:
+ example: 0,1,2,3,4,5,6
+ adm_interval:
+ example: 1800
+ debug_level:
+ example: "on"
+ job_name:
+ example: Demo Database Discovery
+ database_accounts:
+ type: array
+ items:
+ properties:
+ server:
+ example: 10.90.11.5
+ dba_id:
+ example: 17
+ appcomp_id:
+ example: 4
+ connection_name:
+ example: oracle_name
+ platform:
+ example: oracle
+ secret_id:
+ example: 1
+ instance:
+ example: ORCL2
+ port:
+ example: 1521
+ total_count:
+ example: 30
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryDBDiscovery
+ description: Create Database Discovery autodiscovery job
+ summary: Create Database Discovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: Name of the job
+ - $ref: '#/parameters/remote_collector_id'
+ - name: debug_level
+ type: string
+ in: formData
+ enum:
+ - 'Debug Off'
+ - 'Debug On'
+ - name: adm_interval
+ type: integer
+ in: formData
+ description: >-
+ Interval in seconds to periodically sample Database Connections.
+ Valid values are: 0, 1800, 3600, 7200, 14400, 21600, 43200, 86400.
+ No Database Connection sampling will occur if the value is zero.
+ - name: connection_name
+ type: string
+ required: true
+ in: formData
+ description: Name of the connection
+ - name: appcomp_id
+ type: integer
+ required: true
+ in: formData
+ description: Application component ID to be associated with the discovered database
+ - name: platform
+ required: true
+ in: formData
+ description: Database platform
+ type: string
+ enum:
+ - oracle
+ - mssql
+ - postgres
+ - db2
+ - name: server
+ type: string
+ required: true
+ in: formData
+ description: Database server
+ - name: port
+ type: integer
+ required: true
+ in: formData
+ description: Database port
+ - name: instance
+ type: string
+ in: formData
+ description: Database Instance for Oracle. Required for Oracle
+ - name: database
+ type: string
+ in: formData
+ description: Database for Postgres/DB2. Required for Postgres, required for DB2 if "databases" is not supplied
+ - name: databases
+ type: string
+ in: formData
+ description: Databases for DB2. Required for DB2 if "database" is not supplied
+ - name: db_username
+ type: string
+ in: formData
+ description: Username for Database discovery. Required if "db_password" is supplied
+ - name: db_password
+ type: string
+ in: formData
+ description: Password for Database discovery. Required if "db_username" is supplied
+ - name: credential_id
+ type: integer
+ in: formData
+ description: Password ID for Database discovery. Required if "db_username"/"db_password" are not supplied
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/clear_existing_schedule'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ type: array
+ items:
+ example:
+ - database discovery autodiscovery job added
+ - 54
+ - test_api
+ - true
+ - true
+ code:
+ example:
+ 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryDBDiscovery
+ description: Execute Database Discovery autodiscovery job
+ summary: Run Database Discovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/2.0/auto_discovery/database_discovery/{id}/':
+ delete:
+ operationId: deleteAuto_discoveryDBDiscovery
+ summary: Delete Database Discovery job
+ description: >-
+ Deletes an Database Discovery autodiscovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of Database Discovery discovery job to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '182'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/2.0/auto_discovery/dhcp_discovery/:
+ get:
+ operationId: getAuto_discoveryDHCPDiscovery
+ summary: Get DHCP Discovery jobs
+ description: Retrieves all autodiscovery jobs for DHCP Discovery
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ limit:
+ example: 1000
+ offset:
+ example: 0
+ dhcp_discovery:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 1
+ remote_collector_id:
+ example: 10
+ use_win_rm:
+ example: false
+ wds:
+ example: "10.90.11.23"
+ last_status:
+ example: success
+ schedule_time:
+ example: 16:08
+ schedule_days:
+ example: 0,1,2,3,4,5,6
+ debug_level:
+ example: "on"
+ job_name:
+ example: Demo DHCP Discovery
+ dhcp_servers:
+ type: array
+ items:
+ properties:
+ server:
+ example: 10.90.11.5
+ dhcp_conn_id:
+ example: 17
+ secret_id:
+ example: 1
+ total_count:
+ example: 30
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryDHCPDiscovery
+ description: Create DHCP Discovery autodiscovery job
+ summary: Create DHCP Discovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: Name of the job
+ - $ref: '#/parameters/remote_collector_id'
+ - name: debug_level
+ type: string
+ in: formData
+ enum:
+ - 'Debug Off'
+ - 'Debug On'
+ - name: use_win_rm
+ type: boolean
+ required: false
+ in: formData
+ description: Flag to indicate whether use WinRM for discovery
+ - name: wds
+ in: formData
+ description: WDS server to use
+ type: string
+ - name: server
+ type: string
+ required: true
+ in: formData
+ description: DHCP server
+ - name: dhcp_username
+ type: string
+ in: formData
+ description: Username for DHCP discovery. Required if "dhcp_password" is supplied
+ - name: dhcp_password
+ type: string
+ in: formData
+ description: Password for DHCP discovery. Required if "dhcp_username" is supplied
+ - name: credential_id
+ type: integer
+ in: formData
+ description: Password ID for DHCP discovery. Required if "dhcp_username"/"dhcp_password" are not supplied
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/clear_existing_schedule'
+ - $ref: '#/parameters/customer_form'
+ - $ref: '#/parameters/clear_customer'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ type: array
+ items:
+ example:
+ - DHCP discovery autodiscovery job added
+ - 54
+ - test_api
+ - true
+ - true
+ code:
+ example:
+ 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryDHCPDiscovery
+ description: Execute DHCP Discovery autodiscovery job
+ summary: Run DHCP Discovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - $ref: '#/parameters/job_id'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ '/api/2.0/auto_discovery/dhcp_discovery/{id}/':
+ delete:
+ operationId: deleteAuto_discoveryDHCPDiscovery
+ summary: Delete DHCP Discovery job
+ description: >-
+ Deletes an DHCP Discovery autodiscovery job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: id
+ in: path
+ required: true
+ description: ID of DHCP Discovery autodiscovery job to delete.
+ type: string
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ deleted:
+ example: 'true'
+ id:
+ example: '182'
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/certificate/:
+ get:
+ operationId: getAuto_discoveryCertificate
+ summary: Get certificate jobs
+ description: Retrieves all autodiscovery jobs for certificates
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ end_ip_address:
+ example: 10.42.42.100
+ follow_chain:
+ example: 'no'
+ job_id:
+ example: '1'
+ name:
+ example: D42
+ ports:
+ example: '443'
+ start_ip_address:
+ example: 10.42.42.0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryCertificate
+ description: Create Certificate autodiscovery job
+ summary: Create certificate job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ required: true
+ in: formData
+ description: name of the job
+ - $ref: '#/parameters/server'
+ - $ref: '#/parameters/start_ip_address'
+ - name: end_ip_address
+ in: formData
+ type: string
+ description: Legacy Field. Please use Server property
+ - $ref: '#/parameters/exclude_servers'
+ - $ref: '#/parameters/ports'
+ - name: remote_collector_id
+ type: string
+ in: formData
+ description: D42 ID of the remote collector to use for this job
+ - name: get_cipher_suites
+ type: boolean
+ in: formData
+ description: Find cipher suites supported by the server
+ - $ref: '#/parameters/follow_chain'
+ - name: debug_level
+ type: string
+ enum:
+ - 'yes'
+ - 'no'
+ default: 'no'
+ in: formData
+ - name: dont_add_new_devices
+ type: string
+ in: formData
+ enum:
+ - 'true'
+ - 'false'
+ description: Protocol and cipher suites information will be ignored if device doesn't exist.
+ - $ref: '#/parameters/schedule_time'
+ - $ref: '#/parameters/schedule_days'
+ - $ref: '#/parameters/tags_post'
+ - $ref: '#/parameters/tags_remove_generic'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Certificate autodiscovery job added
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ put:
+ operationId: putAuto_discoveryCertificate
+ description: Execute certificate autodiscovery job
+ summary: Run certificate job
+ tags:
+ - Autodiscovery
+ parameters:
+ - name: name
+ type: string
+ description: name of the job - required if no job_id
+ in: formData
+ - $ref: '#/parameters/job_id_wname'
+ - $ref: '#/parameters/run'
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ msg:
+ example: Task is scheduled for running
+ code:
+ example: 0
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ /api/1.0/auto_discovery/adldap/:
+ get:
+ operationId: getAuto_discoveryAdldap
+ summary: Get all AD/LDAP jobs
+ description: Retrieves all AD/LDAP autodiscovery jobs
+ tags:
+ - Autodiscovery
+ responses:
+ '200':
+ description: 'The above command returns results like this:'
+ schema:
+ properties:
+ jobs:
+ type: array
+ items:
+ properties:
+ job_id:
+ example: 2
+ name:
+ example: AD-TestAdmins
+ ldap_settings:
+ example: Active Directory/LDAP Settings
+ dn_type:
+ example: Group
+ group_dn:
+ example: adsasd
+ '400':
+ $ref: '#/definitions/BadRequest'
+ '401':
+ $ref: '#/definitions/Unauthorized'
+ '403':
+ $ref: '#/definitions/Forbidden'
+ '404':
+ $ref: '#/definitions/NotFound'
+ '500':
+ $ref: '#/definitions/InternalServerError'
+ '503':
+ $ref: '#/definitions/ServiceUnavailable'
+ post:
+ operationId: postAuto_discoveryAdldap
+ description: >-
+ Create/update AD/LDAP autodiscovery job. Required parameters: