Hosts

This contains APIs related to Hosts as defined in Harness

Gets the list of hosts filtered by accountIdentifier and connectorIdentifier

Request
Security:
ApiKey (readwrite)
query Parameters
pageIndex
integer <int32>
Default: 0

Number of pages.

pageSize
integer <int32>
Default: 50

Number of Elements to fetch.

Array of objects (SortOrder)

Sort criteria for the elements.

accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
string

Organization Identifier for the Entity.

projectIdentifier
string

Project Identifier for the Entity.

identifier
string

Connector Identifier

Request Body schema:

Details of the filters applied

type
string
Enum: "HOST_NAMES" "HOST_ATTRIBUTES"
filter
string
Responses
400

Bad Request

500

Internal server error

default

Returns the list of hosts filtered by accountIdentifier and connectorIdentifier

post/ng/api/hosts/filter
Request samples
{
  • "type": "HOST_NAMES",
  • "filter": "string"
}
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}