'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/power_disc/:
post:
operationId: postAuto_discoveryPower_disc
description: Create/update power autodiscovery job
summary: Create/update power job
tags:
- Autodiscovery
deprecated: true
parameters:
- name: name
type: string
required: true
in: formData
description: name of the job
- $ref: '#/parameters/appliance'
- name: server
type: string
in: formData
description: FQDN or IP of the server(s) or cidr or ranges.
- name: ipaddress
type: string
in: formData
description: IP address. Required if new
- $ref: '#/parameters/end_ip_address'
- $ref: '#/parameters/snmp_string'
- $ref: '#/parameters/snmp_strings'
- $ref: '#/parameters/snmp_string_ids'
- $ref: '#/parameters/schedule_time'
- $ref: '#/parameters/schedule_days'
- $ref: '#/parameters/strip_domain_name'
- $ref: '#/parameters/clear_existing_schedule'
- $ref: '#/parameters/vrfgroup'
- $ref: '#/parameters/object_category'
- name: category
in: formData
description: subnet category to assign to addresses of discovered units
type: string
- 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/snmp_string_id'
- $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/hostname_precedence'
- $ref: '#/parameters/service_level_post'
- $ref: '#/parameters/name_to_use_for_newly_discovered_module'
- $ref: '#/parameters/toggle_in_service_on_module_power_state'
- $ref: '#/parameters/module_not_found'
- $ref: '#/parameters/name_to_use_for_newly_discovered_pdu'
- $ref: '#/parameters/polling_interval'
- $ref: '#/parameters/remove_password_ids'
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example: Power 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_discoveryPower_disc
description: Execute power autodiscovery job
summary: Run power job
tags:
- Autodiscovery
deprecated: true
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/vserver/:
get:
operationId: getAuto_discoveryvServer
summary: Get all vServer jobs
description: Retrieves all vServer autodiscovery jobs
tags:
- Autodiscovery
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
jobs:
type: array
items:
properties:
url_prefix:
example: https
job_id:
example: 54
name:
example: vserverjob54
port:
example: 443
target:
example: 192.168.11.21
'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_discoveryVserver
description: Create/update vServer autodiscovery job
summary: Create/update vServer 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
required: true
- name: platform
in: formData
type: string
enum:
- windows
- classic winrm
- docker api
- docker
- nutanix
- linux
- vmware
- unix
- aix hmc
- openvz
- oracle vm
- lxc
- kvm
- libvirt
- ovirt
- redhat
- citrix xen
- sccm
required: true
- name: use_ftp
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Use FTP instead of Telnet for discovery.
- $ref: '#/parameters/clear_existing_schedule'
- $ref: '#/parameters/schedule_time'
- $ref: '#/parameters/schedule_days'
- name: password_ids
type: string
in: formData
description: One or more D42 password ID numbers separated by commas
- 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/service_level_post'
- $ref: '#/parameters/url_prefix'
- name: port
type: string
in: formData
description: specify port
- $ref: '#/parameters/url_suffix'
- name: username
type: string
in: formData
description: username to use in discovery. Required when creating a new job.
- name: password
type: string
in: formData
description: password to use in discovery. Required when creating a new job.
- name: collect_db_info
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Collect database server information. Use yes or no.
- 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: collect_with_db_server
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Collect SCCM by using the database server. Use yes or no.
- $ref: '#/parameters/strip_domain_suffix'
- $ref: '#/parameters/prepend_vmhostname'
- $ref: '#/parameters/ignore_powered_off'
- $ref: '#/parameters/discover_vms'
- $ref: '#/parameters/vm_name_to_use'
- $ref: '#/parameters/add_multiple_vm_names_as_alias'
- $ref: '#/parameters/toggle_service_level_on_vm_power_state'
- $ref: '#/parameters/get_guest_os_info'
- $ref: '#/parameters/ignore_guest_uuid'
- $ref: '#/parameters/vm_not_found'
- $ref: '#/parameters/track_vm_name_change'
- $ref: '#/parameters/hostname_precedence'
- $ref: '#/parameters/hostidlist'
- $ref: '#/parameters/vm_add_disk'
- $ref: '#/parameters/host_allow_duplicate_serials'
- $ref: '#/parameters/ignore_host_serial'
- $ref: '#/parameters/ignore_host_uuid'
- $ref: '#/parameters/overwrite_object_categories'
- $ref: '#/parameters/remote_collector_id'
- $ref: '#/parameters/use_service_account'
- $ref: '#/parameters/ignore_ipv6'
- $ref: '#/parameters/ignore_virt_subtype'
- $ref: '#/parameters/device_name_format'
- $ref: '#/parameters/discover_parts'
- $ref: '#/parameters/capture_hosts_file'
- $ref: '#/parameters/discover_software'
- $ref: '#/parameters/initial_software_type'
- name: discover_lines_of_code
type: string
in: formData
enum:
- 'yes'
- 'no'
description: If enabled, please set the max timeout for the discovery to greater than 5 minutes.
- $ref: '#/parameters/discover_services'
- $ref: '#/parameters/discover_applications'
- $ref: '#/parameters/store_config_files'
- $ref: '#/parameters/discover_cloudid'
- $ref: '#/parameters/customer_id'
- $ref: '#/parameters/clear_customer'
- $ref: '#/parameters/vrf_group_id_post'
- $ref: '#/parameters/service_level_device_id'
- $ref: '#/parameters/sudo_retry'
- $ref: '#/parameters/alternate_sudo'
- $ref: '#/parameters/use_domain_server'
- $ref: '#/parameters/ldap_server'
- $ref: '#/parameters/use_fqdn'
- $ref: '#/parameters/ldap_filter_type'
- $ref: '#/parameters/ldap_unpwd_id'
- $ref: '#/parameters/alternate_sudo_password_id'
- $ref: '#/parameters/polling_interval'
- $ref: '#/parameters/enable_resources_monitoring'
- name: ignore_host_os_info
in: formData
type: string
enum:
- 'yes'
- 'no'
description: Option to ignore the Host OS name
- $ref: '#/parameters/exclude_servers'
- name: allow_su
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Allow super user permissions to another user
- name: use_ftps
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Use FTPS instead of Telnet for discovery.
- name: use_winrm
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Use WinRM for windows discovery instead of WDS/WMI.
- name: use_winrm_wds
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Use WinRM through the WDS service for windows discovery instead of WDS using WMI or direct WinRM from RC.
- name: sync_notes
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Sync Notes. Currently only for VMWare.
- name: discover_vcloud
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Discover vCloud. Only for VMWare.
- name: add_custom_attributes_as_custom_fields
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Get Custom Attributes as Custom Fields. Only for VMWare.
- name: remote_ip_exclusions
type: string
in: formData
description: start_ip-end_ip of remote IP range to exclude,eg.
1.1.1.1-1.1.1.5
Provide comma separated values to exclude multiple ranges, eg.
1.1.1.1-1.1.1.2,3.2.2.2-3.2.2.255
- name: remote_ip_exclusions_clear
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Remove all remote_ip_exclusions from vserver
- name: add_tags_as_custom_fields
type: integer
in: formData
enum:
- 1
- 2
description: >-
Add vCloud vendor tags as custom fields.
Works only if "Discover vCloud" checked. Tags with keys greater than 32 characters will be omitted.
1: Tag as key, description as value 2: Category as key, tag as value
- $ref: '#/parameters/tags_post'
- $ref: '#/parameters/tags_remove_generic'
- name: ignore_disc_nics
type: string
in : formData
description: Ignore the following interfaces (* for all or name(s) that starts with entered text as CSV)
- name: ignore_disc_ips
type: string
in : formData
description: Ignore the following IPs (can be IP(s), CIDR(s) and/or range(s).
- name: ignore_disc_macs
type: string
in : formData
description: Ignore the following MACs (* for all or MAC(s) that starts with entered text as CSV)
- $ref: '#/parameters/remove_password_ids'
- name: prioritize_dns_name
type: string
enum:
- 'yes'
- 'no'
in: formData
description: yes or no
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example:
- vserver autodiscovery job added
- 10
- Create_by_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_discoveryVserver
description: Execute vServer job
summary: Run vServer 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/cloudaccount/:
get:
operationId: getAuto_discoveryCloudaccount
summary: Get all cloud jobs
description: Retrieves all cloud autodiscovery jobs
tags:
- Autodiscovery
- cloud
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
jobs:
type: array
items:
properties:
job_id:
example: 54
name:
example: Oraclejob54
cloud_type:
example: oracle cloud
vendor:
example: oracle
remote_collector:
example: rc-223-la
user_id:
example: sjapo4duy17re45
key_file:
example: b48b-9acd57b4a3a0
tenant_id:
example: a41cde6e-8f12-44b8
oracle_regions:
example: us-ashburn-1,us-phoenix-1
instance_not_found:
example: Change status
collect_db_info:
example: 'no'
db_usernames:
example: []
db_password_ids:
example: []
add_tags_to_device:
example: 2
add_tags_as_custom_fields:
example: 3
vendor_metadata_source:
example: 2
'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_discoveryCloudaccount
description: >-
Create/update a cloud autodiscovery job.
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:
- name
- group_dn
summary: Create/update AD/LDAP job
tags:
- Autodiscovery
parameters:
- name: name
type: string
required: true
in: formData
description: name of the job
- name: group_dn
type: string
required: true
in: formData
description: Group or OU DN
- name: ldap_settings
type: string
in: formData
description: optional if system only has 1 ldap settings or a default ldap domain or domain is provided - exact case insensitive search on name of LDAP settings to use
- name: domain
type: string
in: formData
description: exact case insensitive search on name of LDAP domain to use
- name: username
type: string
in: formData
description: user name to set for job
- name: password
type: string
in: formData
description: set password for job
- name: password_id
type: string
in: formData
description: actual ID of secret to use
- name: enduser_contact_attribute
type: string
in: formData
description: End user contact attribute
- name: enduser_location_attribute
type: string
in: formData
description: End user location attribute
- name: enduser_notes_attribute
type: string
in: formData
description: End user notes attribute
- name: recursive
type: boolean
in: formData
description: Recursively search nested groups
- name: username_lowercase
type: boolean
in: formData
description: Add username in lowercase
- name: ignore_existing_admins
type: boolean
in: formData
description: Ignore existing Administrators
- name: clear_existing_admin_perms
type: boolean
in: formData
description: clear any existing Administrator Permissions Groups
- name: type
type: string
in: formData
description: administrators / end users
- name: dn_type
type: string
in: formData
description: Group or OU DN
- name: custom_filter
type: string
in: formData
description: optional Custom Filter
- name: schedule_name
in: formData
description: schedule name
type: string
- $ref: '#/parameters/clear_existing_schedule'
- $ref: '#/parameters/schedule_days'
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example:
- vserver autodiscovery job added
- 10
- Create_by_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_discoveryAdldap
description: Execute AD/LDAP job
summary: Run AD/LDAP 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/{id}/':
delete:
operationId: deleteAdldap_discovery
summary: Delete AD/LDAP job
description: >-
Deletes an AD/LDAP autodiscovery job
tags:
- Autodiscovery
parameters:
- name: id
in: path
required: true
description: ID of AD/LDAP 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/1.0/auto_discovery/warranty/:
get:
operationId: getAuto_discoveryWarranty
summary: Get warranty jobs
description: Retrieves all autodiscovery jobs for warranties. Must be a Super User to access Warranty API.
tags:
- Autodiscovery
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
jobs:
type: array
items:
properties:
type:
example: Dell
job_id:
example: 1
api_version:
example: 5
name:
example: WarrantyTest
order_number_type:
example: common
schedule_time:
example: 16:08
schedule_days:
example: 0,1,2,3,4,5,6
debug_level:
example: 1
remote_collector_id:
example: 10
'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_discoveryWarranty
description: Create Warranty autodiscovery job. Must be a Super User to access Warranty API.
summary: Create warranty job
tags:
- Autodiscovery
parameters:
- name: name
type: string
required: true
in: formData
description: name of the job
- name: vendor
type: string
in: formData
description: Warranty vendor
required: true
- name: enc_access_key_id
type: integer
in: formData
description: Required for HP, IBM, Lenovo, and Meraki vendors
- name: enc_access_key
type: string
in: formData
description: Required for HP, IBM, Lenovo, and Meraki vendors
- name: enc_secret_key_id
type: integer
in: formData
description: Required for HP vendor.
- name: enc_secret_key
type: string
in: formData
description: Required for HP vendor.
- name: api_version
type: string
in: formData
description: Required for Dell vendor.
- name: remote_collector_id
type: string
in: formData
description: D42 ID of the remote collector to use for this job
- name: order_number_type
type: string
in: formData
enum:
- 'randomly generated and same for all purchases'
- 'randomly generated and unique for every purchase'
default: 'randomly generated and same for all purchases'
- name: debug_level
type: string
enum:
- 'yes'
- 'no'
default: 'no'
in: formData
- $ref: '#/parameters/schedule_days'
- $ref: '#/parameters/schedule_time'
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example: Warranty 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_discoveryWarranty
description: Execute warranty autodiscovery job. Must be a Super User to access Warranty API.
summary: Run warranty job
tags:
- Autodiscovery
parameters:
- $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'
':4343/healthstats/':
get:
operationId: getHealthstats
description: >-
This will return the health status of Device42 including:
- current version number
- current used CPU percentage
- current database size
- current disk space used
- current memory usage
- the status of each remote collector including version number and state
- the status of recent backups
- the status of system packages and runtime environements (if requesting full stats)
- the status of last upgrade (if requesting full stats)
Note - backup status response can also include:
- Please save backup destination settings first\ @ 2020-12-05 09:26:43
- Backup not run since last reboot. Please check.
summary: Get
tags:
- Health Status
parameters:
- name: full
type: string
required: false
enum:
- 'yes'
- 'no'
description: Check full set of health stats on appliance? yes/no. Additional information includes system
package status and last upgrade status in form of OK/NOK. Additional statuses are static and do not change between
upgrades.
in: query
responses:
'200':
description: 'The above command returns results like this:'
schema:
"$ref": "#/definitions/healthstat_status"
'400':
$ref: '#/definitions/BadRequest'
'401':
$ref: '#/definitions/Unauthorized'
'403':
$ref: '#/definitions/Forbidden'
'404':
$ref: '#/definitions/NotFound'
'500':
$ref: '#/definitions/InternalServerError'
'503':
$ref: '#/definitions/ServiceUnavailable'
':4343/api/1.0/backup_schedules/':
post:
operationId: postBackup_schedules
summary: Create
description: Create or update backup schedule at set date and times
tags:
- Backup Schedules
parameters:
- name: name
type: string
required: true
description: name of backup job
in: formData
- "$ref": "#/parameters/method"
- name: schedule_time
required: true
type: string
description: time to perform backup (0:00 to 23:59)
in: formData
- name: job_id
type: string
description: id of backup job if modifying existing one
in: formData
- name: schedule_days
in: formData
type: string
description: >-
Comma separated days of week, where Monday = 0. e.g. 0,1,2 will set the job
for Mon, Tue and Wed.
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example:
- backup schedule added/updated
- 4
- test3
'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: getBackup_schedules
description: Get backup schedules
summary: Get
tags:
- Backup Schedules
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
jobs:
type: array
items:
properties:
job_id:
example: 1
method:
example: 3
name:
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'
':4343/api/1.0/backup_schedules/{ID}/':
delete:
operationId: deleteBackup_schedules
summary: Delete
description: This will delete a scheduled backup
parameters:
- name: ID
type: integer
in: path
required: true
description: Scheduled Backup ID
tags:
- Backup Schedules
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example:
- backup schedule deleted
- 4
- test3
'400':
$ref: '#/definitions/BadRequest'
'401':
$ref: '#/definitions/Unauthorized'
'403':
$ref: '#/definitions/Forbidden'
'404':
$ref: '#/definitions/NotFound'
'500':
$ref: '#/definitions/InternalServerError'
'503':
$ref: '#/definitions/ServiceUnavailable'
':4343/api/1.0/appliancemode/':
post:
operationId: postAppliancemode
summary: Set
description: This will set the Device42 appliance to Standby or Production mode.
Used in conjunction with automatic backups and restores for a warm HA solution
tags:
- Standby or Production Mode
parameters:
- "$ref": "#/parameters/appliance_mode"
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example: Appliance Manager standby mode set to True. Background jobs
disabled
'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/tags/:
get:
operationId: getTags
summary: Get all
description: >-
This will return a full list of tags available in your Device42
instance
tags:
- Tags
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
limit:
example: 1000
offset:
example: 0
tags:
type: array
items:
properties:
name:
example: 1 tag
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'
/api/1.0/saved_doql_queries/:
get:
operationId: getSaved_doql_queries
description: Retrieve information about all saved DOQL queries. You must be a superuser to access the API
summary: Get all
tags:
- DOQL Queries
parameters:
- $ref: '#/parameters/name'
- $ref: '#/parameters/last_updated_lt'
- $ref: '#/parameters/last_updated_gt'
- $ref: '#/parameters/first_added_lt'
- $ref: '#/parameters/first_added_gt'
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
savedDOQL:
$ref: '#/definitions/savedDOQLQueries'
'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: postSaved_doql_queries
description: >-
Create/update a saved DOQL query. You must be a superuser to access the API. Required parameters: - name
summary: Create/update
tags:
- DOQL Queries
parameters:
- name: name
type: string
in: formData
required: true
description: Name of saved DOQL. Required if creating new saved DOQL
- name: id
type: string
in: formData
description: Saved DOQL ID if modifying existing one
- name: saved_query
type: string
in: formData
description: Text of DOQL Query
- name: notes
type: string
in: formData
description: User entered notes
- name: include_headers
type: string
in: formData
description: Boolean value to whether to export header or not in CSV format
- name: output_format
type: string
in: formData
description: Choices of csv or json
- name: tags
type: string
in: formData
description: Comma-separated tags
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example:
- Saved DOQL added successfully
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/saved_doql_queries/{ID}/':
get:
operationId: getSaved_doql_queriesID
summary: Get specific
description: >-
Retrieve detailed information about a specific saved DOQL query. You must be a superuser to access the API
tags:
- DOQL Queries
parameters:
- name: ID
type: integer
in: path
required: true
description: The ID of the Saved DOQL to retrieve
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
name:
example: Power_outlet1
tags:
type: array
example: power
include_headers:
example: true
notes:
example: ""
saved_query:
example: select * from view_rudata_v2
output_type:
example: csv
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'
delete:
operationId: deleteSaved_doql_queriesID
summary: Delete
description: >-
This API is used to delete saved DOQL query with the saved DOQL ID supplied as the
required argument. You must be a superuser to access the API
tags:
- DOQL Queries
parameters:
- name: ID
type: integer
in: path
required: true
description: Saved DOQL Query ID
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'
/services/data/v1.0/query/:
get:
operationId: getDOQLData
description: Get DOQL data
summary: Get DOQL and Saved DOQL data
tags:
- DOQL
parameters:
- name: query
in: query
description: >-
The DOQL query you want to run, a SELECT command whose results are to be returned.
type: string
required: true
- name: delimiter
in: query
description: >-
Specifies the character that separates columns within each row (line) of the file.
The default a comma. This must be a single one-byte character.
type: string
- name: header
in: query
description: >-
If ‘yes’ specifies that the file contains a header line with the names of each column in the file.
On output, the first line contains the column names from the table
type: string
- name: quote
in: query
description: >-
Specifies the quoting character to be used when a data value is quoted.
The default is double-quote. This must be a single one-byte character.
type: string
- name: null_string
in: query
description: >-
Specifies the string that represents a null value. The default is an unquoted empty string.
type: string
- name: quote_escape
in: query
type: string
description: >-
Specifies the character that should appear before a data character that matches the QUOTE value.
The default is the same as the QUOTE value
- name: output_type
in: query
type: string
enum:
- 'csv'
- 'json'
description: Specify output format for DOQL results. 'csv' is the default output format if parameter is not specified
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'
post:
operationId: postDOQLData
description: >-
Use this API to query DOQL database
summary: Query DOQL Database
tags:
- DOQL
parameters:
- name: query
in: formData
description: >-
The DOQL query you want to run, a SELECT command whose results are to be returned.
type: string
required: true
- name: delimiter
in: formData
description: >-
Specifies the character that separates columns within each row (line) of the file.
The default a comma. This must be a single one-byte character.
type: string
- name: header
in: formData
description: >-
If ‘yes’ specifies that the file contains a header line with the names of each column in the file.
On output, the first line contains the column names from the table
type: string
- name: quote
in: formData
description: >-
Specifies the quoting character to be used when a data value is quoted.
The default is double-quote. This must be a single one-byte character.
type: string
- name: null_string
in: formData
description: >-
Specifies the string that represents a null value. The default is an unquoted empty string.
type: string
- name: quote_escape
in: formData
type: string
description: >-
Specifies the character that should appear before a data character that matches the QUOTE value.
The default is the same as the QUOTE value
- name: output_type
in: formData
type: string
enum:
- 'csv'
- 'json'
description: Specify output format for DOQL results. 'csv' is the default output format if parameter is not specified.
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'
/api/2.0/dbb/:
get:
operationId: getDBBInformation
description: Get information for DBBs in Device42. You must be a superuser to access the API.
summary: Get DBB Information
tags:
- DOQL
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
view_dbb_compute_v2:
type: object
properties:
last_refresh_date:
example: '2023-07-10T19:01:06.655567+00:00'
refresh_queued:
example: false
row_count:
example: 4200
'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/dbb/refresh/:
get:
operationId: getDBBRefresh
description: Get list of DBBs that are queued for refresh. You must be a superuser to access the API.
summary: Get Queued DBB Refresh
tags:
- DOQL
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
dbbs:
example:
- view_dbb_compute_v2
- view_dbb_security_v2
'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: postDBBRefresh
description: Use this API to queue one or all DBBs for a refresh. You must be a superuser to access the API.
summary: Queue DBB Refresh
tags:
- DOQL
parameters:
- name: dbb_name
in: formData
description: Name of the DBB you want to refresh. If this parameter is not passed, all DBBs will be refreshed.
type: string
required: false
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example:
- A refresh has already been queued.
code:
example: 1
'202':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example:
- DBB has been queued for refresh.
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/custom_fields/:
get:
operationId: getCustomFields
summary: Get custom fields
description: >-
Get custom fields for given model. Required parameters are:
tags:
- Custom fields
parameters:
- $ref: '#/parameters/object_name'
- name: id
type: integer
description: Custom Field ID
in: query
- name: type
type: string
in: query
description: >-
this is the custom field type. If left blank, default is text
enum:
- text
- number
- date
- related_field
- boolean
- url
- picklist
- json
- markup
- name: key
type: string
description: Custom Field Name
in: query
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
custom_fields:
$ref: '#/definitions/custom_fields'
'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: deleteCustomField
summary: Delete custom field
description: >-
Delete custom field. Required parameters are:
If you want to delete custom fields that are in use, please pass in delete_in_use parameter, default action is
to not delete fields in use.
tags:
- Custom fields
parameters:
- $ref: '#/parameters/object_name'
- name: id
type: integer
in: query
description: Custom Field ID
- name: key
type: string
in: query
description: Custom Field Name
- name: delete_in_use
type: boolean
in: query
description: pass in true if you want to delete custom field that is in use
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'
put:
operationId: putCustomField
summary: Add or Update Custom field
description: >-
Create or update custom field. Required parameters are:
tags:
- Custom fields
parameters:
- name: object_name
type: string
enum:
- application_group
- application_group_calculation_rule
- appcomp
- appcomp_template
- asset
- building
- business_service
- cable
- certificate
- circuit
- cloud_account
- customer
- device
- dns_records
- dns_zone
- endusers
- hardware_model
- ip_address
- part
- partmodel
- pdu
- port
- purchase
- rack
- resource
- room
- secret
- service
- service_instance
- software
- software_instance
- subnet
- vendor
- vlan
- vrfgroup
description: Name of the object
in: formData
required: true
- $ref: '#/parameters/key'
- $ref: '#/parameters/custom_field_type'
- $ref: '#/parameters/mandatory'
- $ref: '#/parameters/filterable'
- $ref: '#/parameters/log_for_api'
- $ref: '#/parameters/add_to_picklist'
- $ref: '#/parameters/remove_from_picklist'
- $ref: '#/parameters/delete_in_use'
- $ref: '#/parameters/multi_select'
- $ref: '#/parameters/include_in_context_popups'
- $ref: '#/parameters/related_field_name'
responses:
'200':
description: 'The above command returns results like this:'
schema:
properties:
msg:
example:
- Custom key field added or updated
- 2
- IPAddress_cf
- 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'
parameters:
address:
name: address
type: string
in: query
description: Name of building
required: true
address_post:
name: address
type: string
in: formData
description: Address of building
appcomp:
name: appcomp
type: string
in: query
description: The application component that depends on this service
appcomp_category:
name: category
type: string
in: formData
enum:
- Database
- Application Layer
- Web Server
- Load Balancer
- Other
description: Application Component Category can be - Database, Application Layer, Web Server, Load Balancer, Other. Category Values are case sensitive.
appcomp_categoryid:
name: category_id
type: integer
in: formData
enum:
- 1
- 2
- 3
- 4
- 5
description: Application Component Category ID can be 1-Database, 2-Application Layer, 3-Web Server, 4-Load Balancer, 5-Other. ‘category_id’ is used by discovery to initially set the category of an application component and cannot be used to change the category once set. If you would like to change the category of an Application Component, use ‘category’ parameter.
at_logon:
name: at_logon
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
at_startup:
name: at_startup
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
appcomps:
name: appcomps
type: string
in: formData
description: A comma separated list of application component names.
appliance:
name: appliance
type: string
in: formData
description: name of the monitoring appliance
required: true
appliance_mode:
name: appliance_mode
type: string
in: formData
enum:
- standby
- production
required: true
api_token:
name: api_token
type: string
in: formData
description: Linode API token - Required for Linode
aliases:
name: aliases
type: string
in: formData
description: any software aliases
access_key:
name: access_key
type: string
in: formData
description: Required for Amazon - AWS Account ID (Deprecated in 12.0)
account_no:
name: account_no
type: string
in: formData
account_id:
name: account_id
type: string
in: formData
description: Amazon Account ID - Required for Amazon AWS
action_time_gt:
name: action_time_gt
type: string
in: query
description: >-
Filters actions that have happened past the time entered (ie, greater than
2 weeks) in YYYY-MM-DDTHH:MM:ss.uuuuuu (ie 2016-10-27T13:52:01.213416)
action_time_lt:
name: action_time_lt
type: string
in: query
description: >-
Returns actions within the last X amount of days in
YYYY-MM-DDTHH:MM:ss.uuuuuu (ie 2016-10-27T13:52:01.213416)
add_suffix:
name: add_suffix
type: string
in: formData
add_multiple_vm_names_as_alias:
name: add_multiple_vm_names_as_alias
type: string
in: formData
description: add any additional names found as device alias
add_to_picklist:
name: add_to_picklist
type: string
in: formData
description: >-
Comma separated values to add to picklist. If type is picklist and custom
field is new, this is a required field. Duplicates will be ignored.
remove_from_picklist:
name: remove_from_picklist
type: string
in: formData
description: >-
Comma separated values to be removed from picklist. Duplicates will be ignored. Values that are in use will Not be deleted, unless delete_in_use parameter is provided and set to yes
mandatory:
name: mandatory
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Is custom field mandatory? yes/no
filterable:
name: filterable
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Is custom field filterable? yes/no
log_for_api:
name: log_for_api
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Log custom field? yes/no
multi_select:
name: multi_select
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Applies only to Picklist fields. Is custom field multi select? yes/no
related_field_value_by_id:
name: related_field_value_by_id
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Select yes if you want to set the related field value by ID.
clear_notes:
name: clear_notes
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Yes to clear any existing notes
include_in_context_popups:
name: include_in_context_popups
type: string
in: formData
enum:
- 'true'
- 'false'
description: Applies only to Device custom fields. Include the custom field in device pop-up panels and layout pages (true/false).
For example, the pop-up when you click a device on a rack view.
delete_in_use:
name: delete_in_use
type: string
enum:
- 'yes'
- 'no'
in: formData
description: pass in yes if you want to delete Picklist value that is in use. Used in conjunction with remove_from_picklist.
regions:
name: regions
type: string
in: formData
description: Comma separated region names for Amazon AWS
aws_roles:
name: aws_roles
type: string
in: formData
description: Comma separated names of Amazon AWS Roles
assets:
name: assets
type: string
in: formData
description: comma separated names of new assets.
asset_id:
name: asset_id
type: integer
in: query
description: Filter by Asset ID.
asset_ids:
name: asset_ids
type: string
in: formData
description: comma separated values of existing assets.
asset_no:
name: asset_no
type: string
in: query
description: 'filter by asset # (Added in v6.0.0)'
asset_no_contains:
name: asset_no_contains
type: string
in: query
description: 'search for any asset that contains matching asset # (Added in v9.2.0)'
assigned:
name: assigned
in: formData
enum:
- 'yes'
- 'no'
description: ‘yes’ if assigned. ‘no’ (default) if unassigned.
type: string
assignment:
name: assignment
in: formData
description: 'room, device, rma - required if assigning device'
type: string
allocated:
name: allocated
in: formData
enum:
- 'yes'
- 'no'
description: ‘yes’ if allocated. ‘no’ (default) if unallocated.
type: string
alternate_sudo:
name: alternate_sudo
in: formData
type: string
alternate_sudo_password_id:
name: alternate_sudo_password_id
in: formData
type: string
auto_add_ips:
name: auto_add_ips
in: formData
enum:
- 'yes'
- 'no'
description: >-
If ‘yes’, addresses within subnet will be automatically added to Device42.
(Only available in POST)
type: string
auth_type:
name: auth_type
in: formData
description: User Credentials or Service Principal
type: string
available:
name: available
in: query
enum:
- 'yes'
- 'no'
description: could be yes or no
type: string
amps:
name: amps
in: formData
description: The rated amps on this circuit
type: string
asset_connection_ids:
name: asset_connection_ids
in: formData
description: A comma-separated list of asset IDs connected to this circuit
type: string
autodiscover_cdp_devices:
name: autodiscover_cdp_devices
in: formData
enum:
- 'yes'
- 'no'
description: yes to enable CDP/LLDP (added in v8.3.2)
type: string
back_image_id:
name: back_image_id
in: formData
type: integer
description: >-
Back Image file ID.
back_image:
name: back_image
in: formData
type: string
description: name of the back image file. Use instead of back_image_id.
back_connection_id:
name: back_connection_id
in: query
type: string
description: >-
ID for the back connection port. Available via GET at
/api/api/1.0/patch_panel_ports// or Tools > Export > Patch Panel Port
back_switchport_id:
name: back_switchport_id
in: formData
type: string
description: Used if back connection type is switch.
back_switch:
name: back_switch
in: formData
type: string
description: >-
If back connection type is switch, use switch and switchport names in
combination.
back_patch_panel_id:
name: back_patch_panel_id
in: formData
type: string
description: >-
ID of the back patch panel - if a patch panel port is connected in back
(Added in v5.8.2)
back_patch_panel:
name: back_patch_panel
in: formData
type: string
description: >-
Name of the back patch panel - if a patch panel port is connected in back
(Added in v5.8.2)
back_port:
name: back_port
in: formData
type: string
description: >-
Number of the port on the back patch panel - if a patch panel port is
connected in back (Added in v5.8.2)
bmc_user:
name: bmc_user
in: formData
type: string
description: username for discovery
required: true
bmc_password:
name: bmc_password
in: formData
type: string
description: password for discovery
required: true
blade_size:
name: blade_size
in: formData
enum:
- 1
- 2
- 3
- 4
- 5
description: >-
1=Full Height 2=Half Height 3=Double Half Height 4=Double Full Height
5=Quarter Height
type: integer
blade_host_name:
name: blade_host_name
type: string
in: query
description: filter by blade host name
building_id:
name: building_id
type: integer
in: query
description: filter by building ID (Added in v5.9.0)
building:
name: building
type: string
in: query
description: filter by building name
building_post:
name: building
type: string
in: formData
blankasnull:
name: blankasnull
type: string
in: query
description: >-
yes / no - if yes, we convert empty strings to null
bulk_fields:
name: bulk_fields
in: formData
description: >-
comma separated key value pairs, with key and value separated by colon.
e.g.key1:value1, key2:value2
type: string
bandwidth:
name: bandwidth
in: query
description: bandwidth in kbps (mutiply factor of 1024)
type: string
breakerpanel_id:
name: breakerpanel_id
in: formData
required: true
description: Breaker panel ID
type: string
bcpm_id:
name: bcpm_id
in: query
description: Branch Circuit Power Meter ID
type: string
blanksasnull:
name: blanksasnull
in: query
type: string
cable_id:
name: cable_id
type: string
in: formData
description: Cable ID/Name
required: true
customer:
name: customer
type: string
in: query
description: filter by customer name
customer_form:
name: customer
type: string
in: formData
description: Name of existing customer.
custom_field_type:
name: type
type: string
in: formData
description: >-
this is the custom field type. If left blank, default is text. Date should
be formatted as YYYY-MM-DD
enum:
- text
- number
- date
- related_field
- boolean
- url
- picklist
- json
- markup
custom_fields_and:
name: custom_fields_and
type: string
in: query
description: 'filter by custom fields, and filter, format of key1:value1,key2:value2'
custom_fields_or:
name: custom_fields_or
type: string
in: query
description: 'filter by custom fields, or filter, format of key1:value1,key2:value2'
capacity:
name: capacity
in: formData
type: string
description: capacity of mountpoint in MB
capture_hosts_file:
name: capture_hosts_file
in: formData
type: string
enum:
- 'yes'
- 'no'
csv_format:
name: csv_format
in: query
type: string
description: >-
If this parameter is ‘xls’ or is not present, an Excel file(.xlsx) will be
produced. If this parameter is ‘tab’, a tab-delimited file(.txt) will be
created.
customer_id:
name: customer_id
in: formData
type: string
customer_id_get:
name: customer_id
in: query
description: ID of the customer (Added in v6.3.0)
type: string
category:
name: category
in: query
description: name of the category
type: string
category_post:
name: category
in: formData
description: >-
If multitenancy is on, admin groups that have access to this object are
specified here, e.g. Prod_East:no, Corp:yes specifies that the admin groups
for this object are Prod_East with view only permission and Corp with
change permission. Use for initial insert.
type: string
category_id:
name: category_id
in: query
description: ID of the category
type: string
category_id_post:
name: category_id
in: formData
description: ID of the category - use for initial insert.
type: string
clear_all:
name: clear_all
in: formData
enum:
- 'yes'
- 'no'
description: >-
If yes - then IP is marked as available and device and mac address
associations are cleared. Also notes and label fields are cleared. Added
in v5.7.2
type: string
clear_front:
name: clear_front
in: formData
enum:
- 'yes'
- 'no'
description: “yes” will clear front connection for port
type: string
clear_back:
name: clear_back
in: formData
enum:
- 'yes'
- 'no'
description: “yes” will clear back connection on port
type: string
clear_customer:
name: clear_customer
in: formData
enum:
- 'yes'
- 'no'
description: Clear all previously set customers on discovered objects.
type: string
default: 'no'
cloud_type:
name: cloud_type
in: formData
enum:
- Amazon AWS
- Microsoft Azure
- Linode
- DigitalOcean
- OpenStack
- Google Cloud
- Alibaba Cloud
- Oracle Cloud
- Standalone Kubernetes
- Arista CloudVision
- Jamf
- Workspace ONE
description: Required for all jobs.
type: string
required: true
cable_type:
name: cable_type
in: formData
description: named value of the cable type. Must already exist.
type: string
clear_value:
name: clear_value
in: formData
enum:
- 'yes'
- 'no'
description: yes to clear existing value for that field
type: string
clear_existing_schedule:
name: clear_existing_schedule
in: formData
enum:
- 'yes'
- 'no'
type: string
count:
name: count
in: formData
description: Whether to include the port in total count or not.
type: string
enum:
- 'yes'
- 'no'
count_in_licensing:
name: count_in_licensing
in: formData
enum:
- 'yes'
- 'no'
description: Whether or not to count OS in licensing
type: string
completed:
name: completed
in: query
description: Line Item is completed
type: string
content:
name: content
in: query
description: Content (e.g. IP address for type A)
type: string
content_type:
name: content_type
in: query
description: Returns changes done to a particular content type
type: string
contact_name_post:
name: contact_name
in: formData
type: string
contact_phone_post:
name: contact_phone
in: formData
type: string
change_date:
name: change_date
in: query
type: string
col_size:
name: col_size
in: formData
type: string
description: how many racks wide the rack is
cores:
name: cores
in: formData
type: string
description: number of cores
connector_type:
name: connector_type
in: formData
type: string
description: 'Type of connector, ie rj45'
connectivity:
name: connectivity
in: formData
type: string
description: 'New or existing (not used for CPU, RAM, HDD)'
cost:
name: cost
in: formData
type: string
cost_center:
name: cost_center
in: query
type: string
description: Cost Center
cpuspeed:
name: cpuspeed
in: formData
type: string
description: 'enter in MHZ, e.g.: 3.5 GHZ use 3500'
contact_info:
name: contact_info
type: string
in: formData
connection:
name: connection
type: string
in: query
description: Text field.
cable_length:
name: cable_length
type: string
in: formData
description: Length of Cable
circuit_id:
name: circuit_id
type: string
in: query
description: circuit id
cable_length_units:
name: cable_length_units
type: string
in: formData
description: Units for Cable Length (“m” or “ft”)
contact:
name: contact
type: string
in: query
description: ''
object_name:
name: object_name
type: string
enum:
- application_group
- application_group_calculation_rule
- appcomp
- appcomp_template
- asset
- building
- business_service
- cable
- certificate
- circuit
- cloud_account
- customer
- device
- dns_records
- dns_zone
- endusers
- hardware_model
- ip_address
- part
- partmodel
- pdu
- port
- purchase
- rack
- resource
- room
- secret
- service
- service_instance
- software
- software_instance
- subnet
- vendor
- vlan
- vrfgroup
description: Name of the object
in: query
required: true
days:
name: days
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
device_connection_ids:
name: device_connection_ids
type: string
in: formData
description: A comma-separated list of device IDs connected to this circuit
device_connection_names:
name: device_connection_names
type: string
in: formData
description: A comma-separated list of device names connected to this circuit
day_of_month:
name: day_of_month
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
day_of_week:
name: day_of_week
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
debug_level:
name: debug_level
type: string
in: formData
enum:
- No Debug
- Normal Debug
- Extended Debug
date_changed:
name: date_changed
type: string
in: formData
description: 'Update the Date Changed field, using format YYYY-MM-DD HH:MM:SS'
date:
name: date
type: string
in: query
date_gt:
name: date_gt
type: string
in: query
description: filter by date greater than (YYYY-MM-DD)
date_lt:
name: date_lt
type: string
in: query
description: filter by date less than (YYYY-MM-DD)
device:
name: device
type: string
in: query
description: Device name
devices:
name: devices
type: string
in: formData
description: comma separated names of new devices.
device_name:
name: device_name
type: string
in: formData
description: required if switchport ID not used
device_name_format:
name: device_name_format
type: string
in: formData
enum:
- hostname
- hostname_plus_domain
- hostname_add_domain_alias
- hostname_plus_domain_add_hostname_alias
device_id:
name: device_id
type: string
in: query
description: Device ID
required: true
device_ids:
name: device_ids
type: string
in: formData
description: comma separated values of existing devices.
device_sub_type:
name: device_sub_type
type: string
in: query
description: filter by device sub type (Added in v14.7.2)
device_sub_type_id:
name: device_sub_type_id
type: integer
in: query
description: filter by device sub type id (Added in v14.7.2)
device2:
name: device2
in: formData
description: name of the device2 that port belongs to. (added in v5.8.1)
type: string
device_serial:
name: device_serial
in: query
description: 'serial number of the device, where part is checked out to'
type: string
device_reason:
name: device_reason
in: formData
description: string for the device reason on this appcomp (added in v6.6.0)
type: string
description:
name: description
in: query
description: matching description (added in v7.2.0)
type: string
description_post:
name: description
in: formData
type: string
depth:
name: depth
in: formData
enum:
- half
- full
description: Half depth by default. full to override. Optional.
type: string
device_os_id:
name: device_os_id
in: path
description: ID of specific operating system
type: integer
required: true
display_name:
name: display_name
in: query
description: 'if not provided, the name is used as display name'
type: string
required: true
discover_vms:
name: discover_vms
in: formData
description: discover VMs or strictly hypervisors
enum:
- 'yes'
- 'no'
type: string
discovery_type:
name: discovery_type
in: formData
default: IPMI
enum:
- IPMI
- Redfish
type: string
discover_parts:
name: discover_parts
in: formData
type: string
enum:
- 'yes'
- 'no'
discover_software:
name: discover_software
in: formData
type: string
enum:
- 'yes'
- 'no'
discover_cloudid:
name: discover_cloudid
in: formData
type: string
enum:
- 'yes'
- 'no'
discover_applications:
name: discover_applications
in: formData
enum:
- 'yes'
- 'no'
type: string
discovered_service:
name: discovered_service
in: query
description: the name of the discovered service listening on this IP/port
type: string
discovered_service_post:
name: discovered_service
in: formData
description: the name of the discovered service listening on this IP/port
type: string
discover_services:
name: discover_services
type: string
enum:
- 'yes'
- 'no'
in: formData
discovered_process:
name: discovered_process
in: formData
description: the process name that has a handle to the port
type: string
domain:
name: domain
in: formData
description: name of the domain
type: string
required: true
days_before_expiry:
name: days_before_expiry
type: string
in: formData
description: number of days before secret is set as expired
dns_zone:
name: dns_zone
in: query
type: string
D42 ID for the rack(s):
name: D42 ID for the rack(s)
in: query
type: string
description: D42 ID for the part(s)
depends_on:
name: depends_on
in: formData
type: string
description: >-
Names of app components this component depends on, separated by commas -
must match component names exactly.
dependents:
name: dependents
in: formData
type: string
description: >-
Names of app components that depend on this component separated by commas
- must match component names exactly.
depends_on_reasons:
name: depends_on_reasons
in: formData
type: string
description: >-
list of string pairs for dependent appcomps on this appcomp e.g. =>
depend_appcomp_name1:reason1, depend_appcomp_name2:reason2,
depend_appcomp_nameN:reason3 (added in v6.6.0)
delete_older_mac_association_after:
name: delete_older_mac_association_after
in: formData
type: string
description: number of days (added in v10.4.0)
delete_switch_port_not_found:
name: delete_switch_port_not_found
in: formData
type: string
description: yes or no to delete switch ports not found (added in v10.4.0)
direct_suggestion_only:
name: direct_suggestion_only
in: query
type: string
description: yes or no to suggest subnet only if is found directly on provided subnet (added in v18.08.00)
dramc_id:
name: dramc_id
in: query
type: string
description: ID of the DMARC
dmarc:
name: dmarc
in: query
type: string
description: DMARC name
email:
name: email
type: string
in: formData
description: Text field.
escalation_1:
name: escalation_1
type: string
in: formData
description: Text field.
escalation_2:
name: escalation_2
type: string
in: formData
description: Text field.
enduser:
name: enduser
in: query
type: string
description: filter by end user name
event_based:
name: event_based
in: query
type: string
description: only for schedule based services where startmode = ‘Scheduled’
end_point_type:
name: end_point_type
in: query
enum:
- device
- circuit
- switchport
- vendor
- patch_panel_port
type: string
description: Type of end point.
end_point_type_post:
name: end_point_type
in: formData
type: string
enum:
- cable
- circuit
- switchport
- tap_port
- patch_panel_port
- vendor
description: Type of end point.
enable_resources_monitoring:
name: enable_resources_monitoring
in: formData
type: string
enum:
- 'yes'
- 'no'
end_point_id:
name: end_point_id
in: query
type: integer
description: ID of the end point
end_point_id_post:
name: end_point_id
in: formData
type: integer
description: ID of the end point. Must be used with end_point_type
end_point_device:
name: end_point_device
in: query
type: string
description: 'if end_point type is device, this is name of the device. Absent otherwise'
end_point_device_post:
name: end_point_device
in: formData
type: string
description: 'if end_point type is device, this is name of the device. Absent otherwise'
end_point_circuit_id:
name: end_point_circuit_id
in: query
type: string
description: >-
if end_point type is circuit, this is circuit_id of the circuit. Absent
otherwise
end_point_switchport:
name: end_point_switchport
in: query
type: string
description: >-
if end_point type is switchport, this is name of the switch port. Absent
otherwise
end_point_switch:
name: end_point_switch
in: query
type: string
description: >-
if end_point type is switchport, this is name of the switch. Absent
otherwise
end_point_patch_panel_port:
name: end_point_patch_panel_port
in: query
type: string
description: >-
if end_point type is patch_panel_port, this is name of the patch panel
port. Absent otherwise
end_point_patch_panel:
name: end_point_patch_panel
in: query
type: string
description: >-
if end_point type is patch_panel_port, this is name of the patch panel.
Absent otherwise
end_point_patch_panel_id:
name: end_point_patch_panel_id
in: query
type: string
description: >-
if end_point type is patch_panel_port, this is ID of the patch panel.
Absent otherwise
end_point_vendor:
name: end_point_vendor
in: query
type: string
description: if end_point type is vendor, this is name of the vendor. Absent otherwise
end_point_circuit_id_post:
name: end_point_circuit_id
in: formData
type: string
description: >-
if end_point type is circuit, this is circuit_id of the circuit. Absent
otherwise
end_point_switchport_post:
name: end_point_switchport
in: formData
type: string
description: >-
if end_point type is switchport, this is name of the switch port. Used with end_point_switch. Absent
otherwise
end_point_switch_post:
name: end_point_switch
in: formData
type: string
description: >-
if end_point type is switchport, this is name of the switch. Used with end_point_switchport. Absent
otherwise
end_point_patch_panel_port_post:
name: end_point_patch_panel_port
in: formData
type: string
description: >-
if end_point type is patch_panel_port, this is name of the patch panel
port. Absent otherwise
end_point_patch_panel_post:
name: end_point_patch_panel
in: formData
type: string
description: >-
if end_point type is patch_panel_port, this is name of the patch panel.
Absent otherwise
end_point_patch_panel_id_post:
name: end_point_patch_panel_id
in: formData
type: integer
description: >-
if end_point type is patch_panel_port, this is ID of the patch panel.
Absent otherwise
end_point_vendor_post:
name: end_point_vendor
in: formData
type: string
description: 'if end_point type is vendor, this is name of the vendor. Absent otherwise'
end_connector_type:
name: end_connector_type
in: formData
type: string
description: Connector Type (User Definable)
end_cable_type:
name: end_cable_type
in: formData
type: string
description: Endpoint Cable Type (User Definable)
end_cable_color:
name: end_cable_color
in: formData
type: string
description: Endpoint Cable Color
end_optic_type:
name: end_optic_type
in: formData
type: string
description: 'Optic Type (Definable, ie multimode)'
end_point_back_pach_panel:
name: end_point_back_pach_panel
in: formData
type: string
description: ''
end_point_multiple:
name: end_point_multiple
in: formData
type: string
enum:
- 'yes'
- 'no'
description: yes to allow multiple endpoints
end_ip_address:
name: end_ip_address
in: formData
type: string
description: End IP address
exclude_servers:
name: exclude_servers
in: formData
type: string
description: comma separated liste of addresses to exclude
firmware:
name: firmware
type: string
in: formData
first_number:
name: first_number
type: string
in: formData
description: 'default 0, add to change.'
first_added_lt:
name: first_added_lt
type: string
in: query
description: first added less than date YYYY-MM-DD format
first_added_gt:
name: first_added_gt
type: string
in: query
description: first added equal to or greater than date YYYY-MM-DD format
follow:
name: follow
type: string
in: query
description: >-
use yes if you want to see virtuals in a virtual host, modules in a blade
chassis and devices in a clustered device (Added in v5.7.4)
follow_chain:
name: follow_chain
type: string
in: formData
enum:
- 'yes'
- 'no'
default: 'no'
front_image_id:
name: front_image_id
type: string
in: formData
front_image:
name: front_image
type: string
in: formData
description: name of the image file (Added in v5.8.2)
front_patch_panel_id:
name: front_patch_panel_id
type: string
in: formData
description: >-
Name of the front patch panel - if a patch panel port is connected in
front (Added in v5.8.2)
front_patch_panel:
name: front_patch_panel
type: string
in: formData
description: >-
Name of the front patch panel - if a patch panel port is connected in
front (Added in v5.8.2)
front_port:
name: front_port
type: string
in: formData
description: >-
Number of the port on the front patch panel - if a patch panel port is
connected in front (Added in v5.8.2)
filesytem:
name: filesytem
in: formData
type: string
description: mountpoint filesystem
fstype:
name: fstype
in: formData
type: string
description: mountpoint filesystem type
free_capacity:
name: free_capacity
in: formData
type: string
description: free capacity of mountpoint in MB
grid_rows:
name: grid_rows
in: formData
description: number of rows in the room grid
type: string
grid_cols:
name: grid_cols
in: formData
description: number of columns in the room grid
type: string
gateway:
name: gateway
in: query
description: Gateway (added in v7.2.0)
type: string
gateway_post:
name: gateway
in: formData
description: Gateway (added in v7.2.0)
type: string
groups:
name: groups
in: query
description: >-
If multitenancy is on, admin groups that have access to this object are
specified here, e.g. Prod_East:no,Corp:yes specifies that the admin groups
for this object are Prod_East with view only permission and Corp with
change permission. If this parameter is present with no value, all groups
are deleted.
type: string
groups_post:
name: groups
in: formData
description: >-
If multitenancy is on, admin groups that have access to this object are
specified here, e.g. Prod_East:no,Corp:yes specifies that the admin groups
for this object are Prod_East with view only permission and Corp with
change permission. If this parameter is present with no value, all groups
are deleted.
type: string
group_owner:
name: group_owner
in: formData
description: >-
Name of group that is responsible for this component - must match group
name exactly.
type: string
groups_affected:
name: groups_affected
in: formData
description: >-
Names of affected groups separated by commas - must match group names
exactly.
type: string
get_all_switch_ports:
name: get_all_switch_ports
in: formData
enum:
- 'yes'
- 'no'
description: yes or no to get all switch ports (added in v10.4.0)
type: string
get_guest_os_info:
name: get_guest_os_info
in: formData
type: string
enum:
- 'yes'
- 'no'
hardware:
name: hardware
type: string
in: query
description: >-
filter by name of hardware model, comma separated for multiple hardware
models (or filter). (Added in v6.3.2)
hardware_ids:
name: hardware_ids
type: string
in: query
description: 'filter by ID of hardware models, comma separated'
hours:
name: hours
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
horizontal_grid_numbering:
name: horizontal_grid_numbering
type: string
in: formData
description: numeric by default
enum:
- numeric
- alphabetic
- alphabetic_doubled
horizontal_grid_start:
name: horizontal_grid_start
type: string
in: formData
hwaddress:
name: hwaddress
in: formData
description: mac or wwn. Required if no port.
type: string
hddsize:
name: hddsize
in: formData
description: 'enter in GB, e.g.: 250 GB enter 250'
type: string
hddtype:
name: hddtype
in: formData
description: new or existing
type: string
hddrpm:
name: hddrpm
in: formData
description: new or existing
type: string
height:
name: height
in: formData
description: room height
type: string
home_page:
name: home_page
type: string
in: formData
description: Text field.
hostname_to_use:
name: hostname_to_use
type: string
in: query
enum:
- '1 (Serial # / Reverse DNS / IP)'
- '2 (Discovered Name / Serial # / Reverse DNS / IP)'
- '3 (Reverse DNS / Discovered Name / Serial # / IP)'
required: true
hostname_precedence:
name: hostname_precedence
type: string
in: formData
enum:
- 'yes'
- 'no'
hostidlist:
name: hostidlist
type: string
in: formData
host_allow_duplicate_serials:
name: host_allow_duplicate_serials
type: string
in: formData
enum:
- 'yes'
- 'no'
id:
name: id
type: string
in: query
description: 'The ID of the software, required if not using NAME'
id_post:
name: id
type: string
in: formData
description: 'The ID of the software, required if not using NAME'
idle_time:
name: idle_time
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
is_it_switch:
name: is_it_switch
type: string
in: query
enum:
- 'yes'
- 'no'
description: filter by whether switch or not. Use yes or no. (Added in v6.3.2)
is_it_virtual_host:
name: is_it_virtual_host
type: string
in: query
description: filter by whether virtual host or not. Use yes or no. (Added in v6.3.2)
is_it_blade_host:
name: is_it_blade_host
type: string
in: query
description: filter by whether blade host or not. Use yes or no. (Added in v6.3.2)
if_parent_assigned:
name: if_parent_assigned
type: string
in: query
description: >-
no => Don't suggest subnet whose parents are assigned
yes => Suggest subnet even if parents are assigned
if_parent_allocated:
name: if_parent_allocated
type: string
in: query
description: >-
no => Don't suggest subnet whose parents are allocated
yes => Suggest subnet even if parents are allocated
imgfile_id:
name: imgfile_id
type: integer
in: formData
description: >-
Image file ID.
imgfile:
name: imgfile
type: string
in: formData
description: name of the image file (Added in v5.8.2). Use instead of imgfile_id
in_service:
name: in_service
type: string
in: query
description: filter by whether in service or not. Use yes or no.
in_service_status:
name: in_service
type: string
in: formData
description: Filter by whether in service or not. Use yes or no.
enum:
- 'yes'
- 'no'
install_date:
name: install_date
type: string
in: formData
description: The date that the software was installed
include_cols:
name: include_cols
type: string
in: query
description: >-
do not return all columns just the ones specified. For example,
?include_cols=name, device_id, rack will only result in name, device_id,
and rack included in the output. The following column names can be part of
include_cols: name, device_id, rack, name, device_id, serial_no, asset_no,
uuid, notes, in_service, service_level, type, id, last_updated, tags,
customer_id, customer, hw_model, hw_size, manufacturer, hw_depth, rack,
start_at, rack_id, orientation, row, room, building, reversed, blade_host_name,
blade_host_id, slot_number, virtual_host_name, location, device_sub_type,
os, osarch, osver, osverno, custom_fields, device_purchase_line_items,
device_external_links, ip_addresses, mac_addresses, cpucount, cpucore,
cpuspeed, ram, hddcount, hddsize, hddraid, hddraid_type, hdd_details,
pdu_mapping_url,modules, vms, devices, aliases, xpos, ucs_manager,
preferred_alias
device_include_cols:
name: include_cols
type: string
in: query
description: >-
Return only specified columns.
For example, ?include_cols=name, device_id will only result in name and device_id
included in the output. The following column names can be part of include_cols:
device_id, name, type_id, type, serial_no, asset_no, uuid, notes, last_updated, first_added, objectcategory_id,
objectcategory, ucsmanager, service_level_id, service_level, customer_id, customer, customers, do_not_propagate_device_permissions,
in_service, virtual_host, blade_chassis, device_url, hardware_id, hardware, physicalsubtype_id, physicalsubtype, blade_slot_no,
host_chassis_device_id, chassis_slot_id, device_virtual_host_id, device_cluster_id, additional_location_info, rack_id,
start_at, orientation_id, orientation, xpos, where_id, where, reversed, virtualsubtype_id, virtualsubtype, datastores,
data_center, os_id, os_name, os_version, os_version_no, os_architecture_id, os_architecture, total_cpus, core_per_cpu,
threads_per_core, cpu_speed, hz_id, hz, ram, ram_size_type_id, ram_size_type, hard_disk_count, hard_disk_size, hard_disk_size_type_id,
hard_disk_size_type, hw_sw_raid, hw_sw_raid_id, raid_type, raid_type_id, building_id, calculated_building_id, storage_room,
storage_room_id, aliases, nonauthoritativealiases, custom_fields, tags
building_include_cols:
name: include_cols
type: string
in: query
description: >-
Return only specified columns.
For example, ?include_cols=name, building_id will only result in name and building_id
included in the output. The following column names can be part of include_cols:
building_id, name, address, contact_name, contact_phone, notes, tags, custom_fields, latitude, longitude, image_url
instance_id:
name: instance_id
in: formData
type: integer
description: The cloud instance ID of the device
ipv6:
name: ipv6
in: query
description: 'if creating an ipv6 subnet, &ipv6 will need to be passed,'
type: string
required: true
ip:
name: ip
in: query
description: ip address (added in v6.3.0)
type: string
ips:
name: ips
in: query
description: Details for all the IPs
type: string
ip_id:
name: ip_id
in: query
description: D42 ID of the IP
type: string
ipaddress:
name: ipaddress
in: formData
description: >-
If a matching IP address is found, it will update the first matched IP
address(unless you specify a vrf_group or vrf_group_id, then it matches or
adds IP to that VRF group)
type: string
required: true
ip_address_from:
name: ip_address_from
in: formData
description: The external IP address
type: string
required: true
ip_address_from_end:
name: ip_address_from_end
in: formData
description: used for mapping a range of addresses rather than a single IP
type: string
ip_address_to:
name: ip_address_to
in: formData
description: The internal IP address
type: string
required: true
ip_address_to_end:
name: ip_address_to_end
in: formData
description: used for mapping a range of addresses rather than a single IP
type: string
ip_start:
name: ip_start
in: formData
description: starting IP address
type: string
required: true
ip_end:
name: ip_end
in: formData
description: 'ending IP address, use same as start for single address'
type: string
required: true
ignore_powered_off:
name: ignore_powered_off
in: formData
description: Ignore powered off vms
enum:
- 'yes'
- 'no'
type: string
ignore_guest_uuid:
name: ignore_guest_uuid
in: formData
type: string
enum:
- 'yes'
- 'no'
ignore_host_serial:
name: ignore_host_serial
in: formData
type: string
enum:
- 'yes'
- 'no'
ignore_host_uuid:
name: ignore_host_uuid
in: formData
type: string
enum:
- 'yes'
- 'no'
ignore_ipv6:
name: ignore_ipv6
in: formData
type: string
enum:
- 'yes'
- 'no'
ignore_virt_subtype:
name: ignore_virt_subtype
in: formData
type: string
enum:
- 'yes'
- 'no'
initial_software_type:
name: initial_software_type
in: formData
type: string
enum:
- managed
- unmanaged
- prohibited
- ignored
job_id:
name: job_id
in: formData
description: D42 ID for the job
type: string
required: true
job_id_wname:
name: job_id
in: formData
description: D42 ID for the job - required if no name
type: string
joyent_keyname:
name: joyent_keyname
in: formData
description: Only for Joyent
type: string
key:
name: key
in: formData
description: Can be new or existing. This is the custom field name.
type: string
required: true
last_updated_lt:
name: last_updated_lt
type: string
in: query
description: last updated less than date YYYY-MM-DD format
last_updated_gt:
name: last_updated_gt
type: string
in: query
description: last updated equal to or greater than date YYYY-MM-DD format
limit:
name: limit
type: string
in: query
description: return this number of devices
location:
name: location
in: formData
type: string
description: Location/region of instance deployment
label:
name: label
in: query
type: string
label_post:
name: label
in: formData
type: string
length:
name: length
in: formData
type: string
description: Cable length
licensed_count_post:
name: licensed_count
in: formData
type: string
description: Number of purchased licenses of operating system
licensing_model:
name: licensing_model
in: formData
type: string
licensing_model_get:
name: licensing_model
in: formData
type: string
license_key:
name: license_key
in: formData
type: string
description: OS license key
line_type:
name: line_type
in: formData
type: string
description: required for any new line being added for both device or contract.
line_no:
name: line_no
in: formData
type: string
description: >-
required for existing line items, use existing line # to change existing
line item.
line_name:
name: line_name
in: formData
type: string
line_quantity:
name: line_quantity
in: formData
type: string
description: 'can be calculated automatically from # of objects associated'
line_cost:
name: line_cost
in: formData
type: string
description: cost for single object / item.
line_cost_center:
name: line_cost_center
in: formData
type: string
line_customer:
name: line_customer
in: formData
type: string
line_item_type:
name: line_item_type
in: formData
type: string
enum:
- device
- asset
- device_os
- rack
- shipping
- tax
- other
description: Default is device.
line_asset_ids:
name: line_asset_ids
in: formData
type: string
description: Comma separated asset_id. Only applicable if line_item_type is asset.
line_start_date:
name: line_start_date
in: formData
type: string
description: Date in YYYY-MM-DD format
line_end_date:
name: line_end_date
in: formData
type: string
description: Date in YYYY-MM-DD format
line_frequency:
name: line_frequency
in: formData
type: string
enum:
- one time
- monthly
- quarterly
- bi-annually
- annually
line_renew_date:
name: line_renew_date
in: formData
type: string
description: Date in YYYY-MM-DD format
line_cancel_policy:
name: line_cancel_policy
in: formData
type: string
line_contract_type:
name: line_contract_type
in: formData
type: string
line_service_type:
name: line_service_type
in: formData
type: string
description: 'new service type will be created, if it doesn’t exist (added in v9.0.2)'
line_contract_id:
name: line_contract_id
in: formData
type: string
description: (added in v9.0.2)
ldap_server:
name: ldap_server
type: string
in: formData
ldap_filter_type:
name: ldap_filter_type
type: string
in: formData
enum:
- all
- servers
- custom
- custom_ldap_filter
ldap_unpwd_id:
name: ldap_unpwd_id
type: string
in: formData
line_notes:
name: line_notes
in: formData
type: string
line_completed:
name: line_completed
in: formData
type: string
enum:
- 'yes'
- 'no'
line_devices:
name: line_devices
in: formData
type: string
description: >-
Comma separated device names. Only applicable if line_item_type is device.
Will create new devices if device with name specific here does not exist.
line_device_serial_nos:
name: line_device_serial_nos
in: formData
type: string
description: >-
Comma separated serial numbers. Only applicable if line_item_type is
device. Will only work on existing serial numbers.
line_device_asset_nos:
name: line_device_asset_nos
in: formData
type: string
description: >-
Comma separated asset numbers. Only applicable if line_item_type is
device. Will only work on existing asset numbers.
line_circuits:
name: line_circuits
in: formData
type: string
description: circuit ID name
line_circuit_ids:
name: line_circuit_ids
in: formData
type: string
description: D42 ID for the circuit(s)
line_building_ids:
name: line_building_ids
in: formData
type: string
description: D42 ID for the building(s)
line_certificate_ids:
name: line_certificate_ids
in: formData
type: string
description: D42 ID for the certificate(s)
line_software_ids:
name: line_software_ids
in: formData
type: string
description: D42 ID for the software
line_room_ids:
name: line_room_ids
in: formData
type: string
description: D42 ID for the room(s)
line_rack_ids:
name: line_rack_ids
in: formData
type: string
description: D42 ID for the rack(s)
line_part_ids:
name: line_part_ids
in: formData
type: string
description: D42 ID for the part(s)
line_device_os_ids:
name: line_device_os_ids
in: formData
type: string
description: D42 ID for the Device OS
line_devices_remove:
name: line_devices_remove
in: formData
type: string
description: >-
Comma separated device names to clear from a purchase line. Use * to clear all devices from a purchase line.
Use with line_no or line_name.
listening_ip:
name: listening_ip
in: formData
type: string
description: the name of the device
listener_device_name:
name: listener_device_name
in: query
type: string
description: Name of device with listening services
license_key_count:
name: license_key_count
type: string
in: formData
description: The number of licenses this software key supports
license_use_count:
name: license_use_count
type: string
in: formData
description: the number of licenses that are in use for this software instance
max_blades_per_row:
name: max_blades_per_row
in: formData
type: string
mask_bits:
name: mask_bits
in: query
description: mask bits (added in v7.2.0)
type: string
required: true
mask_bits_lt:
name: mask_bits_lt
in: query
description: less than mask bits (added in v7.2.0)
type: string
mask_bits_gt:
name: mask_bits_gt
in: query
description: greater than mask bits (added in v7.2.0)
type: string
mac:
name: mac
in: query
description: mac address
type: string
mac_id:
name: mac_id
in: formData
description: >-
mac_id references port_id value. mac_id available via GET at
/api/api/1.0/macs/ or Tools > Export > MAC Address * Please see note below
type: string
macaddress:
name: macaddress
in: formData
description: MAC address – can be new or existing
type: string
mapped_service:
name: mapped_service
in: query
description: the name of the mapped service listening on this IP/port
type: string
mapped_service_post:
name: mapped_service
in: formData
description: the name of the mapped service listening on this IP/port
type: string
match_name_only_for_virtuals:
name: match_name_only_for_virtuals
in: formData
type: string
enum:
- 'yes'
- 'no'
match_name_only_for_hypervisor:
name: match_name_only_for_hypervisor
in: formData
type: string
enum:
- 'yes'
- 'no'
module:
name: module
in: formData
description: >-
name of the blade that port belongs to. Blade device must be part of the
switch. (added in v5.8.1)
type: string
module_slot:
name: module_slot
in: formData
description: 'change patch panel port for a certain module slot # (Added in v5.8.2)'
type: string
media_type:
name: media_type
in: formData
description: Type of media
type: string
method:
name: method
in: formData
description: 'Backup method: 1 for mail,2 for sftp,3 for nfs or 4 for amazon s3'
type: string
required: true
minutes:
name: minutes
in: query
description: only for schedule based services where startmode = ‘Scheduled’
type: string
mtu:
name: mtu
in: formData
description: add value for mtu
type: string
month_of_year:
name: month_of_year
in: query
description: only for schedule based services where startmode = ‘Scheduled’
type: string
monitor_direction:
name: monitor_direction
in: formData
description: 'Direction - to, both (optional, only for PortCap: Monitor)'
type: string
monitor_port_1_id:
name: monitor_port_1_id
in: formData
type: integer
monitor_port_2_id:
name: monitor_port_2_id
in: formData
type: integer
mirror_port_id:
name: mirror_port_id
in: formData
type: integer
manufacturer:
name: manufacturer
in: query
type: string
description: name of the hardware manufacturer.
manufacturer_post:
name: manufacturer
in: formData
type: string
description: name of the hardware/software manufacturer.
module_host_id:
name: module_host_id
in: formData
type: integer
description: ID of Module Host
module_host:
name: module_host
in: formData
type: string
description: >-
Name of the Module host. Must be unique asset name for this to work. (use
instead of ID, Added in v5.8.2)
module_pos:
name: module_pos
in: formData
type: string
enum:
- horizontal
- vertical
module_position:
name: module_position
in: formData
type: string
description: >-
for Modular Patch Panel Models. Possible values are horizontal or vertical
(Added in v5.8.2)
module_not_found:
name: module_not_found
in: formData
type: string
description: >-
action to take on module not found. One of: Remove Host Association,
Change Service Level, Delete Module (default is no action)
modelno:
name: modelno
in: formData
type: string
description: 'Model # of the part model'
network:
name: network
in: query
description: optional
type: string
required: true
name_to_use_for_newly_discovered_module:
name: name_to_use_for_newly_discovered_module
type: string
in: formData
description: name to use
name_to_use_for_newly_discovered_pdu:
name: name_to_use_for_newly_discovered_pdu
type: string
in: formData
description: >-
one of: Name discovered by SNMP, Name plus serial number, Name plus serial
number plus IP
name:
name: name
type: string
in: query
description: filter by name (Added in v6.0.0)
new_name:
name: new_name
type: string
in: formData
description: Use to change name of object.
numbering_start_from_bottom:
name: numbering_start_from_bottom
type: string
in: formData
enum:
- 'yes'
- 'no'
description: 'default is yes, no to change, otherwise ignored.'
notes:
name: notes
in: query
type: string
description: Any additional notes
notes_post:
name: notes
in: formData
type: string
description: Any additional notes
number:
name: number
in: query
description: vlan number
type: integer
number_post:
name: number
in: formData
description: vlan number
type: integer
new_port:
name: new_port
in: formData
description: rename existing port
type: string
netport_id:
name: netport_id
in: formData
type: integer
nameserver:
name: nameserver
in: query
description: Nameserver
type: string
numbering_start_from:
name: numbering_start_from
in: formData
description: 'This is starting # for patch panel ports. Defaults to 1 if not entered.'
type: integer
number_of_ports:
name: number_of_ports
in: formData
description: >-
number of ports. required for creating a new patch panel type singular.
Ignored for patch panel type modular
type: string
number_of_ports_in_row:
name: number_of_ports_in_row
in: formData
description: >-
number of ports in a row. required for creating a new patch panel type
singular. Ignored for patch panel type modular
type: string
os:
name: os
type: string
in: query
description: filter by OS name (added in v8.3.0)
os_post:
name: os
type: string
in: formData
description: Operating system name.
Use this parameter to create or change a device OS. See the device parameters above.
object_id:
name: object_id
type: integer
in: query
description: 'Filters by object ID (ie, device ID, asset ID)'
os_id:
name: os_id
type: string
in: query
description: Operating system ID
osver:
name: osver
type: string
in: formData
description: Operating system version name
osverno:
name: osverno
type: string
in: formData
description: Operating system version number
obj_label1:
name: obj_label1
type: string
in: formData
description: object label 1
obj_label2:
name: obj_label2
type: string
in: formData
description: object label 2
object_category:
name: object_category
type: string
in: formData
description: name of subnet category for discovered subnets
object_category_pdu:
name: object_category
type: string
in: formData
object_category_get:
name: object_category
type: string
in: query
description: filter by object category
origin_cable_type:
name: origin_cable_type
type: string
in: formData
description: Cable Type (User definable)
origin_cable_color:
name: origin_cable_color
type: string
in: formData
description: Origin Cable Color
object_category_id:
name: object_category_id
type: integer
in: query
description: filter by object category ID
origin_connector_type:
name: origin_connector_type
type: string
in: query
description: Connector Type (User Definable)
origin_connector_type_post:
name: origin_connector_type
type: string
in: formData
description: Connector Type (User Definable)
other_trigger:
name: other_trigger
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
other_type:
name: other_type
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
offset:
name: offset
type: string
in: query
description: >-
start with this device (e.g. limit=100&offset=50 means start with the 50th
device and return the next 100 devices)
override:
name: override
in: formData
description: >-
smart – will detect if the port_name passed exist or not, if not – it is
added to the current port name. Helpful, if you want to track all the port
names for that mac address (e.g. eth0 & bond0).
yes – change the port
name. This is default behavior even if you don’t pass this parameter
no
– will not change the port name
type: string
enum:
- smart
- 'yes'
- 'no'
overwrite_object_categories:
name: overwrite_object_categories
in: formData
enum:
- 'yes'
- 'no'
type: string
orientation_rack:
name: orientation
in: formData
type: string
description: >-
orientation of the rack in room layout view. Possible values: right, left,
up or down.
enum:
- left
- right
- up
- down
orientation_pdu:
name: orientation
in: formData
description: >-
orientation of the PDU in rack. back for rear facing, otherwise front is
default.
type: string
outlet_name:
name: outlet_name
in: formData
description: outlet name
type: string
outscale_regions:
name: outscale_regions
in: formData
description: Comma separated region names for Outscale
type: string
order_no:
name: order_no
in: query
description: Order number
type: string
order_date:
name: order_date
in: query
description: Order number
type: string
origin_type:
name: origin_type
in: query
enum:
- device
- circuit
- switchport
- vendor
- patch_panel_port
description: Type of origin point.
type: string
origin_type_post:
name: origin_type
in: formData
enum:
- cable
- circuit
- switchport
- tap_port
- patch_panel_port
description: Type of origin point.
type: string
origin_id:
name: origin_id
in: query
description: ID of the origin point
type: integer
origin_id_post:
name: origin_id
in: formData
description: ID of the origin point. Must be used with origin_type
type: integer
origin_device:
name: origin_device
in: query
description: 'if origin type is device, this is name of the device. Absent otherwise'
type: string
origin_device_post:
name: origin_device
in: formData
description: 'if origin type is device, this is name of the device. Absent otherwise'
type: string
origin_circuit_id:
name: origin_circuit_id
in: query
description: >-
if origin type is circuit, this is circuit_id of the circuit. Absent
otherwise
type: string
origin_circuit_id_post:
name: origin_circuit_id
in: formData
description: >-
if origin type is circuit, this is circuit_id of the circuit. Absent
otherwise
type: string
origin_switchport:
name: origin_switchport
in: query
description: >-
if origin type is switchport, this is name of the switch port. Absent
otherwise
type: string
origin_switchport_post:
name: origin_switchport
in: formData
description: >-
if origin type is switchport, this is name of the switch port. Used with origin_switch. Absent
otherwise
type: string
origin_switch:
name: origin_switch
in: query
description: 'if origin type is switchport, this is name of the switch. Absent otherwise'
type: string
origin_switch_post:
name: origin_switch
in: formData
description: 'if origin type is switchport, this is name of the switch. Absent otherwise. Used with origin_switchport'
type: string
origin_patch_panel_port:
name: origin_patch_panel_port
in: query
description: >-
if origin type is patch_panel_port, this is name of the patch panel port.
Absent otherwise
type: string
origin_patch_panel_port_post:
name: origin_patch_panel_port
in: formData
description: >-
if origin type is patch_panel_port, this is name of the patch panel port.
Absent otherwise
type: string
origin_patch_panel:
name: origin_patch_panel
in: query
description: >-
if origin type is patch_panel_port, this is name of the patch panel.
Absent otherwise
type: string
origin_patch_panel_id:
name: origin_patch_panel_id
in: query
description: >-
if origin type is patch_panel_port, this is ID of the patch panel. Absent
otherwise
type: string
origin_patch_panel_post:
name: origin_patch_panel
in: formData
description: >-
if origin type is patch_panel_port, this is name of the patch panel.
Absent otherwise
type: string
origin_patch_panel_id_post:
name: origin_patch_panel_id
in: formData
description: >-
if origin type is patch_panel_port, this is ID of the patch panel. Absent
otherwise
type: integer
origin_vendor:
name: origin_vendor
in: query
description: 'if origin type is vendor, this is name of the vendor. Absent otherwise'
type: string
origin_vendor_post:
name: origin_vendor
in: formData
description: 'if origin type is vendor, this is name of the vendor. Absent otherwise'
type: string
origin_optic_type:
name: origin_optic_type
in: formData
description: 'Optic Type (Definable, ie multimode)'
type: string
origin_back_patch_panel:
name: origin_back_patch_panel
in: formData
type: string
paired_ports:
name: paired_ports
in: formData
enum:
- 'yes'
- 'no'
type: string
patch_panel_model_id:
name: patch_panel_model_id
in: formData
description: Patch Panel Model ID or UI Tools > Export > Patch Panel Model
type: integer
patch_panel:
name: patch_panel
in: formData
description: Must be a unique asset name for this to work (Added in v5.8.2)
type: string
patch_panel_model:
name: patch_panel_model
in: formData
description: 'Name of the patch panel model (use instead of ID, Added in v5.8.2)'
type: string
powerunit_connection_ids:
name: powerunit_connection_ids
in: formData
description: A comma-separated list of PU IDs connected to this circuit
type: string
patch_panel_module_model_id:
name: patch_panel_module_model_id
in: formData
type: integer
description: ID of the Patch Panel Module model
patch_panel_module_model:
name: patch_panel_module_model
in: formData
description: 'Name of the patch panel module model (use instead of ID, Added in v5.8.2)'
type: string
parent_subnet_id:
name: parent_subnet_id
in: formData
description: 'Change the parent subnet of the subnet. Note: must be valid parent.'
type: string
parent_subnet_id_get:
name: parent_subnet_id
in: query
description: ID of the parent subnet
type: string
parent_subnet:
name: parent_subnet
in: query
description: parent subnet name
type: string
parent_subnet_with_mask:
name: parent_subnet
in: formData
description: >-
Parent subnet network with mask. The netowrk and mask sould be separated by /. Eg. 12.0.0.0/24
Provide vrf_group or vrf_group_id if parent subnet belongs to a VRF Group.
Otherwise this will match a parent subnet without VRF group
type: string
parent_subnet_name:
name: parent_subnet_name
in: formData
description: >-
Parent subnet name.
Provide vrf_group or vrf_group_id if parent subnet belongs to a VRF Group.
Otherwise this will match a parent subnet without VRF group
type: string
parent_mask_bits:
name: parent_mask_bits
in: formData
description: >-
only if searching within a VRF and you want to restrict to certain parents
with particular mask bits (added in v9.0.0)
type: string
parent_vlan_id:
name: parent_vlan_id
in: formData
type: string
part_no:
name: part_number
in: query
type: string
description: 'filter by part #'
part_no_post:
name: part_no
in: formData
type: string
part_id:
name: part_id
in: query
type: string
description: id of the part (added in v6.3.3)
partmodel_id:
name: partmodel_id
in: query
type: string
description: id of the part model (added in v6.3.3)
parent_pdu_id:
name: parent_pdu_id
in: formData
type: string
description: Available from /api/api/1.0/pdus/ or Tools
parent_pdu:
name: parent_pdu
in: formData
type: string
description: name of the parent PDU. Must be unique name. Added in v5.8.2
partno:
name: partno
in: formData
description: 'Part # of the part model'
type: string
parent_port:
name: parent_port
in: formData
type: string
parent_port_device:
name: parent_port_device
in: formData
type: string
patch_panel_port_id:
name: patch_panel_port_id
in: formData
type: integer
pdu:
name: pdu
in: formData
type: string
description: name of the PDU. only works if the name is unique in the system
pdu_id:
name: pdu_id
in: formData
type: integer
description: ID of the PDU to be edited
pdu_model:
name: pdu_model
in: formData
type: string
description: >-
Name of the PDU model. You can use this instead of the ID above. (Added in
v5.8.2)
pdu_model_name:
name: pdu_model_name
in: formData
type: string
description: Name of the PDU model you want to add ports to.
pdu_model_id:
name: pdu_model_id
in: formData
type: string
description: ID of the PDU model you want to update
polling_interval:
name: polling_interval
in: formData
description: Polling interval in seconds. Adjusted to the nearest available interval value. (e.g., 300 = 5 minutes, 1800 = 30 minutes)
type: string
port:
name: port
in: query
description: child is optional assuming you have a parent created (see examples)
type: string
required: true
port_post:
name: port
in: formData
description: >-
child is optional assuming you have a parent created. Required if no
hwaddress
Note: Do not use a port alias for the port name.
type: string
ports:
name: ports
in: formData
description: 'default is 443, comma separated'
type: string
port_name:
name: port_name
in: formData
description: 'Interface name. (Please note: This is NOT the switchport name.)'
type: string
port_id:
name: port_id
in: query
description: >-
For the port and switch option, port refers to the switchport name (not
the interface name) and switch refers to the device name of the switch.
type: string
port_number:
name: port_number
in: query
description: port number
type: string
port_capability:
name: port_capability
in: formData
description: 'Port Capability - Device, Monitor'
type: string
port_to_from_id:
name: port_to_from_id
in: formData
type: integer
port_type:
name: port_type
in: query
description: 'Port Type Name - RJ45, RJ11, Fiber LC, Fiber SC, Fiber FC'
type: string
required: true
port_type_id:
name: port_type_id
in: formData
type: integer
po_date:
name: po_date
in: formData
type: string
port_name_prefix_to_ignore_macs:
name: port_name_prefix_to_ignore_macs
in: formData
type: string
prio:
name: prio
in: formData
description: Priority for MX record.
type: string
protocol:
name: protocol
in: formData
description: 'the transport protocol, ie TCP'
type: string
psu_label:
name: psu_label
in: formData
description: >-
typically used when device has multiple power supplies, e.g.: power supply
1, power supply 2, etc.
type: string
purchase_id:
name: purchase_id
in: query
description: Device42 Purchase ID
type: string
plain_text:
name: plain_text
in: query
enum:
- 'yes'
- 'no'
description: >-
Decrypt the password and return the plain text version. ?plain_text=yes
will decrypt and display the password.
type: string
platform:
name: platform
in: formData
type: string
enum:
- windows
- classic winrm
- docker api
- docker
- nutanix
- linux
- vmware
- unix
- aix hmc
- openvz
- oracle vm
- lxc
- kvm
- libvirt
- ovirt
- redhat
- citrix xen
- sccm
password:
name: password
type: string
in: formData
description: The password for the given username.
phone:
name: phone
type: string
in: formData
description: Text field.
provision_date:
name: provision_date
type: string
in: query
description: Text field.
prepend_vmhostname:
name: prepend_vmhostname
type: string
in: formData
enum:
- 'yes'
- 'no'
get_power_units_id:
name: id
type: integer
in: query
description: ID of Power Unit
get_power_units_name:
name: name
type: string
in: query
description: Name of Power Unit
get_power_units_type:
name: type
type: string
in: query
description: Type of Power Unit
enum:
- 'PDU'
- 'UPS'
- 'ATS'
- 'Environment Monitor'
get_power_units_pdu_model_id:
name: pdu_model_id
type: integer
in: query
description: ID of Power Unit Model
get_power_units_pdu_model:
name: pdu_model
type: string
in: query
description: Name of Power Unit Model
get_power_units_building_id:
name: building_id
type: integer
in: query
description: ID of Building that the Power Unit is in.
get_power_units_room_id:
name: room_id
type: integer
in: query
description: ID of Room that the Power Unit is in.
get_power_units_rack_id:
name: rack_id
type: integer
in: query
description: ID of Rack that the Power Unit is on
get_power_units_serial_no:
name: serial_no
type: integer
in: query
description: Serial Number of Power Unit
get_power_units_device_id:
name: device_id
type: integer
in: query
description: ID of Device
get_power_units_gateway_pdu_id:
name: gateway_pdu_id
type: integer
in: query
description: ID of gateway Power Unit
post_power_units_name:
name: name
type: string
in: formData
required: true
description: Name of Power Unit
post_power_units_type:
name: type
type: string
in: formData
enum:
- 'PDU'
- 'UPS'
- 'ATS'
- 'Environment Monitor'
description: Type of Power Unit. Default is Pdu
post_power_units_pdu_model_id:
name: pdu_model_id
type: integer
in: formData
description: ID of Power Unit Model. Only pdu_model_id or pdu_model can be used.
post_power_units_pdu_model:
name: pdu_model
type: string
in: formData
description: Name of Power Unit Model. Only pdu_model_id or pdu_model can be used.
post_power_units_notes:
name: notes
type: string
in: formData
description: Any additional notes
post_power_units_rated_power:
name: rated_power
type: string
in: formData
description: >-
Rated Power of Power Unit. No need to use this field if infeeds are shown.
(e.g. 250 amps or maybe something like 75a / 75a / 75a for a 3-phase pdu)
post_power_units_outlet_name:
name: outlet_name
type: string
in: formData
description: Name of outlet the Power Unit Port is using
post_power_units_pdu_serial_no:
name: pdu_serial_no
type: integer
in: formData
description: Serial number of Power Unit
post_power_units_device:
name: device
type: string
in: formData
description: Name of Device that maps with Power Unit
post_power_units_serial_no:
name: serial_no
type: integer
in: formData
description: Serial number of device
post_power_units_asset_no:
name: asset_no
type: integer
in: formData
description: Asset number of device
post_power_units_storage_room_id:
name: storage_room_id
type: integer
in: formData
description: ID of storage room power unit is in. Only storage_room_id or storage_room can be used.
post_power_units_storage_room:
name: storage_room
type: string
in: formData
description: Name of storage room power unit is in. Only storage_room_id or storage_room can be used.
post_power_units_object_category:
name: object_category
type: string
in: formData
description: Name of Object Category
post_power_units_new_object_category:
name: new_object_category
type: string
in: formData
description: Use to change Object Category
post_power_units_gateway_pdu_id:
name: gateway_pdu_id
type: integer
in: formData
description: >-
ID of gateway PDU to set. Only gateway_pdu_id or gateway_pdu can be used.
You cannot set gateway power unit when a device mapping is set.
post_power_units_gateway_pdu:
name: gateway_pdu
type: string
in: formData
description: >-
Name of gateway PDU to set. Only gateway_pdu_id or gateway_pdu can be used.
You cannot set gateway power unit when a device mapping is set.
post_power_units_tags:
name: tags
type: string
in: formData
description: Add tags to Power Unit
put_power_units_pdu_id:
name: pdu_id
type: integer
in: formData
description: ID of Power Unit. Either 'name' or 'pdu_id' is REQUIRED.
put_power_units_name:
name: name
type: string
in: formData
description: Name of Power Unit. Either 'name' or 'pdu_id' is REQUIRED.
put_power_units_new_name:
name: new_name
type: string
in: formData
description: Use to change the name of the Power Unit
put_power_units_tags_remove:
name: tags_remove
type: string
in: formData
description: Use to remove tags
delete_power_units_id:
name: id
type: integer
in: path
description: ID of Power Unit
run:
name: run
type: string
in: formData
required: true
description: yes to start
run_as_operator:
name: run_as_operator
type: string
in: formData
enum:
- 'yes'
- 'no'
overwrite_device_name:
name: overwrite_device_name
type: string
in: formData
enum:
- 'yes'
- 'no'
row:
name: row
type: string
in: formData
description: >-
this row field is for the name of the rows, and not related to the grid
positioning of the rack
room_id:
name: room_id
type: integer
in: query
description: filter by room ID (Added in v5.9.0)
room_id_post:
name: room_id
type: string
in: formData
description: Room ID if Room name is not unique
room:
name: room
type: string
in: query
description: >-
filter by room name. Only works if room ID is not present (Added in
v5.9.0)
raid_type:
name: raid_type
type: string
in: formData
description: type of RAID
raid_group:
name: raid_group
type: string
in: formData
description: RAID group name
ramsize:
name: ramsize
type: string
in: formData
description: 'enter in MB, e.g.: 8 GB enter 8192'
ramtype:
name: ramtype
type: string
in: formData
description: 'e.g.: DDR3'
ramspeed:
name: ramspeed
type: string
in: formData
description: 'e.g.: 1600'
rack_id:
name: rack_id
type: integer
in: query
description: filter by rack ID (Added in v5.9.0)
rack:
name: rack
type: string
in: query
description: >-
filter by rack name. Only works if rack ID is not present (Added in
v5.9.0)
rated_power:
name: rated_power
type: string
in: formData
related_field_name:
name: related_field_name
type: string
in: formData
enum:
- appcomp
- building
- businessapp
- certificate
- circuit
- cloudinfrastructure
- costcenter
- customer
- device
- dns_zone
- endusers
- hardware
- ip_address
- netport
- organisation
- os
- pdu
- pdu_model
- powercircuit
- purchase
- rack
- room
- servicecategory
- software_category
- software
- vlan
description: >-
Required if type = related_field. The existing field to relate this
custom field to. Below are details for some of the fields that have been renamed
or require further clarification.
appcomp (for application components), businessapp (for Business Service),
circuit (for Telco Circuit), cloudinfrastructure (for Cloud Account),
hardware (for device hardware model), netport (for Switch Port),
organisation (for Vendor), pdu (for Power Unit), pdu_model (for Power Unit Model),
purchase (for Purchase Order), software (for Software Component),
vlan (for Subnet)
related_device_id:
name: related_device_id
type: integer
in: query
description: ID of the related device (added in v9.3.0)
raised_floor:
name: raised_floor
type: string
in: formData
enum:
- 'yes'
- 'no'
raised_floor_height:
name: raised_floor_height
type: string
in: formData
description: height of raised floor
reverse_xaxis:
name: reverse_xaxis
type: string
in: formData
enum:
- 'yes'
- 'no'
description: '''yes'' reverses the numbering order on the x-axis'
reverse_yaxis:
name: reverse_yaxis
type: string
in: formData
enum:
- 'yes'
- 'no'
description: '''yes'' reverses the numbering order on the y-axis'
remote_collector_id:
name: remote_collector_id
type: string
in: formData
range_begin:
name: range_begin
in: query
description: Range Begin (added in v7.2.0)
type: string
range_begin_post:
name: range_begin
in: formData
description: Range Begin (added in v7.2.0)
type: string
range_end:
name: range_end
in: query
description: Range End (added in v7.2.0)
type: string
range_end_post:
name: range_end
in: formData
description: Range End (added in v7.2.0)
type: string
remove_unfound_instances:
name: remove_unfound_instances
in: formData
type: string
enum:
- 'yes'
- 'no'
remote_port_id:
name: remote_port_id
in: formData
description: ID of the remote connected switch port.
type: string
remote_ips:
name: remote_ips
in: formData
description: >-
the comma separated list of remote IPs that are connected to this
listening IP/port
type: string
remote_device:
name: remote_device
in: formData
description: Name of the switch for remote connected switch port.
type: string
remote_port:
name: remote_port
in: formData
description: Name of the port for remote connected switch port.
type: string
remote_port_clear:
name: remote_port_clear
in: formData
enum:
- 'yes'
- 'no'
description: 'if set to yes, will clear the remote port'
type: string
reserve_ip:
name: reserve_ip
in: query
enum:
- 'yes'
- 'no'
description: >-
If value of yes is passed, the suggested IP is reserved. Return value also
adds reserved as yes or no. (added in v7.2.0)
type: string
row_size:
name: row_size
in: formData
description: How many rows long the rack is
type: string
snmp_string:
name: snmp_string
in: formData
type: string
description: 'required, if new'
snmp_port:
name: snmp_port
in: formData
type: integer
description: snmp port (integer only) (added in v10.4.0)
snmp_version:
name: snmp_version
in: formData
type: string
default: v2c
enum:
- v1
- v2c
- v3
snmp_string_id:
name: snmp_string_id
in: formData
type: string
description: The id of the password for the community string
snmp_strings:
name: snmp_strings
in: formData
type: string
description: >-
Can be comma separated list of community strings to use multiple community
strings
snmp_string_ids:
name: snmp_string_ids
in: formData
type: string
description: >-
Can be comma separated list of community string IDs to use multiple
community strings
snmpv3_auth_password_id:
name: snmpv3_auth_password_id
in: formData
type: string
description: The id of the password for the auth password
snmpv3_privacy_protocol_password_id:
name: snmpv3_privacy_protocol_password_id
in: formData
type: string
description: The id of the password for the privacy protocol password
snmpv3_user:
name: snmpv3_user
in: formData
type: string
description: name of snmp v3 user (added in v10.4.0)
snmpv3_auth_mode:
name: snmpv3_auth_mode
in: formData
type: string
enum:
- noAuthoNoPriv
- authNoPriv
- authPriv
snmpv3_auth_protocol:
name: snmpv3_auth_protocol
in: formData
type: string
enum:
- MD5
- SHA
- SHA256
- SHA512
snmpv3_auth_password:
name: snmpv3_auth_password
in: formData
type: string
description: password (added in v10.4.0)
snmpv3_privacy_protocol:
name: snmpv3_privacy_protocol
in: formData
type: string
enum:
- DES
- 3DES
- AES
- AES128
- AES192
- AES192C
- AES256
- AES256C
snmpv3_privacy_protocol_password:
name: snmpv3_privacy_protocol_password
in: formData
type: string
description: password (added in v10.4.0)
snmpv3_context:
name: snmpv3_context
in: formData
type: string
schedule_time:
name: schedule_time
in: formData
type: string
description: >-
Time in HH:MM format if you want to schedule the job. Note: Must be
formatted as text NOT date. For multiple schedules, separate with a slash
(/).
schedule_days:
name: schedule_days
in: formData
type: string
description: >-
Comma separated days of week, where Monday = 0. e.g. 0,1,2 will set the job
for Mon, Tue and Wed. For multiple schedules, separate with a slash (/).
strip_domain_name:
name: strip_domain_name
in: formData
type: string
enum:
- 'yes'
- 'no'
strip_domain_suffix:
name: strip_domain_suffix
in: formData
type: string
description: Strip domain suffix if discovered on VMs or hypervisor
enum:
- 'yes'
- 'no'
service_type:
name: service_type
type: string
in: query
description: could be ignored or tracked. Default is tracked.
secret_key:
name: secret_key
type: string
in: formData
description: Amazon AWS, MS Azure, OpenStack, Google Cloud, Alibaba Cloud, Oracle Cloud
secret_key_id:
name: secret_key_id
type: string
in: formData
description: Amazon AWS, MS Azure, OpenStack, Google Cloud, Alibaba Cloud, Oracle Cloud
server:
name: server
type: string
in: formData
description: IP or FQDN of target server
required: true
service_level_device_id:
name: service_level_device_id
type: string
in: formData
service_name:
name: service_name
type: string
in: query
required: true
description: The executable name of the service
service_display_name:
name: service_display_name
type: string
in: query
required: true
description: The user freindly display name of the service
service_id:
name: service_id
type: string
in: query
description: filter by id of the service
service_detail_id:
name: service_detail_id
type: string
in: query
description: filter by id of the service in use
serial_no:
name: serial_no
type: string
in: query
description: 'filter by serial # (Added in v6.0.0)'
serial_no_contains:
name: serial_no_contains
type: string
in: query
description: filter by partial serial match (Added in 9.7.1)
sequential_numbering_for_ports:
name: sequential_numbering_for_ports
type: string
in: formData
enum:
- 'yes'
- 'no'
description: Could be “yes” or “no”. Yes if ports are numbered starting from 1.
skip_vlan_indexing:
name: skip_vlan_indexing
type: string
in: formData
description: yes or no (added in v10.4.0)
status:
name: status
in: formData
type: string
description: 'Instance status (ie, running, stopped)'
state:
name: state
in: query
type: string
description: >-
The current running state of this service. Valid values are ‘Running’,
‘Started’, ‘Paused’, ‘Stopped’ and ‘Unknown’
startmode:
name: startmode
in: query
type: string
description: >-
The start mode of this service - valid values are ‘Automatic’, ‘Manual’,
‘Disabled’ and ‘Unknown’
subnet_id:
name: subnet_id
in: query
description: ID of the subnet (added in v7.2.0)
type: string
subnets_type:
name: type
in: formData
enum:
- 'Static'
- 'DHCP'
- 'Reserved'
- 'D42_NULL'
description: type of the subnet. Pass D42_NULL to empty out type.
type: string
subscriptionid:
name: subscriptionid
in: formData
description: MS Azure Subscription ID
type: string
subnet:
name: subnet
in: query
description: name of the subnet
type: string
sudo_retry:
name: sudo_retry
in: formData
type: string
service_level:
name: service_level
type: string
in: query
description: filter by service level name
service_level_post:
name: service_level
type: string
in: formData
description: Must already exist
show_on_chart:
name: show_on_chart
type: string
in: formData
description: Show the field on impact charts
slot_numbering:
name: slot_numbering
type: string
in: formData
enum:
- top_to_bottom
- bottom_to_top
- left_to_right
- right_to_left
switch:
name: switch
in: formData
description: >-
d42 will look for existing port and switch combination and if it exists,
will update that port.
type: string
switch_ids:
name: switch_ids
in: formData
description: Comma separated values for switch_ids
Only vlans with these switch_ids will be merged
type: string
switch2_id:
name: switch2_id
in: query
description: ID of the 2nd network device port is on
type: string
switchport_id:
name: switchport_id
in: formData
description: >-
ID for the switch port. Available via GET at /api/api/1.0/switchports/ or
Tools > Export > Switch Port
type: string
speed:
name: speed
in: formData
description: update port speed
type: string
slave_ports:
name: slave_ports
in: formData
description: comma separated port names
type: string
switch_template_id:
name: switch_template_id
in: formData
required: true
description: GET all Switch Templates
type: string
source_port_start:
name: source_port_start
in: formData
description: Starting port for source IP range
type: string
source_port_end:
name: source_port_end
in: formData
description: used for mapping a range of ports rather than a single port
type: string
software_id:
name: software_id
type: string
in: query
description: filter by id of the software
software_detail_id:
name: software_detail_id
type: string
in: query
description: filter by id of the software
software:
name: software
type: string
in: formData
description: the name of the software
required: true
software_name:
name: software_name
type: string
in: query
description: filter by name of the software component
software_type:
name: software_type
type: string
in: query
description: 'Filter by software type (managed, unmanaged, prohibited or ignored)'
size:
name: size
in: formData
type: string
description: Size of the PDU in U
storage_room_id:
name: storage_room_id
in: formData
type: string
description: ID of storage room to assign power unit to
storage_room:
name: storage_room
in: formData
type: string
description: Name of storage room to apply power unit to
store_config_files:
name: store_config_files
in: formData
type: string
enum:
- 'yes'
- 'no'
start_ip_address:
name: start_ip_address
in: formData
type: string
description: Legacy Field. Please use Server property
start_row:
name: start_row
in: formData
type: string
description: 'Starting row for rack, for grid positioning'
start_col:
name: start_col
in: formData
type: string
description: 'Starting column for the rack, for grid positioning'
start_at:
name: start_at
in: formData
type: string
description: Required if adding to rack. U Start location.
slot_no:
name: slot_no
in: formData
type: integer
description: Number of slot on rack
spec_url:
name: spec_url
in: formData
type: string
description: Specification url for the hardware model.
tags:
name: tags
type: string
in: query
description: >-
filter by tags. comma separated for multiple tags (This is an OR filter,
gets all the devices for all comma separated tags)
tags_and:
name: tags_and
type: string
in: query
description: >-
filter by all the tags, separated by comma. (This is an AND filter and all
tags have to match for filter, this was added in v6.3.1)
tags_remove:
name: tags_remove
type: string
in: formData
description: remove tags from a switchport
tags_post:
name: tags
type: string
description: add tags (comma separated)
in: formData
tags_remove_generic:
name: tags_remove
type: string
in: formData
description: remove tags (comma separated)
target:
name: target
type: string
in: formData
description: list of ip(s), ip range(s), cidr(s) and fqdn(s) to run discovery on
required: true
exclude_targets:
name: exclude_targets
type: string
in: formData
description: list of ip(s), ip range(s), cidr(s) and fqdn(s) to exclude from discovery
tenant:
name: tenant
type: string
in: formData
description: OpenStack Project name; Google Project ID; Oracle Tenant ID; Arista CloudVision Tenant; Workspace ONE Tentant;
type:
name: type
type: string
in: query
description: >-
filter by device type (physical, virtual, blade, other, cluster or
unknown)
required: true
ttl:
name: ttl
in: query
description: TTL value.
type: string
target_port_start:
name: target_port_start
in: formData
description: Starting port for target IP range
type: string
target_port_end:
name: target_port_end
in: formData
description: used for mapping a range of ports rather than a single port
type: string
two_way_relation:
name: two_way_relation
in: formData
enum:
- true
- false
description: >-
true if the internal IP addressed is masked with the external IP address
for outbound traffic in addition to inbound traffic. Default is false.
type: string
token_key:
name: token_key
in: formData
description: DigitalOcean Token Key - required for DigitalOcean.
type: string
token_id:
name: token_id
in: path
description: The id of the token
type: integer
required: true
total_count:
name: total_count
in: query
description: Count of IPs returned (use with offset as max results are limited to 1000)
type: string
toggle_in_service_on_module_power_state:
name: toggle_in_service_on_module_power_state
in: formData
description: yes or no
type: string
toggle_service_level_on_vm_power_state:
name: toggle_service_level_on_vm_power_state
in: formData
type: string
enum:
- 'yes'
- 'no'
threads:
name: threads
in: formData
description: number of threads
type: string
track_licensed_by_count:
name: track_licensed_count_by_keys
type: string
in: formData
enum:
- 'yes'
- 'no'
description: whether or not to track software by discovered count
track_vm_name_change:
name: track_vm_name_change
type: string
in: formData
enum:
- 'yes'
- 'no'
turn_on_date:
name: turn_on_date
type: string
in: query
use_only_users_remove:
name: use_only_users_remove
type: string
in: formData
description: A comma separated list of users to remove use only permissions.
use_only_groups:
name: use_only_groups
type: string
in: formData
description: A comma separated list of user groups that have use permissions.
use_only_groups_remove:
name: use_only_groups_remove
type: string
in: formData
description: A comma separated list of user groups to remove use permissions.
uuid:
name: uuid
type: string
in: query
description: filter by uuid (exact match) (Added in v6.3.2)
user_id:
name: user_id
type: string
in: query
description: filter by id of the user
uom:
name: uom
in: formData
type: string
enum:
- m
- in
description: unit of measurement (meters or inches)
up:
name: up
in: formData
description: = yes for up. = no for down.
enum:
- 'yes'
- 'no'
type: string
up_admin:
name: up_admin
in: formData
description: Whether port is administratively up or down. = yes for up. = no for down.
type: string
enum:
- 'yes'
- 'no'
update_model_if_found:
name: update_model_if_found
in: formData
enum:
- 'yes'
- 'no'
type: string
user:
name: user
in: formData
description: enduser name
type: string
use_name_alias_port_descr:
name: use_name_alias_port_descr
in: formData
enum:
- 'yes'
- 'no'
description: yes to use alias for port description during discovery (added in v8.3.2)
type: string
use_service_account:
name: use_service_account
in: formData
type: string
enum:
- 'yes'
- 'no'
use_domain_server:
name: use_domain_server
in: formData
type: string
enum:
- 'yes'
- 'no'
use_fqdn:
name: use_fqdn
in: formData
type: string
enum:
- 'yes'
- 'no'
username:
name: username
in: query
description: Retrieve all the secrets with the specified username. ?username=
type: string
username_post:
name: username
in: formData
type: string
username_and_password:
name: username_and_password
type: string
in: query
description: Create a new password.
url:
name: url
type: string
in: formData
description: Cloudstack IP address - required for CloudStack
url_prefix:
name: url_prefix
type: string
in: formData
description: http or https
url_suffix:
name: url_suffix
type: string
in: formData
description: append suffix to discovery url
voltage:
name: voltage
type: string
in: formData
description: The rated voltage on this circuit
vm_name_to_use:
name: vm_name_to_use
type: string
in: formData
description: “found from vm tools” or “as named on vserver”
vm_not_found:
name: vm_not_found
type: string
in: formData
enum:
- Remove Host Association
- Change Service Level
- Delete VM
- Do Nothing
description: Choose how to handle VM not found in discovery
vm_add_disk:
name: vm_add_disk
type: string
in: formData
enum:
- 'yes'
- 'no'
virtual_host_name:
name: virtual_host_name
type: string
in: query
description: filter by virtual host name
virtual_subtype:
name: virtual_subtype
type: string
in: query
description: filter by virtual subtype (added in v8.3.2)
virtualsubtype_id:
name: virtualsubtype_id
type: string
in: formData
enum:
- '1'
- '2'
- '3'
- '4'
- '5'
- '6'
- '7'
- '8'
- '9'
- '10'
- '11'
- '12'
- '13'
- '14'
- '15'
- '16'
- '17'
- '18'
- '19'
- '20'
- '21'
- '22'
- '23'
- '24'
- '25'
- '26'
- '27'
- '28'
- '29'
- '30'
- '31'
- '32'
- '33'
description: >-
Virtual subtype id. Only for virtual devices.
1. Internal VM 2. Amazon EC2 Instance 3. Azure Cloud Service
4. Azure SQL Server 5. Azure Storage 6. Other
7. Outscale Instance 8. Linode Instance 9. DigitalOcean Instance
10. Azure Virtual Machine 11. VMWare 12. Citrix/Xen
13. KVM 14. Hyper-V 15. Docker Container
16. LXC Container 17. Rackspace VM 18. Softlayer VM
19. QEMU 20. Joyent Instance 21. VirtualBox
22. Oracle VM 23. OpenStack 24. Xen
25. LPAR 26. GCE 27. Amazon Service
28. Context 29. Alibaba Cloud Instance 30. Oracle Cloud Instance
31. Kubernetes Container 32. AIX VIOS 33. Nutanix AHV
vertical_grid_numbering:
name: vertical_grid_numbering
type: string
in: formData
enum:
- numeric
- alphabetic
- alphabetic_doubled
description: numeric by default
vertical_grid_start:
name: vertical_grid_start
type: string
in: formData
vrf_group_id:
name: vrf_group_id
in: query
description: ID of the VRF group
type: string
vrf_group_id_post:
name: vrf_group_id
in: formData
description: ID of the VRF group
type: integer
vrf_group_from:
name: vrf_group_from
in: formData
description: Originating VRF Group Name
type: string
vrf_group_id_from:
name: vrf_group_id_from
in: formData
description: Originating VRF Group ID
type: string
vrf_group_to:
name: vrf_group_to
in: formData
description: Destination VRF Group Name
type: string
vrf_group_id_to:
name: vrf_group_id_to
in: formData
description: Destination VRF Group ID
type: string
vrf_group:
name: vrf_group
in: query
description: VRF group name
type: string
vrf_group_post:
name: vrf_group
in: formData
description: VRF group name
type: string
vrfgroup:
name: vrfgroup
in: formData
description: name of vrf group for discovered subnets (added in v10.4.0)
type: string
vendor:
name: vendor
in: query
type: string
description: The cloud vendor
vendor_post:
name: vendor
in: formData
type: string
description: The cloud vendor
vendor_name:
name: name
in: query
description: The name of vendor to filter by.
type: string
vlan_id:
name: vlan_id
in: query
description: ID of the vlan
type: string
vlan_id_post:
name: vlan_id
in: formData
description: ID of the vlan
type: string
vlan:
name: vlan
type: string
in: formData
description: Primary Vlan. Use the value 'D42_NULL' to clear up the content of the primary vlan field.
vlans:
name: vlans
type: string
in: formData
description: list of vlans separated by commas.
vlan_ids:
name: vlan_ids
type: string
in: formData
description: list of vlan ids separated by commas.
clear_vlans:
name: clear_vlans
type: string
in: formData
description: list of vlans to be removed separated by commas.
clear_vlan_ids:
name: clear_vlan_ids
type: string
in: formData
description: list of vlan ids to be removed separated by commas.
clear_switch_ids:
name: clear_switch_ids
type: string
in: formData
description: list of switch ids to be removed separated by commas.
clear_switches:
name: clear_switches
type: string
in: formData
description: list of switches to be removed separated by commas.
value:
name: value
in: formData
type: string
description: This will set the value of the custom field for the specific object.
version:
name: version
type: string
in: formData
description: The version number of the software
view_users:
name: view_users
type: string
in: formData
description: >-
A comma separated list of users that have permission to view this
secret.
view_edit_users:
name: view_edit_users
type: string
in: formData
description: >-
A comma separated list of users that have permission to view and edit this
secret.
view_groups:
name: view_groups
type: string
in: formData
description: >-
A comma separated list of user groups that have permission to view this
secret.
view_users_remove:
name: view_users_remove
type: string
in: formData
description: A comma separated list of users to remove view permissions.
view_edit_users_remove:
name: view_edit_users_remove
type: string
in: formData
description: A comma separated list of users to remove view and edit permissions.
view_groups_remove:
name: view_groups_remove
type: string
in: formData
description: A comma separated list of user groups to remove use permissions.
view_edit_groups:
name: view_edit_groups
type: string
in: formData
description: A comma separated list of user groups that have view and edit permissions.
view_edit_groups_remove:
name: view_edit_groups_remove
type: string
in: formData
description: A comma separated list of user groups to remove view and edit permissions.
vlans_to_ignore:
name: vlans_to_ignore
type: string
in: formData
description: list of vlan ids to ignore separated by commas (added in v10.4.0). Use the value 'D42_NULL' to clear up the content of the vlans_to_ignore field.
weeks:
name: weeks
type: string
in: query
description: only for schedule based services where startmode = ‘Scheduled’
wall:
name: wall
type: string
in: query
description: >-
Can be one of ‘left’, ‘right’, ‘top’, ‘bottom’, ‘middle’. Choose ‘middle’
if you do not want the object placed along one of the 4 walls.
where:
name: where
type: string
in: formData
enum:
- above
- below
- left
- right
- rack mounted
- shelf
description: >-
Location in a rack. Note: If mounted a size must be provided or available
from the hardware model.
watts:
name: watts
type: string
in: formData
description: per power supply
watts_get:
name: watts
type: string
in: query
description: filter by exact watts
what:
name: what
type: string
in: formData
description: Description of business impact due to loss of component.
width_ratio_get:
name: width_ratio
type: string
in: query
description: Get hardware by it's width ratio. 'Default=1. Can be 1/2, 1/3, 1/4, 1/5,1/6, 1/7, 1/8, 1/9, 1/10, 1/20'
width_ratio_post:
name: width_ratio
type: string
in: formData
enum:
- '1'
- '1/2'
- '1/3'
- '1/4'
- '1/5'
- '1/6'
- '1/7'
- '1/8'
- '1/9'
- '1/10'
- '1/20'
description: >-
Width ratio. Default: 1.
If given value is other than allowed values, default value will be assigned.
x_pos:
name: x_pos
type: integer
minimum: 0
maximum: 2520
in: formData
description: >-
A number between 0 and 2520 representing the position within the u slot in
increments of 252, which is equal to 1/10th of the width of the rack. 0
will place a device flush left, 1260 will place the left side of a device
in center.
zonename:
name: zonename
in: formData
type: string
description: name of the zone
required: true
remove_password_ids:
name: remove_password_ids
type: string
in: formData
description: Comma separated list of D42 IDs of existing secret records to be removed from the job.
definitions:
devices:
type: array
items:
$ref: '#/definitions/device'
device:
type: object
properties:
name:
example: '320'
serial_no:
example: 'null'
asset_no:
example: 'null'
preferred_alias:
example: 'null'
device_url:
example: /api/api/1.0/devices/id/34/
device_id:
example: '34'
type:
example: 'physical'
uuid:
example: 07FCE572-B2B3-B44C-BB1C-6799B509CC31
AppGroupCalcTemplate:
type: object
properties:
id:
type: integer
example: 1
description: ID of an existing Application Group Calculation Templates. Do not enter an ID if you are creating a new template.
name:
type: string
example: 'Custom Template Name'
description: Name of the Application Group Calculation Templates. Either name or id is required.
calculation_format:
type: string
example: 'DOQL'
enum:
- 'Form'
- 'DOQL'
description: Whether the template is defined using DOQL or using predefined form fields. Required for new templates.
doql_query:
type: string
example: "SELECT servicecommunication_pk FROM view_servicecommunication_v2 where date_part('day', now() :: timestamp - last_updated :: timestamp) <= 30"
description: DOQL query to use for template. Required for new templates with DOQL calculation format.
connection_limit:
type: integer
example: 10
description: How many connections are allowed for a single node in application group before it stops traversing
time_period:
type: integer
example: 30
description: Number of days to look back for connections
exclude_local_host:
type: string
example: 'yes'
enum:
- 'yes'
- 'no'
description: Exclude any connections that are to the local host
exclude_unmapped_clients:
type: string
example: 'yes'
enum:
- 'yes'
- 'no'
description: Exclude any connections that are client only
exclude_client_os:
type: string
example: 'yes'
enum:
- 'yes'
- 'no'
description: Exclude devices with client operating systems
end_at_vip:
type: string
example: 'yes'
enum:
- 'yes'
- 'no'
description: Stop traversing at VIPs
end_at_db:
type: string
example: 'yes'
enum:
- 'yes'
- 'no'
description: Stop traversing at databases
depth_level:
type: integer
example: 20
description: How many levels deep to traverse
exclude_udl:
type: string
example: 'yes'
enum:
- 'yes'
- 'no'
description: Exclude any connections that are to Undiscovered Listeners
inclusions:
description: JSON array of inclusion criteria
type: array
items:
properties:
criteria:
type: string
example: "type=\"virtual\""
description: Advanced query filtering as specified in list page for selected ci type.
ci_type:
type: string
enum:
- 'device'
- 'resource'
description: Type of CI to include - currently supporting device and resources
exclusions:
description: JSON array of exclusion criteria
type: array
items:
properties:
criteria:
type: string
example: "category = \"Database\""
description: Advanced query filtering as specified in list page for selected ci type.
ci_type:
type: string
enum:
- 'application_component'
- 'device'
- 'resource'
- 'serviceportremoteip'
- 'servicedetail'
description: Type of CI to include - currently supporting application_component, device, resource, serviceportremoteip, and servicedetail
AppGroupCalcTemplateGet:
allOf:
- $ref: '#/definitions/AppGroupCalcTemplate'
- type: object
properties:
last_processed:
type: string
example: '2024-09-09T10:42:47.241286Z'
description: Date and time the template was last processed
processing_status:
type: string
example: 'Completed'
enum:
- 'Processing'
- 'Completed'
- 'Warnings'
- 'Failed'
description: Status of the template processing
processing_logs:
type: string
example: 'Error preparing data for Application Group Calculation Template.'
description: Logs from the last processing of the template
first_added:
type: string
example: '2024-09-09T10:42:47.241286Z'
description: Date and time the template was added to the database
last_updated:
type: string
example: '2024-09-09T10:42:47.241286Z'
description: Date and time the template record in the database was saved, regardless if any properties were changed or not
AppGroupCalcRuleBase:
type: object
properties:
id:
type: integer
example: 1
description: ID of an existing Application Group Calculation Rule. Do not enter an ID if you are creating a new rule.
name:
type: string
example: 'Custom Rule Name'
description: Name of the Application Group Calculation Rule. Either name or id is required.
enabled:
type: string
example: 'yes'
enum:
- 'yes'
- 'no'
description: Whether the rule is enabled or disabled.
outcome:
type: string
example: 'Auto-Create'
enum:
- 'Auto-Create'
- 'Suggest'
description: Whather the rule produces Application Groups or Application Group Suggestions when processing.
starting_point_type:
type: string
example: 'Criteria'
enum:
- 'Criteria'
- 'Fixed'
description: Whether the Application Groups start with a fixed starting point or a criteria based starting point.
starting_point_criteria:
description: JSON array of starting point criteria
type: array
items:
properties:
criteria:
type: string
example: "type=\"virtual\""
description: Advanced query filtering as specified in list page for selected ci type.
ci_type:
type: string
enum:
- 'application_component'
- 'device'
- 'resource'
- 'servicedetail'
example: 'device'
description: Type of CI to include - currently supporting application_component, device, resource, and servicedetail
required:
type: string
enum:
- 'yes'
- 'no'
example: 'yes'
description: Whether the starting point is required for the rule.
group_by:
type: array
items:
type: string
example: 'Name'
description: How to group starting points for Application Groups when processing the rule. Available options depend on the CIs in the starting point.
group_by_tags_like:
type: string
example: 'App-%'
description: Tag pattern to group by. Use '%'' as a wildcard. For example, to group on tags like 'App-1', 'App-2', use 'App-%'. Either group_by or group_by_tags_like is required for criteria based starting points.
application_group_calc_template:
type: string
example: 'D42 Default Template'
description: Name of the Application Group Calculation Template to use for processing the rule. The default template is 'D42 Default Template'.
application_group_calc_template_id:
type: integer
example: 1
description: ID of the Application Group Calculation Template to use for processing the rule.
levels_of_depth:
type: integer
example: 20
description: Default levels of depth to display on Application Groups. Leave blank to fully expand.
store_connection_metadata:
type: string
example: 'yes'
enum:
- 'yes'
- 'no'
description: Whether to store and display connection metadata.
AppGroupCalcRuleGet:
allOf:
- $ref: '#/definitions/AppGroupCalcRuleBase'
- type: object
properties:
is_system:
type: string
example: 'no'
enum:
- 'yes'
- 'no'
description: Whether the rule is a system rule or a custom rule.
starting_point_devices:
description: JSON array of devices in the fixed starting point
type: array
items:
properties:
device_id:
type: integer
example: 1
description: ID of the device to use as a starting point
name:
type: string
example: 'Device Name'
description: Name of the device to use as a starting point
starting_point_resources:
description: JSON array of resources in the fixed starting point
type: array
items:
properties:
resource_id:
type: integer
example: 1
description: ID of the resource to use as a starting point
name:
type: string
example: 'Resource Name'
description: Name of the resource to use as a starting point
starting_point_application_components:
description: JSON array of application components in the fixed starting point
type: array
items:
properties:
application_component_id:
type: integer
example: 1
description: ID of the application component to use as a starting point
name:
type: string
example: 'Application Component Name'
description: Name of the application component to use as a starting point
starting_point_service_instances:
description: JSON array of service instances in the fixed starting point
type: array
items:
properties:
service_detail_id:
type: integer
example: 1
description: ID of the service instance to use as a starting point
service_display_name:
type: string
example: 'Service Display Name'
description: Display name of the service of service instance to use as a starting point
last_processed:
type: string
example: '2024-09-09T10:42:47.241286Z'
description: Date and time the rule was last processed
processing_status:
type: string
example: 'Completed'
enum:
- 'Processing'
- 'Completed'
- 'Warnings'
- 'Failed'
description: Status of the rule processing
processing_logs:
type: string
example: 'Cannot process disabled Calculation Rules'
description: Logs from the last processing of the rule
first_added:
type: string
example: '2024-09-09T10:42:47.241286Z'
description: Date and time the rule was added to the database
last_updated:
type: string
example: '2024-09-09T10:42:47.241286Z'
description: Date and time the rule record in the database was saved, regardless if any properties were changed or not
AppGroupCalcRulePost:
allOf:
- $ref: '#/definitions/AppGroupCalcRuleBase'
- type: object
properties:
remove_starting_point_device_ids:
type: string
example: '1,2,3'
description: Comma separated list of device IDs to remove from the fixed starting point
remove_starting_point_resource_ids:
type: string
example: '1,2,3'
description: Comma separated list of resource IDs to remove from the fixed starting point
remove_starting_point_application_component_ids:
type: string
example: '1,2,3'
description: Comma separated list of application component IDs to remove from the fixed starting point
remove_starting_point_service_instance_ids:
type: string
example: '1,2,3'
description: Comma separated list of service instance IDs to remove from the fixed starting point
starting_point_device_ids:
type: string
example: '1,2,3'
description: Comma separated list of device IDs to set as the fixed starting point
starting_point_resource_ids:
type: string
example: '1,2,3'
description: Comma separated list of resource IDs to set as the fixed starting point
starting_point_application_component_ids:
type: string
example: '1,2,3'
description: Comma separated list of application component IDs to set as the fixed starting point
starting_point_service_instance_ids:
type: string
example: '1,2,3'
description: Comma separated list of service instance IDs to set as the fixed starting point
devicesAll:
type: object
properties:
total_count:
example: '709'
limit:
example: '1'
devices:
type: array
items:
type: object
properties:
last_updated:
example: '2019-01-06T07:00:08.330Z'
orientation:
example: '1'
ip_addresses:
example: []
serial_no:
example: 'FOC1252W6EW'
hw_depth:
example: '1'
device_id:
example: '64'
service_level:
example: 'disposed'
is_it_blade_host:
example: 'no'
hw_size:
example: '1'
id:
example: '64'
custom_fields:
example: []
aliases:
example: []
category:
example: ''
hdd_details:
example: 'null'
uuid:
example: ''
cpuspeed:
example: 'null'
hw_model:
example: 'WS-C3750G-48TS-S'
row:
example: '10'
rack_id:
example: '9'
hddcount:
example: 'null'
building:
example: 'Building 3'
xpos:
example: '0'
device_external_links:
example: []
start_at:
example: '4'
tags:
example: []
hw_model_id:
example: '24'
in_service:
example: 'false'
hddsize:
example: 'null'
mac_addresses:
example: []
hddraid:
example: 'null'
nonauthoritativealiases:
example: []
cpucount:
example: 'null'
os:
example: 'ios'
virtual_host_name:
example: 'null'
is_it_virtual_host:
example: 'no'
is_it_switch:
example: 'yes'
customer:
example: 'yes'
hddraid_type:
example: 'null'
ucs_manager:
example: 'null'
name:
example: 'wh-lab-sw-01 - Switch 1'
room:
example: 'Old devices'
type:
example: 'physical'
notes:
example: ''
ram:
example: 'null'
asset_no:
example: ''
manufacturer:
example: 'cisco'
osver:
example: '12.2(40)SE'
device_purchase_line_items:
example: []
cpucore:
example: 'null'
where:
example: '5'
rack:
example: 'old_rack'
agent_version:
example: '18.00.00.1649418756'
agent_last_checkin_date:
example: 'April 22, 2022, 5:51 p.m.'
offset:
example: '0'
devicesAllv2:
type: object
properties:
total_count:
example: '709'
limit:
example: '1'
devices:
type: array
items:
type: object
properties:
name:
example: 'Device_Name'
type_id:
example: 2
serial_no:
example: 'FOC1252W6EW'
asset_no:
example: '123456'
device_url:
example: '/api/2.0/devices/64/'
device_id:
example: '64'
type:
example: 'physical'
uuid:
example: ''
offset:
example: '0'
deviceAllAliase:
type: array
items:
example: [NHCTWS001.fqdn, NHCTWS]
deviceAllCustomField:
type: array
items:
$ref: '#/definitions/deviceAllCustomFieldData'
deviceAllCustomFieldData:
type: object
properties:
key:
example: Skynet
notes:
example: ''
value:
example: T1000
deviceAllExternalLink:
type: array
items:
$ref: '#/definitions/deviceAllExternalLinkData'
deviceAllExternalLinkData:
type: object
properties:
link:
example: 'http://{{device.name}}'
notes:
example: Dev Test web server
deviceAllpurchaseLine:
type: array
items:
$ref: '#/definitions/deviceAllpurchaseLineData'
deviceAllpurchaseLineData:
type: object
properties:
line_cancel_policy:
example: ''
line_contract_type:
example: Warranty
line_cost:
example: '400.0'
line_cost_center:
example: '5001245'
line_end_date:
example: '2017-01-09'
line_frequency:
example: One Time
line_item_type:
example: Device
line_no:
example: '1'
line_notes:
example: ''
line_quantity:
example: '1'
line_renew_date:
example: '2017-01-09'
line_start_date:
example: '2017-01-09'
line_type:
example: Contract
purchase_id:
example: '9'
purchase_order_no:
example: 010914Warr
deviceAllHdd:
type: array
items:
$ref: '#/definitions/deviceAllHddData'
deviceAllHddData:
type: object
properties:
description:
example: ''
hdd:
type: object
properties:
bytes:
example: GB
description:
example: SATA 6 Gb/s 64MB Cache
hd_id:
example: '6'
location:
example: 'IT Lab 2nd Floor New Haven, CT'
manufacturer_id:
example: '6'
notes:
example: ''
partno:
example: ''
rpm:
type: object
properties:
id:
example: '2'
name:
example: 10k
size:
example: '500.0'
type:
type: object
properties:
id:
example: '1'
name:
example: SATA
hddcount:
example: '1'
raid_group:
example: ''
raid_type:
example: Raid 1
deviceAllIp_addresses:
type: object
properties:
ip:
example: 10.1.10.11
label:
example: ''
macaddress:
example: '00:14:bf:aa:46:18'
subnet:
example: Infra-10.1.10.0/24(Infrastructure Services)
subnet_id:
example: '4'
type:
example: '1'
deviceAllMac_addresses:
type: object
properties:
mac:
example: '00:11:22:33:44:55'
port:
example: FastEthernet0/4 @ nh-lab-switch-01
port_name:
example: ''
vlan:
example: 'null'
devicesCustomerId:
type: object
properties:
Devices:
$ref: '#/definitions/deviceCustomerIdDevice'
deviceCustomerIdDevice:
type: array
items:
$ref: '#/definitions/deviceCustomerIdDeviceData'
deviceCustomerIdDeviceData:
type: object
properties:
aliases:
type: array
items:
example: device.domain
asset_no:
example: 'null'
category:
example: Development Machine
cpucore:
example: '2'
cpucount:
example: '1'
cpuspeed:
example: '3300.0'
custom_fields:
example: []
customer:
example: Finance Group
customer_id:
example: '3'
device_external_links:
example: []
device_purchase_line_items:
example: []
hdd_details:
example: ''
hddcount:
example: ''
hddraid:
example: ''
hddraid_type:
example: ''
hddsize:
example: ''
hw_depth:
example: 1
hw_model:
example: ProLiant DL360 G7
hw_size:
example: '1.0'
in_service:
example: false
ip_addresses:
type: array
items:
$ref: '#/definitions/deviceAllIp_addresses'
last_updated:
example: '2014-01-07T02:23:36.350Z'
mac_addresses:
type: array
items:
$ref: '#/definitions/deviceCustomerIdMac_addresses'
manufacturer:
example: ''
name:
example: d42-231
notes:
example: ''
os:
example: ''
ram:
example: '512.000'
serial_no:
example: ''
service_level:
example: QA
type:
example: virtual
ucs_manager:
example: ''
uuid:
example: 6BB7DC86-D744-8943-B991-B6BF82B55F99
virtual_host_name:
example: HYPER01
agent_version:
example: '18.00.00.1649418756'
agent_last_checkin_date:
example: 'April 22, 2022, 5:51 p.m.'
deviceCustomerIdMac_addresses:
type: object
properties:
mac:
example: '00:15:5d:0b:72:0b'
devicesImpactList:
type: array
items:
$ref: '#/definitions/devicesImpactListData'
devicesImpactListData:
type: object
properties:
children:
type: array
items:
type: object
properties:
children:
type: array
items:
type: object
properties:
children:
type: array
items:
type: object
properties:
children:
type: array
items:
type: object
properties:
duplicate:
example: 'yes'
name:
example: site2.com - webserver.dev
name:
example: Dependant Apps
duplicate:
example: 'yes'
name:
example: Apache HTTP Server - Production Site
name:
example: Dependant Apps
duplicate:
example: 'yes'
name:
example: Apache Tomcat server
deviceName:
example:
- device added or updated
- 46
- db-080-westport
- true
- true
objectArchive:
example:
- Object archived
- 46
- db-080-westport
- true
- true
IPAMsubnets:
type: object
properties:
allocated:
example: 'no'
allow_broadcast_address:
example: 'no'
allow_network_address:
example: 'no'
assigned:
example: 'no'
can_edit:
example: 'yes'
category_id:
example: ''
category_name:
example: ''
custom_fields:
example: []
customer_id:
example: 9
description:
example: Infrastructure Devices
gateway:
example: ''
mask_bits:
example: 24
name:
example: Infra
network:
example: 10.1.10.0
notes:
example: ''
parent_subnet_id:
example: ''
parent_vlan_id:
example: ''
parent_vlan_name:
example: ''
parent_vlan_number:
example: ''
range_begin:
example: 10.1.10.5
range_end:
example: 10.1.10.254
service_level:
example: Production
subnet_id:
example: 4
tags:
example: []
vrf_group_id:
example: 1
vrf_group_name:
example: Infrastructure Services
IPAMvlans:
type: object
properties:
description:
example: ''
name:
example: CRMConsultant
notes:
example: ''
number:
example: 20
switches:
type: array
items:
type: object
properties:
asset_no:
example: ''
device_id:
example: 1
device_url:
example: /api/api/1.0/devices/id/1/
name:
example: nh-lab-switch-01
serial_no:
example: FAB0447Y35M
uuid:
example: ''
tags:
example: []
vlan_id:
example: 13
IPAMips_1:
type: object
properties:
available:
example: 'no'
custom_fields:
type: array
items:
type: object
properties:
key:
example: test
notes:
example: ''
value:
example: ''
device:
example: USNHCTVH001
device_id:
example: 116
id:
example: 38
ip:
example: 10.1.10.5
label:
example: ''
last_updated:
example: '2015-11-12T17:31:57.985Z'
mac_address:
example: ''
mac_id:
example: ''
notes:
example: ''
subnet:
example: Infra-10.1.10.0/24(Infrastructure Services)
subnet_id:
example: 4
type:
example: Reserved
IPAMips_2_device:
type: object
properties:
available:
example: 'no'
custom_fields:
type: array
items:
type: object
properties:
key:
example: test
notes:
example: ''
value:
example: ''
id:
example: 38
ip:
example: 10.1.10.5
label:
example: ''
last_updated:
example: '2015-11-12T17:31:57.985Z'
mac_address:
example: ''
mac_id:
example: ''
notes:
example: ''
subnet:
example: Infra-10.1.10.0/24(Infrastructure Services)
subnet_id:
example: 5
type:
example: Reserved
is_shared:
example: false
devices:
type: array
items:
type: object
properties:
device_id:
example: 4924
name:
example: '17R0TW1'
locked:
example: false
IPAMips_2_resource:
type: object
properties:
available:
example: 'no'
custom_fields:
type: array
items:
type: object
properties:
key:
example: test
notes:
example: ''
value:
example: ''
id:
example: 41
ip:
example: 10.1.20.6
label:
example: ''
last_updated:
example: '2017-06-12T17:31:57.985Z'
mac_address:
example: ''
mac_id:
example: ''
notes:
example: ''
subnet:
example: Infra-10.1.20.0/24(Infrastructure Services)
subnet_id:
example: 7
type:
example: Reserved
is_shared:
example: false
resource:
type: object
properties:
id:
example: 42
name:
example: 'DEFAULT'
identifier:
example: 'boot/DEFAULT'
devices:
example: []
IPAMmacs:
type: object
properties:
device:
type: object
properties:
asset_no:
example: ''
device_id:
example: 11
device_url:
example: /api/api/1.0/devices/id/11/
name:
example: DeviceTOM4
serial_no:
example: ''
type:
example: physical
uuid:
example: ''
macaddress:
example: '00:0a:cd:1f:c9:2f'
macaddress_id:
example: 24
port_name:
example: vmnic0
IPAMmacs_port:
type: object
properties:
description:
example: FastEthernet0/21
devices:
example: nh-hyperv-02
is_connected:
example: 'yes'
mac_ids:
example: 61; 60
macs:
example: '00:15:5d:0b:9e:02; 00:1c:c4:44:d1:32'
normalized_port:
example: FastEthernet0000/0021
obj_label:
example: Hyper-V Virtual Ethernet Adapte
port:
example: FastEthernet0/21
switch:
type: object
properties:
asset_no:
example: ''
device_id:
example: 1
device_url:
example: /api/api/1.0/devices/id/1/
name:
example: nh-lab-switch-01
serial_no:
example: FAB0447Y35M
type:
example: physical
uuid:
example: ''
switchport_id:
example: 10
tags:
example: []
type:
example: ''
vlan_ids:
example: '14'
vlans:
example: default
IPAMtap_ports:
type: object
properties:
port_to_from_id:
example: 9
id:
example: 7
mac:
example: 'mac'
port_type:
example: Fiber FC
tap:
example: tap device
port_type_id:
example: 5
monitor_direction:
example: to
label:
example: tap1
tap_id:
example: 9129
module_id:
example: 667
monitor_port_1_id:
example: 9
port_capability:
example: Device
monitor_port_2_id:
example: 11
module:
example: tap
mirror_port_id:
example: 4
netport_id:
example: 8
IPMdns_records:
type: object
properties:
name:
example: '@'
prio:
example: ''
dns_zone:
example: device42.pvt
content:
example: nh-win2k8r2-vm-03 hostmaster 107489 900 600 86400 3600
ttl:
example: 3600
change_date:
example: ''
nameserver:
example: 192.168.11.161
type:
example: SOA
id:
example: 1
buildings:
type: array
items:
type: object
properties:
address:
example: 879 main st
building_id:
example: 3
contact_name:
example: roger
custom_fields:
example: []
groups:
example: 'Prod_East:no, Corp:yes'
name:
example: Las Vegas Office
notes:
example: super critical
tags:
example: []
longitude:
example: '60'
latitude:
example: '30'
contact_phone:
example: ''
building:
type: object
properties:
address:
example: 879 main st
building_id:
example: 3
contact_name:
example: roger
custom_fields:
example: []
groups:
example: 'Prod_East:no, Corp:yes'
name:
example: Las Vegas Office
notes:
example: super critical
tags:
example: []
longitude:
example: '60'
latitude:
example: '30'
contact_phone:
example: ''
savedDOQLQueries:
type: array
items:
type: object
properties:
name:
example: Power_outlet
tags:
type: array
items:
example: power
include_headers:
example: true
notes:
example: query
saved_query:
example: select * from view_rudata_v2
output_type:
example: csv
id:
example: 182
rooms:
type: array
items:
type: object
properties:
building:
example: New Haven DC
building_id:
example: 1
custom_fields:
example: []
groups:
example: 'Prod_East:no, Corp:yes'
name:
example: 1st floor
notes:
example: super critical
room_id:
example: 1
tags:
example: ["data_centre", "storage"]
horizontal_grid_numbering:
example: 0
horizontal_grid_start:
example: '1'
vertical_grid_numbering:
example: 1
vertical_grid_start:
example: 'A'
RoomsRacks:
type: object
properties:
rack:
type: object
properties:
orientation:
example: left
numbering_start_from_bottom:
example: 'yes'
custom_fields:
example: []
size:
example: 42
available_u:
example: 35
row:
example: 1
rack_id:
example: 20
rack_middle_option:
example: Start at
number_between_us:
example: true
tags:
example: []
col_size:
example: 1
start_col:
example: 3
row_size:
example: 1
first_number:
example: 0
manufacturer:
example: APC Inc.
building:
example: New Haven
start_row:
example: 6
name:
example: NH-DC1-01
room:
example: NHDC1
notes:
example: ''
asset_no:
example: ''
rack_url:
example: /api/api/1.0/racks/20/
racks:
type: object
properties:
asset_no:
example: ''
available_u:
example: 45
building:
example: Building
col_size:
example: 1
custom_fields:
example: []
first_number:
example: 1
groups:
example: ''
manufacturer:
example: APC Inc.
name:
example: RA1
notes:
example: ''
number_between_us:
example: true
numbering_start_from_bottom:
example: 'yes'
rack_id:
example: 255
rack_middle_option:
example: End at
rack_url:
example: /api/api/1.0/racks/255/
room:
example: Main room
row:
example: ''
row_size:
example: 1
size:
example: '45'
start_col:
example: 4
start_row:
example: 2
tags:
example: []
RackDevices:
type: object
properties:
depth:
example: Full Depth
device:
type: object
properties:
asset_no:
example: ''
device_id:
example: 215
device_url:
example: /api/api/1.0/devices/id/215/
is_it_blade_host:
example: 'no'
is_it_switch:
example: 'no'
is_it_virtual_host:
example: 'no'
name:
example: USNHCS-DCM06
serial_no:
example: ''
type:
example: physical
uuid:
example: ''
file_names:
example:
- /var/www/graphics/images/HP--ProLiant-DL380p-Gen8.png
- /var/www/graphics/images/HP--ProLiant-DL380p-Gen8-B.png
orientation:
example: Front
reversed:
example: 'no'
size:
example: 2
start_at:
example: 1
where:
example: Rack Mounted
width:
example: 2520
xpos:
example: 0
Assets:
type: object
properties:
asset_contracts:
example: []
asset_id:
example: 16
asset_no:
example: '0075'
asset_purchases:
example: []
building:
example: New Haven
custom_fields:
example: ''
depth:
example: Half Depth
imagefile_id:
example: 2
name:
example: DC1R5PP1
notes:
example: ''
orientation:
example: Front
patch_panel_model_id:
example: 5
rack:
example: NH-DC1-05
rack_id:
example: 24
room:
example: NHDC1
row:
example: 2
serial_no:
example: ''
service_level:
example: In Service
size:
example: 2
start_at:
example: 40
type:
example: Patch Panel
vendor:
example: Black Box Corp.
vendor_id:
example: 36
where:
example: Rack Mounted
object_categories:
type: object
properties:
id:
example: 1
description:
example: >-
Devices that the Network Administration team should have full access
to
name:
example: Network Admin Team
HardwareModels:
type: object
properties:
hardware_id:
example: 1
watts:
example: 1000
physicalsubtype_id:
example: 9
vendor_id:
example: 269
last_changed:
example: "2020-11-18T19:26:56.333326Z"
network_device:
example: false
name:
example: "PowerLogic"
part_number:
example: 12
physicalsubtype:
example: "Branch Circuit Power Meter"
add_ports_when_creating_device:
example: false
specification_url:
example: ""
end_of_life_date:
example: "2019-11-04"
end_of_support_date:
example: "2019-03-13"
notes:
example: "hardware notes"
blade_host:
example: false
OperatingSystems:
type: object
properties:
aliases:
example: []
category:
example: ''
id:
example: 1
licensed_count:
example: 5
manufacturer:
example: ''
name:
example: Microsoft Windows 7 Professional
not_licensed_count:
example: 0
notes:
example: ''
total_count:
example: 5
discovered_license_count:
example: 5
enriched_data:
type: object
properties:
service_pack:
example: ''
vendor:
example: 'Juniper'
os_version:
example: '12.3'
golden_record_id:
example: 'gros_00000571'
os_version_no:
example: ''
eol:
example: '2023-11-23 00:00:00'
eos:
example: '2027-03-01 00:00:00'
edition:
example: ''
os_architecture:
example: ''
os_family:
example: '*nix'
enriched_os:
example: 'Juniper Junos OS'
id:
example: 3,
os_name:
example: 'Junos OS'
Device_os:
type: object
properties:
discovered_license_key:
example: ''
os_id:
example: 2
osver:
example: '12.3R12-S1'
dont_change_via_api:
example: 'no'
device:
example: 'sb-n15-10'
device_os_id:
example: 2
license_key:
example: ''
osverno:
example: ''
os:
example: junos
id:
example: 2
count_in_licensing:
example: 'yes'
device_id:
example: 120
enriched_data:
type: object
properties:
service_pack:
example: ''
vendor:
example: 'Juniper'
os_version:
example: '12.3'
golden_record_id:
example: 'gros_00000571'
os_version_no:
example: ''
eol:
exmaple: '2023-11-23 00:00:00'
eos:
example: '2027-03-01 00:00:00'
edition:
example: ''
os_architecture:
example: ''
os_family:
example: '*nix'
enriched_os:
example: 'Juniper Junos OS'
id:
example: 3,
os_name:
example: 'Junos OS'
get_power_unit_return:
type: object
properties:
total_count:
example: 24
offset:
example: 0
pdus:
type: array
items:
type: object
properties:
building:
example: West Haven Office
pdu_id:
example: 1
name:
example: "Sentry / ADTK0000001 / 10.42.10.9"
pdu_model:
type: object
properties:
pdu_model_id:
example: 1
sequential_numbering_for_ports:
example: true
name:
example: "CWG-8H1A114"
width:
example: "null"
notes:
example: ""
height:
example: "null"
size:
example: 2.0
description:
example: ""
width_ratio:
example: 2520
ports in pdu model:
example: []
back_image:
example: "null"
type:
example: pdu
front_image:
example: "null"
depth:
example: Half Depth
port_court:
example: 0
manufacturer:
example: serverTech
notes:
example: ""
room:
example: room3
rack:
example: Rack 1 Manual
rack_id:
example: 4
pdu_serial_no:
example: 9C96300196
category:
example: West Haven
device_mapping:
type: object
properties:
hddcount:
example: "null"
hdd_details:
example: "null"
name:
example: "prod-vert-pdu-01 / ZA0737007687 / 10.42.10.8"
customer_id:
example: 1
hw_model_id:
example: 18
ucs_manager:
example: "null"
cpucount:
example: "null"
serial_no:
example: ADTK0000003
hw_depth:
example: "null"
mac_addresses:
type: array
items:
port:
example: "GigabitEthernet1/0/32 - 00:24:98:48:9a:a4 @ wh-lab-sw-02"
vlan:
example: "null"
mac:
example: "00:0a:4c:51:97:88"
port_name:
example: eth0
nonauthoritativealiases:
example: []
cpucore:
example: "null"
device_id:
example: 3863
custom_fields:
type: array
items:
type: object
properties:
value:
example: "null"
notes:
example: "null"
key:
example: "alpha.eksctl.io/nodegroup-name"
is_it_virtual_host:
example: no
cpuspeed:
example: "null"
virtual_host_name:
example: "null"
aliases:
example: []
ip_addresses:
type: array
items:
type: object
properties:
ip:
example: "172.25.160.187"
macaddress:
example: "00:0w:5d:29:di:45"
subnet:
example: "10.41.0.0/19"
type:
example: "null"
subnet_id:
example: 2
label:
example: br0
hw_model:
example: "PX3-5497JV-N2A2"
preferred_alias:
example: "null"
device_purchase_line_items:
example: []
is_it_blade_host:
example: no
hddraid:
example: "null"
pdu_mapping_url:
example: "/api/1.0/power_units/14/"
device_sub_type:
example: PDU
tags:
example:
- 'live-lab-snmp'
- 'live-lab-power'
id:
example: 346
asset_no:
example: ""
notes:
example: ""
in_service:
example: true
customer:
example: Device42
last_updated:
example: "2022-05-23T16:24:56.220410Z"
hddsize:
example: "null"
category:
example: west Haven
type:
example: other
osver:
example: "00.00.0010"
ram:
example: "null"
os:
example: Eaton Firmware
is_it_switch:
example: no
service_level:
example: Production
uuid:
example: "null"
manufacturer:
example: serverTech
device_external_links:
example: []
hddraid_type:
example: "null"
type:
example: pdu
custom_fields:
example: []
gateway_pdu_id:
example: 3
building_id:
example: 1
room_id:
example: 1
get_power_unit_return_single:
type: object
properties:
building:
example: West Haven Office
pdu_id:
example: 1
name:
example: "Sentry / ADTK0000001 / 10.42.10.9"
pdu_model:
type: object
properties:
pdu_model_id:
example: 1
sequential_numbering_for_ports:
example: true
name:
example: "CWG-8H1A114"
width:
example: "null"
notes:
example: ""
height:
example: "null"
size:
example: 2.0
description:
example: ""
width_ratio:
example: 2520
ports in pdu model:
example: []
back_image:
example: "null"
type:
example: pdu
front_image:
example: "null"
depth:
example: Half Depth
port_court:
example: 0
manufacturer:
example: serverTech
notes:
example: ""
room:
example: room3
rack:
example: Rack 1 Manual
rack_id:
example: 4
pdu_serial_no:
example: 9C96300196
category:
example: West Haven
device_mapping:
type: object
properties:
hddcount:
example: "null"
hdd_details:
example: "null"
name:
example: "prod-vert-pdu-01 / ZA0737007687 / 10.42.10.8"
customer_id:
example: 1
hw_model_id:
example: 18
ucs_manager:
example: "null"
cpucount:
example: "null"
serial_no:
example: ADTK0000003
hw_depth:
example: "null"
mac_addresses:
type: array
items:
port:
example: "GigabitEthernet1/0/32 - 00:24:98:48:9a:a4 @ wh-lab-sw-02"
vlan:
example: "null"
mac:
example: "00:0a:4c:51:97:88"
port_name:
example: eth0
nonauthoritativealiases:
example: []
cpucore:
example: "null"
device_id:
example: 3863
custom_fields:
type: array
items:
type: object
properties:
value:
example: "null"
notes:
example: "null"
key:
example: "alpha.eksctl.io/nodegroup-name"
is_it_virtual_host:
example: no
cpuspeed:
example: "null"
virtual_host_name:
example: "null"
aliases:
example: []
ip_addresses:
type: array
items:
type: object
properties:
ip:
example: "172.25.160.187"
macaddress:
example: "00:0w:5d:29:di:45"
subnet:
example: "10.41.0.0/19"
type:
example: "null"
subnet_id:
example: 2
label:
example: br0
hw_model:
example: "PX3-5497JV-N2A2"
preferred_alias:
example: "null"
device_purchase_line_items:
example: []
is_it_blade_host:
example: no
hddraid:
example: "null"
pdu_mapping_url:
example: "/api/1.0/power_units/14/"
device_sub_type:
example: PDU
tags:
example:
- 'live-lab-snmp'
- 'live-lab-power'
id:
example: 346
asset_no:
example: ""
notes:
example: ""
in_service:
example: true
customer:
example: Device42
last_updated:
example: "2022-05-23T16:24:56.220410Z"
hddsize:
example: "null"
category:
example: west Haven
type:
example: other
osver:
example: "00.00.0010"
ram:
example: "null"
os:
example: Eaton Firmware
is_it_switch:
example: no
service_level:
example: Production
uuid:
example: "null"
manufacturer:
example: serverTech
device_external_links:
example: []
hddraid_type:
example: "null"
type:
example: pdu
custom_fields:
example: []
gateway_pdu_id:
example: 3
building_id:
example: 1
room_id:
example: 1
post_power_unit_return:
type: object
properties:
msg:
example:
- Power unit successfully added
- 22
- Primary Power Unit
- true
- true
code:
example: 0
put_power_unit_return:
type: object
properties:
msg:
example:
- Power unit successfully added
- 22
- Primary Power Unit
- true
- false
code:
example: 0
general_delete_return:
type: object
properties:
deleted:
example: 'true'
id:
example: 9
Pdu_models:
type: object
properties:
back_image:
type: object
properties:
id:
example: 22
imgfile:
example: /var/www/graphics/images/apc-rack-pdu-front.png
depth:
example: Half Depth
description:
example: ''
front_image:
type: object
properties:
id:
example: 66
imgfile:
example: /var/www/graphics/images/d42-apc-rack-pdu-front.png
manufacturer:
example: Server Technology
name:
example: CXG-8H1A113
notes:
example: ''
pdu_model_id:
example: 7
port_count:
example: 8
ports in pdu model:
type: array
items:
properties:
pdu_port_count:
example: 12
pdu_port_type:
example: custom
sequential_numbering_for_ports:
example: false
size:
example: 1
type:
example: pdu
width_ratio:
example: 2520
Pdus:
type: object
properties:
building:
example: New Haven
building_id:
example: 1
category:
example: Prod_East
device mapping:
example: ''
name:
example: NHCTPDU01
notes:
example: ''
pdu_id:
example: 4
pdu_model:
properties:
back_image:
example: ''
depth:
example: Half Depth
description:
example: ''
front_image:
properties:
id:
example: 22
imgfile:
example: /var/www/graphics/images/apc-rack-pdu-front.png
manufacturer:
example: APC Inc.
name:
example: APC 8841
notes:
example: ''
pdu_model_id:
example: 4
port_count:
example: 12
ports in pdu model:
type: array
items:
properties:
pdu_port_count:
example: 12
pdu_port_type:
example: IEC 320 C19
sequential_numbering_for_ports:
example: true
size:
example: 1
type:
example: pdu
width_ratio:
example: 2520
rack:
example: NH-DC1-01
rack_id:
example: 20
room:
example: NHDC1
room_id:
example: 1
type:
example: pdu
Pdu_by_Id:
type: object
properties:
building:
example: ''
building_id:
example: ''
device mapping:
type: object
properties:
aliases:
example: []
asset_no:
example: ''
building:
example: New Haven
cpucore:
example: ''
cpucount:
example: ''
cpuspeed:
example: ''
custom_fields:
type: array
items:
properties:
key:
example: Agent email address
notes:
example: ''
value:
example: ''
customer:
example: ''
device_external_links:
example: []
device_id:
example: 122
device_purchase_line_items:
example: []
device_sub_type:
example: UPS
hdd_details:
example: ''
hddcount:
example: ''
hddraid:
example: ''
hddraid_type:
example: ''
hddsize:
example: ''
hw_depth:
example: ''
hw_model:
example: ''
hw_size:
example: ''
id:
example: 122
in_service:
example: true
ip_addresses:
example: []
last_updated:
example: '2016-07-05T22:08:34.849Z'
mac_addresses:
example: []
manufacturer:
example: ''
name:
example: UPS1
notes:
example: ''
os:
example: ''
pdu_mapping_url:
example: /api/api/1.0/power_units/232/
ram:
example: ''
room:
example: NHDC1
serial_no:
example: ''
service_level:
example: Production
tags:
example: []
type:
example: other
ucs_manager:
example: ''
uuid:
example: ''
virtual_host_name:
example: ''
name:
example: UPS1
notes:
example: ''
pdu_id:
example: 232
pdu_model:
example: ''
rack:
example: ''
rack_id:
example: ''
room:
example: ''
room_id:
example: ''
type:
example: ups
Patch_panel:
type: object
properties:
asset_contracts:
example: []
asset_id:
example: 29
asset_no:
example: '0010'
asset_purchases:
example: []
building:
example: New Haven
custom_fields:
example: ''
customer_id:
example: 1
depth:
example: Half Depth
imagefile_id:
example: 2
name:
example: DC1R1PP1
no_ports:
example: 12
no_ports_in_row:
example: 12
notes:
example: 'Notes, Notes, Notes...'
numbering_direction:
example: left-right
numbering_start_location:
example: top-left
orientation:
example: Back
patch_panel_model_id:
example: 6
ports:
type: array
items:
properties:
back_connection_id:
example: 109
back_pp_id:
example: 16
cable_color:
example: black
color:
example: '#659a39'
content_type:
example: device
device_id:
example: 153
device_name:
example: USNHCTVH002
full_path:
example: >-
USNHCTVH002 <-> [DC1R1PP1-29:1] <-> DC1R5PP1-109:1 <->
NHCTCORE01(gbE/1)
number:
example: 1
obj_label:
example: LI
object_id:
example: 153
panel_id:
example: 29
panel_name:
example: DC1R1PP1
rack:
example: NH-DC1-04
rack_id:
example: 23
room:
example: NHDC1
row:
example: 1
serial_no:
example: '4242424242'
service_level:
example: In Service
size:
example: 2
start_at:
example: 40
type:
example: 1
vendor:
example: Black Box Corp
vendor_id:
example: 36
where:
example: Rack Mounted
Patch_panel_port:
type: object
properties:
id:
type: integer
example: 123
color:
type: string
example: "#666B61"
object_id:
type: integer
example: 1235
content_type:
type: string
example: "patch_panel_port"
Pp_port_end:
type: string
example: "good"
obj_label:
type: string
example: "label"
number:
type: integer
example: 24
panel_name:
type: string
example: "Patch3"
pp_port:
type: integer
example: 1
connection_id:
type: array
items:
type: object
properties:
type:
type: boolean
example: false
id:
type: integer
example: 1234
patch_panel_name:
type: string
example: "Patch4"
type_name:
type: string
example: "patch_panel_port"
name:
type: string
example: "Patch4 1 (To Patch3)"
patch_panel_id:
type: integer
example: 891
module_id:
type: integer
example: 12
full_path:
type: string
example: "None <-> AC Unit-AC101-None : 12 <-> None"
cable_color:
type: string
example: "black"
Parts:
properties:
asset_no:
example: ''
assignment:
example: device
change_perm:
example: 'yes'
count:
example: 1
custom_fields:
example: []
date_changed:
example: ''
description:
example: ''
device:
example: AAA switch 2
device_id:
example: 388
firmware:
example: ''
first_added:
example: '2014-02-20T18:13:54.099Z'
last_updated:
example: '2014-11-14T22:03:08.717Z'
part_id:
example: 1
partmodel:
properties:
available:
example: 0
description:
example: ''
in_devices:
example: 1
in_rma:
example: 0
in_storage_racks:
example: 0
in_storage_rooms:
example: 0
in_transit:
example: 0
length:
example: ''
location:
example: 'IT Lab 2nd Floor New Haven, CT'
manufacturer:
example: Kingston Technology Corp.
modelno:
example: ''
name:
example: Kingston 8GB DDR31600
notes:
example: ''
partmodel_id:
example: 3
partno:
example: KVR16E11/8
ramsize:
example: 8192
ramspeed:
example: '1600'
ramtype:
example: 'DDR3 '
total_count:
example: 1
type:
example: RAM
used:
example: 1
serial_no:
example: ''
tags:
example: []
Partmodels:
type: object
properties:
limit:
example: 2
offset:
example: 0
partmodels:
type: array
items:
properties:
available:
example: 2
cores:
example: 4
cpuspeed:
example: 3400
description:
example: 3.4GHz (3.9GHz Turbo)
in_devices:
example: 0
in_rma:
example: 0
in_storage_racks:
example: 0
in_storage_rooms:
example: 2
in_transit:
example: 0
length:
example: ''
location:
example: 'IT Lab 2nd Floor New Haven, CT'
manufacturer:
example: Intel Corp.
modelno:
example: ''
name:
example: Core i7-3770
notes:
example: "Socket:LGA 1155\r\nSpeedDual-channel DDR3 Memory Controller supports DDR3-1333 and DDR3-1600 memory\r\nIntel HD Graphics 4000\r\nLimited Warranty period (parts): 3 years\r\nLimited Warranty period (labor): 3 years\r\n"
partmodel_id:
example: 1
partno:
example: BX80637I73770
threads:
example: ''
total_count:
example: 2
type:
example: CPU
used:
example: 0
total_count:
example: 71
Purchases:
type: object
properties:
purchases:
type: array
items:
properties:
purchase_id:
example: '1'
po_date:
example: 'null'
vendor:
example: 'Amazon'
building:
example: 'West Haven Office'
order_no:
example: '9000000001'
line_items:
example: []
notes:
example: 'null'
line_items_one_time_cost:
example: '0'
customer:
example: 'Device42'
cost:
example: '100.00'
groups:
example: ''
completed:
example: 'no'
custom_fields:
example: []
Appcomps_Custom_fields:
type: object
properties:
key:
example: Project
notes:
example: ''
value:
example: Migration
Services:
type: array
items:
type: object
properties:
category:
type: string
description:
type: string
displayname:
type: string
id:
type: integer
name:
type: string
notes:
type: string
service_type:
type: string
tags:
example: []
vendor:
type: string
example:
- category: ''
vendor: ''
description: ''
tags: []
notes: ''
service-type: 'null'
displayname: apport-autoreport
id: 2
- category: ''
vendor: ''
description: ''
tags: []
notes: ''
service-type: 'null'
displayname: apport-forward@
id: 3
Service_details:
type: object
properties:
appcomp:
example: Device42 Production
appcomp_id:
example: Device42 Production
device:
example: Device42 Appliance
device_id:
example: 445
first_detected:
example: '2015-02-27T19:20:29.493Z'
last_updated:
example: '2015-02-27T19:20:44.029Z'
service_detail_id:
example: '3'
service_display_name:
example: DB service
service_id:
example: '1'
service_name:
example: DB service
startmode:
example: automatic
state:
example: running
user:
example: 'null'
user_id:
example: 'null'
vendor:
example: 'null'
vendor_id:
example: 'null'
Service_ports:
type: object
properties:
description:
example: ''
device_name:
example: app21.device42.pvt
discovered_process:
example: ''
discovered_service:
example: mysqld
id:
example: 1
listening_ip:
example: 127.0.0.1
mapped_service:
example: ''
port:
example: 3306
remote_ips:
example: 192.241.191.123
Client_stats:
type: object
properties:
avg_time_span:
example: 5
first_found:
example: '2016-09-16T14:45:14'
ip:
example: 76.127.207.96
last_found:
example: '2016-09-16T14:57:56'
last_time_span:
example: 7
latest_contiguous_stats:
type: object
properties:
avg_time_span:
example: 5
detected_connections:
example: 3
ephemeral_ports:
example: '(17741:25283:23991)'
first_found:
example: '2016-09-16T14:45:14'
last_found:
example: '2016-09-16T14:57:56'
last_time_span:
example: 7
max_time_span:
example: 7
min_time_span:
example: 0
std_dev_time_span:
example: 29
total_detected:
example: 2
max_time_span:
example: 7
min_time_span:
example: 0
std_dev_time_span:
example: 29
total_detected:
example: 2
Networkshare_details:
type: object
properties:
caption:
example: Remote Admin
description:
example: Remote Admin
device_name:
example: ovh01-w2012-04
first_detected:
example: '2016-04-08T16:14:04.612Z'
id:
example: '5'
install_date:
example: ''
last_updated:
example: '2016-04-08T16:14:04.612Z'
name:
example: ADMIN$
path:
example: 'C:\Windows'
status:
example: OK
type:
example: Disk Drive
Get_Software_details:
type: object
properties:
count_in_licensing:
example: true
device:
example: d42laptop01
device_id:
example: ovh01-w2012-04
first_detected:
example: '2015-05-20T12:33:13.343Z'
id:
example: '108'
install_date:
example: ''
last_updated:
example: '2016-04-08T16:14:04.612Z'
license_use_count:
example: 1.0$
software:
example: Hyper-V Tools
software_alias:
example: ''
software_id:
example: '108'
user:
example: ''
user_id:
example: ''
vendor:
example: Probus-IT
vendor_id:
example: '62'
version:
example: 2.03.00.04
Get_Software_Component_details:
type: object
properties:
discovered_count:
example: ''
custom_fields:
example: []
rating:
example: 5.0
description:
example: 'Sample description'
licensed_count:
example: ''
licensing_model:
example: Individual - Device/Perpetual
track_licensed_count_by_keys:
example: 'yes'
notes:
example: test
tags:
example:
- def
vendor:
example: cisco
category:
example: past_time2
aliases:
example: '3pay, 4pay'
name:
example: 2pay
software_type:
example: prohibited
id:
example: '583'
Get_Software_License_Keys:
type: object
properties:
count:
example: 1
id:
example: 1
key:
example: '124124'
notes:
example: ''
software_id:
example: 114
software_name:
example: accountsservice
Get_certificates:
type: object
properties:
content_commitment_usage:
example: false
crl_sign_usage:
example: false
custom_fields:
example: []
data_encipherment_usage:
example: false
days_to_expiry:
example: 1077
decipher_only_usage:
example: false
digital_signature_usage:
example: true
encipher_only_usage:
example: false
extended_key_usage:
example: |
SERVERAUTH(1.3.6.1.5.5.7.3.1)
CLIENTAUTH(1.3.6.1.5.5.7.3.2)
id:
example: '3'
san:
example: ''
issued_by:
example: ''
issued_to:
example: registration.device42.com
key_agreement_usage:
example: false
key_cert_sign_usage:
example: false
key_encipherment_usage:
example: true
parent_cert:
example: ''
serial_number:
example: 77eb9b55e9228635f2157fd374b8da8
signature_algorithm:
example: sha256WithRSAEncryption
signature_hash:
example: '708489795'
subject:
example: >-
/OU=Domain Control
Validated/OU=PositiveSSL/CN=registration.device42.com
valid_from:
example: '2014-08-10'
valid_to:
example: '2019-08-09'
vendor:
example: ''
version:
example: 2
Get_certificate_instances:
type: object
properties:
id:
type: integer
example: 1
description: The unique ID of the certificate instance.
ip:
type: string
example: '192.168.1.1'
description: The IP address associated with the certificate instance.
valid_from:
type: string
format: date
example: '2024-01-01'
description: The date when the certificate becomes valid.
valid_to:
type: string
format: date
example: '2025-12-31'
description: The certificate's expiration date.
device_id:
type: integer
example: 1
description: The device ID associated with the certificate.
device:
type: string
example: 'example-device'
description: The device name associated with the certificate instance.
certificate_id:
type: integer
example: 1
description: The unique ID of the certificate.
certificate:
type: string
example: 'example.com'
description: The domain associated with the certificate.
cipher_suites:
type: object
additionalProperties:
type: string
example:
TLSv1.2: "TLS_RSA_WITH_AES_256_CBC_SHA"
description: Supported cipher suites for the certificate.
fqdn:
type: string
example: 'example.com'
description: Fully Qualified Domain Name.
serial_number:
type: string
example: 'ABC1234567890'
description: The certificate's serial number.
ssl_version:
type: string
example: 'TLSv1.2'
description: SSL version used.
last_added:
type: string
format: date-time
example: 'null'
description: The date and time when the certificate instance was last added.
first_added:
type: string
format: date-time
example: '2024-01-01T00:00:00Z'
description: The date and time when the certificate instance was first added.
Get_All_Password_Accounts:
type: object
properties:
category:
example: Service
custom_fields:
example: []
first_added:
example: '2013-09-20T19:36:21.585Z'
id:
example: 4
label:
example: Patch Management Service Account
last_pw_change:
example: '2014-03-18T13:03:04Z'
notes:
example: ''
password:
example: ''
username:
example: usnhctpatchmanager
view_edit_groups:
example: ''
view_edit_users:
example: admin
view_groups:
example: sys_eng
view_users:
example: Ford Prefect
Get_all_Vendors:
type: object
properties:
account_no:
example: '1234'
contact_info:
example: '8004553432'
escalation_1:
example: 'no'
escalation_2:
example: 'no'
groups:
example: 'Prod_East:no, Corp:yes'
home_page:
example: www.acer.com
name:
example: Acer Incorporated
notes:
example: acer
vendor_id:
example: '10'
enrichai_data:
type: object
properties:
id:
example: 33
enriched_vendor:
example: 'Acer'
Customers:
properties:
Contacts:
type: array
items:
properties:
address:
example: 123 main st
email:
example: rick@d42.com
name:
example: Random Guy
phone:
example: 555-555-5555
type:
example: Technical
Custom Fields:
type: array
items:
properties:
key:
example: custID
notes:
example: ''
value:
example: '42'
value2:
example: ''
contact_info:
example: '555 Technical Lane, Cool City.'
devices_url:
example: /api/api/1.0/devices/customer_id/1/
groups:
example: 'Prod_East:no, Corp:yes'
id:
example: 1
name:
example: 'ABC, Inc.'
notes:
example: some notes here
subnets_url:
example: /api/api/1.0/subnets/customer_id/1/
Get_all_Circuits:
type: object
properties:
ID:
example: 1
bandwidth:
example: ''
circuit_id:
example: L3-01
custom_fields:
type: array
items:
properties:
key:
example: Region
notes:
example: ''
value:
example: APAC
customer:
example: ABC Inc.
end_point_id:
example: 124
end_point_type:
example: patch_panel_port
notes:
example: ''
origin_id:
example: 193
origin_type:
example: 'vendor'
origin_vendor:
example: 'TF1'
provision_date:
example: ''
turn_on_date:
example: ''
type:
example: Dedicated Ethernet
vendor:
example: ''
full_path_list:
type: array
items:
properties:
type:
type: string
id:
type: integer
name:
type: string
example:
- type: 'organisation'
id: 193
name: 'TF1'
- type: 'circuit'
id: 1
name: 'L3-01'
- type: 'patch_panel_port'
id: 124
name: 'MDF-CORE-A : 24'
Get_all_Power_Circuits:
type: object
properties:
amps:
example: ''
asset_connections:
example: []
bcpm:
example: ''
bcpm_id:
example: ''
breakerpanel:
example: Primary Breaker Panel
breakerpanel_id:
example: '10'
connection:
example: ''
device_connections:
example: []
label:
example: Testing Circuits
number:
example: Main Power Circuit
power_circuit_id:
example: '85'
powerunit_connections:
example: []
voltage:
example: ''
Cable:
type: object
properties:
cable_id:
example: 'Fiber 1:Multi'
cable_length:
example: ''
cable_length_units:
example: m
custom_fields:
example: []
end_back_patch_panel:
example: false
end_cable_color:
example: ''
end_cable_type:
example: ''
end_connector_type:
example: ''
end_content_type:
example: cable
end_optic_type:
example: ''
end_point_multiple:
example: true
id:
example: 3
notes:
example: ''
origin_back_patch_panel:
example: false
origin_cable_color:
example: ''
origin_cable_type:
example: ''
origin_connector_type:
example: ''
origin_content_type:
example: netport
origin_netport_id:
example: 899
origin_netport_name:
example: ''
origin_optic_type:
example: ''
room:
example: ''
tags:
example: []
vendor:
example: ''
getHistory:
type: object
properties:
action:
example: Add/Change(API)
action_time:
example: '2014-03-19T13:09:35.474Z'
change_message:
example: >-
added/edited via api with values: {u'domain': u'd42.net', u'type':
u'A', u'nameserver': u'ns1', u'name': u'oxrouter', u'ttl': u'3'}.
content_type:
example: DNS A or AAAA Record
obj_repr:
example: oxrouter
user:
example: admin
getAuditLogs:
type: object
properties:
total_count:
example: 6
limit:
example: 1000
offset:
example: 0
auditlogs:
type: array
items:
type: object
properties:
object_id:
example: 1
from:
example: Internal
object_type:
example: user
object_fields:
example: '{\"id\": \"1\", \"status\": \"Affinity Group processing completed in 0:00:00.088542\", \"enabled\": \"t\", \"upgraded\": \"t\", \"saved_doql_id\": \"1\", \"last_processed\": \"2022-11-08 15:33:00.733269+00\", \"target_reports\": \"3\"}'
user:
example: admin
x_d42_source:
example: 'null'
changed_fields:
type: object
properties:
message:
example: User logged in from ['10.42.08']
status:
example: Affinity Group processing completed in 0:00:00.254720.
action_time:
example: '2022-11-09T15:37:04.632566Z'
api_data:
example: 'null'
action:
example: Login
url:
example: 'null'
healthstat_status:
type: object
properties:
version:
example: '18.10.00.1690226275'
backup_status:
type: array
items:
type: object
properties:
id:
example: 1
job_name:
example: Demo Backup
status:
example: Good @ 2019-01-10 18:51:31
cpu_used_percent:
example: '2.51904'
dbsize:
example: 84 MB
disk_used_percent:
example: '8'
memory_in_MB:
type: object
properties:
buffers:
example: 92
cached:
example: 254
memfree:
example: 1728
memtotal:
example: 3948
swapfree:
example: 8187
swaptotal:
example: 8187
rc_stats:
type: array
items:
type: object
properties:
rc_name:
example: 'DC1-RC'
state:
example: 'disconnected'
version:
example: '18.10.00-1690226275'
nvenv:
type: object
properties:
core-app:
example: 'OK'
app_mgr:
example: 'NOK'
superset:
example: 'OK'
rc_python:
example: 'OK'
system_pkg:
type: object
properties:
status:
example: 'OK'
last_upgrade:
type: object
properties:
status:
example: 'NOK'
from_version:
example: '18.08.00.1686665414'
Service_schedules:
type: array
items:
type: object
properties:
service_name:
type: string
idle_time:
type: boolean
install_Date:
type: string
day_of_month:
type: string
at_startup:
type: boolean
user_id:
type: integer
other_trigger:
type: boolean
arguments:
type: string
event_based:
type: boolean
weeks:
type: string
status:
type: string
description:
type: string
service_schedule_id:
type: integer
month_of_year:
type: string
hours:
type: string
user:
type: string
device:
type: string
other_type:
type: string
device_id:
type: integer
days:
type: string
day_of_week:
type: string
caption:
type: string
at_logon:
type: boolean
minutes:
type: string
example:
- service_name: api_test
idle_time: false
install_Date: '2019-01-01T00:00:00Z'
day_of_month: ''
at_startup: true
user_id: 'null'
other_trigger: false
arguments: ''
event_based: false
weeks: '0'
status: Complete
description: ''
service_schedule_id: 1
month_of_year: January
hours: '5'
user: 'null'
device: dqr1400pd
other_type: ''
device_id: 1
days: '2'
day_of_week: ''
caption: scheduled_task_1
at_logon: false
minutes: ''
- service_name: api_test2
idle_time: false
install_Date: 'null'
day_of_month: ''
at_startup: false
user_id: 'null'
other_trigger: false
arguments: ''
event_based: false
weeks: ''
status: ''
description: ''
service_schedule_id: 1
month_of_year: ''
hours: ''
user: 'null'
device: dqr1400pd2
other_type: ''
device_id: 1
days: ''
day_of_week: ''
caption: scheduled_task_2
at_logon: false
minutes: ''
Service_schedule:
properties:
service_name:
type: string
idle_time:
type: boolean
install_Date:
type: string
day_of_month:
type: string
at_startup:
type: boolean
user_id:
type: integer
other_trigger:
type: boolean
arguments:
type: string
event_based:
type: boolean
weeks:
type: string
status:
type: string
description:
type: string
service_schedule_id:
type: integer
month_of_year:
type: string
hours:
type: string
user:
type: string
device:
type: string
other_type:
type: string
device_id:
type: integer
days:
type: string
day_of_week:
type: string
caption:
type: string
at_logon:
type: boolean
minutes:
type: string
example:
service_name: api_test
idle_time: false
install_Date: '2019-01-01T00:00:00Z'
day_of_month: ''
at_startup: true
user_id: 'null'
other_trigger: false
arguments: ''
event_based: false
weeks: '0'
status: Complete
description: ''
service_schedule_id: 1
month_of_year: January
hours: '5'
user: 'null'
device: dqr1400pd
other_type: ''
device_id: 1
days: '2'
day_of_week: ''
caption: scheduled_task_1
at_logon: false
minutes: ''
Service_instances:
type: array
items:
type: object
properties:
appcomps:
type: string
appcomp_ids:
type: string
device:
type: string
device_id:
type: integer
first_detected:
type: string
last_updated:
type: string
service_detail_id:
type: integer
service_display_name:
type: string
service_id:
type: integer
state:
type: string
startmode:
type: string
user:
type: string
user_id:
type: integer
vendor:
type: string
vendor_id:
type: integer
cmd_paths:
example:
- ''
ignore_client_connections:
type: boolean
topology_status:
type: string
pinned:
type: boolean
example:
- service_detail_id: 1
service_display_name: apport-autoreport
ignore_client_connections: false
last_updated: '2019-08-01T17:09:08.063Z'
first_detected: '2019-07-31T19:49:07.532Z'
vendor_id: 'null'
cmd_paths:
- ''
vendor: 'null'
topology_status: Normal
pinned: false
device: D42Test1
state: unknown
appcomps: ''
user: 'null'
service_id: 2
appcomp_ids: ''
user_id: 'null'
startmode: unknown
device_id: 4
- service_detail_id: 2
service_display_name: apport-forward@
ignore_client_connections: false
last_updated: '2019-08-01T17:09:08.063Z'
first_detected: '2019-07-31T19:49:07.532Z'
vendor_id: 'null'
cmd_paths:
- ''
vendor: 'null'
topology_status: Normal
pinned: false
device: D42Test1
state: unknown
appcomps: ''
user: 'null'
service_id: 2
appcomp_ids: ''
user_id: 'null'
startmode: unknown
device_id: 4
Service_instance:
properties:
appcomps:
type: string
appcomp_ids:
type: string
device:
type: string
device_id:
type: integer
first_detected:
type: string
last_updated:
type: string
service_detail_id:
type: integer
service_display_name:
type: string
service_id:
type: integer
state:
type: string
startmode:
type: string
user:
type: string
user_id:
type: integer
vendor:
type: string
vendor_id:
type: integer
cmd_paths:
example:
- ''
ignore_client_connections:
type: boolean
topology_status:
type: string
pinned:
type: boolean
example:
service_detail_id: 2
service_display_name: apport-forward@
ignore_client_connections: false
last_updated: '2019-08-01T17:09:08.063Z'
first_detected: '2019-07-31T19:49:07.532Z'
vendor_id: 'null'
cmd_paths:
- ''
vendor: 'null'
topology_status: Normal
pinned: false
device: D42Test1
state: unknown
appcomps: ''
user: 'null'
service_id: 2
appcomp_ids: ''
user_id: 'null'
startmode: unknown
device_id: 4
Service_client_connections:
properties:
total_count:
example: 1
offset:
example: 0
limit:
example: 1000
client_connections:
type: array
items:
type: object
properties:
listener_device_id:
type: integer
client_service_id:
type: integer
stats:
example: []
client_device_id:
type: integer
listener_mapped_service:
type: string
listener_discovered_serivce:
type: string
listener_mapped_service_id:
type: integer
client_ip:
type: string
listener_device:
type: string
client_service:
type: string
port:
type: integer
client_device:
type: string
client_process_name:
type: string
client_process_display_name:
type: string
id:
type: integer
listener_ip:
type: string
type:
type: integer
listener_discovered_service_id:
type: integer
service_port_ip_id:
type: integer
example:
- listener_device_id: 'null'
client_service_id: 151
stats: []
client_device_id: 3
listener_mapped_service: 'null'
listener_discovered_service: 'null'
listener_mapped_service_id: 'null'
client_ip: 10.90.6.15
listener_device: 'null'
client_service: systemd-resolved
port: 80
client_device: peter-ubu1604-90615.device42.pvt
client_process_name: >-
/usr/bin/wget -q -O -
http://169.254.169.254/latest/dynamic/instance-identity/document
client_process_display_name: wget
id: 2
listener_ip: 169.254.169.254
type: 0
listener_discovered_service_id: 'null'
service_port_ip_id: 'null'
Service_listener_ports:
properties:
total_count:
example: 2
offset:
example: 0
limit:
example: 1000
service_ports:
type: array
items:
type: object
properties:
discovered_service:
type: string
mapped_service:
type: string
protocol:
type: string
id:
type: integer
device_name:
type: string
listening_ip:
type: string
remote_ips_ids:
type: string
appcomp_ids:
type: string
remote_ips:
type: string
port:
type: integer
example:
- discovered_service: exim4
mapped_service: exim4
protocol: tcp
id: 3
device_name: D42_Test_Device
listening_ip: '::1'
remote_ips_ids: ''
appcomp_ids: ''
remote_ips: ''
port: 25
- discovered_service: exim4
mapped_service: exim4
protocol: tcp
id: 4
device_name: D42_Test_Device
listening_ip: 127.0.0.1
remote_ips_ids: ''
appcomp_ids: ''
remote_ips: ''
port: 25
Service_listener_port:
properties:
service_ports:
type: object
properties:
discovered_service:
type: string
mapped_service:
type: string
protocol:
type: string
id:
type: integer
device_name:
type: string
listening_ip:
type: string
remote_ips_ids:
type: string
appcomp_ids:
type: string
remote_ips:
type: string
port:
type: integer
example:
discovered_service: exim4
mapped_service: exim4
protocol: tcp
id: 3
device_name: D42_Test_Device
listening_ip: 127.0.0.1
remote_ips_ids: ''
appcomp_ids: ''
remote_ips: ''
port: 25
Listener_connection_stats:
properties:
total_count:
example: 2
offset:
example: 0
limit:
example: 1000
service_ports:
type: array
items:
type: object
properties:
listener_device_id:
type: integer
protocol:
type: string
listener_device_name:
type: string
client_ips_ids:
type: string
client_ips:
type: string
client_stats:
type: array
items:
type: string
id:
type: integer
listening_ip:
type: string
appcomp_ids:
type: string
listener_service:
type: string
port:
type: integer
listener_service_id:
type: integer
example:
- listener_device_id: 10
protocol: tcp
listener_device_name: D42_Test_Device
client_ips_ids: ''
client_ips: ''
client_stats: []
id: 3
listening_ip: '::1'
appcomp_ids: ''
listener_service: exim4
port: 25
listener_service_id: 162
- listener_device_id: 10
protocol: tcp
listener_device_name: D42_Test_Device
client_ips_ids: ''
client_ips: ''
client_stats: []
id: 4
listening_ip: 127.0.0.1
appcomp_ids: ''
listener_service: exim4
port: 25
listener_service_id: 162
Listener_connection_stats_id:
properties:
service_ports:
type: object
properties:
listener_device_id:
type: integer
protocol:
type: string
listener_device_name:
type: string
client_ips_ids:
type: string
client_ips:
type: string
client_stats:
type: array
items:
type: string
id:
type: integer
listening_ip:
type: string
appcomp_ids:
type: string
listener_service:
type: string
port:
type: integer
listener_service_id:
type: integer
example:
listener_device_id: 10
protocol: tcp
listener_device_name: D42_Test_Device
client_ips_ids: ''
client_ips: ''
client_stats: []
id: 4
listening_ip: 127.0.0.1
appcomp_ids: ''
listener_service: exim4
port: 25
listener_service_id: 162
auto_discoveryPortscan:
type: object
properties:
job_id:
example: '1'
name:
example: Portscan1
servers:
example: 192.168.1.1
start_ip:
example: 192.168.1.1
end_ip:
example: 192.168.1.1
schedule_time:
example: 11:40
schedule_days:
example: 0,1,2,3
last_status:
example: success
run_report:
example: finished successfully
exclude_servers:
example: 192.168.1.10
task_name_template:
example: '%name% - %platform% (autocreated)'
debug_level_id:
example: '1'
debug_level:
example: Debug On
vserver_debug_level:
example: yes
hostname_precedence:
example: yes
ignore_host_serial:
example: no
ignore_host_uuid:
example: yes
discover_vms:
example: yes
discover_vm_creation_date:
example: no
set_device_dnp:
example: no
device_name_format:
example: hostname
add_nonauthoritativealiases:
example: yes
ignore_ipv6:
example: no
ignore_subnets:
example: yes
ignore_virt_subtype:
example: yes
discover_parts:
example: no
capture_hosts_file:
example: no
discover_software:
example: no
initial_software_type:
example: managed
discover_services:
example: no
discover_applications:
example: yes
discover_cloudid:
example: no
discover_cluster:
example: yes
store_config_files:
example: no
store_software_config_files:
example: no
store_registry_info:
example: no
store_filesystem_info:
example: yes
strip_domain_suffix:
example: yes
service_level_id:
example: '1'
service_level:
example: Development
object_category_id:
example: '1'
object_category:
example: Test
overwrite_device_categories:
example: yes
customer_id:
example: '1'
customer:
example: customer1
vrfgroup_id:
example: '1'
vrfgroup:
example: vrfgroup1
remote_collector_id:
example: '1'
remote_collector:
example: RC1
polling_interval:
example: '300'
enable_resources_monitoring:
example: yes
collect_db_info:
example: no
tags:
example:
- abc
- sql
ignore_host_os_info:
example: yes
allow_sudo:
example: yes
allow_su:
example: yes
enc_unpwd_ids:
example: ''
db_enc_unpwd_ids:
example: ''
api_client:
type: object
properties:
id:
example: 2
client_key:
example: "e230e6edfc5b4781a3f2600272506278"
last_used:
example: "2022-03-21T14:26:03.704Z"
created:
example: "2022-03-21T14:16:08.481Z"
resource_owner:
example: "apiclient"
failed_attempts:
example: 0
is_locked:
example: false
token_ttl:
example: 60
active:
example: true
aws_role_account:
type: object
properties:
id:
example: 3
aws_account_id:
example: "123456789012"
aws_role_id:
example: 1
aws_role:
type: object
properties:
id:
example: 2
role_name:
example: "example role"
role_description:
example: "An Example AWS Role"
name:
example: "Example Role"
accounts:
type: array
items:
$ref: '#/definitions/aws_role_account'
businessapps_element:
type: object
properties:
businessapp_element_uuid:
example: "344316e2-409d-4bbf-b994-f4e3f152947a"
businessapp_id:
example: 2
device_id:
example: 4
name:
example: "test device"
businessapps_connection:
type: object
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"
custom_fields:
type: array
items:
type: object
properties:
id:
example: 2
key:
example: "room"
type_id:
example: 1
type:
example: "Text"
filterable:
example: "false"
mandatory:
example: "true"
fk_model_id:
example: "null"
fk_model_input:
example: "null"
log_for_api:
example: "true"
is_multi:
example: "false"
picklist:
example: "null"
BadRequest:
description: Bad Request (A validation exception has occurred.)
examples:
errors:
- code: 400
reason: BAD_REQUEST
title: The error response code title.
detail: Details of the error response.
Unauthorized:
description: Unauthorized (Your credentials suck)
examples:
errors:
- code: 401
reason: Unauthorized
title: Unauthorized
detail: Your credentials suck
Forbidden:
description: Forbidden (The resource requested is hidden)
examples:
errors:
- code: 403
reason: Forbidden
title: Forbidden
detail: The resource requested is hidden
NotFound:
description: Not Found (The specified resource could not be found)
examples:
errors:
- code: 404
reason: Not Found
title: Not Found
detail: The specified resource could not be found.
InternalServerError:
description: >-
Internal Server Error (Some parameter missing or issue with the
server. Check with returned “msg” from the call.)
examples:
errors:
- code: 500
reason: Internal Server Error
title: Internal Server Error
detail: >-
Some parameter missing or issue with the server. Check with
returned “msg” from the call.
ServiceUnavailable:
description: >-
Service Unavailable (Please check if your Device42 instance is
working normally.)
examples:
errors:
- code: 503
reason: Service Unavailable
title: Service Unavailable
detail: Please check if your Device42 instance is working normally.
PowerUnitModelPort:
type: object
properties:
id:
example: '1'
type: string
normalized_port_name:
example: foo
type: string
orientation:
example: 1
type: integer
port_name:
example: foo
type: string
port_type:
example: IEC 320 C13
type: string
port_type_id:
example: 2
type: integer
power_unit_model_id:
example: 2
type: integer
x_pos:
example: 0
type: integer
y_pos:
example: 0
type: integer