Discovery API#

Read the multi-cloud resource inventory, its tags, relationships and change history, and request an inventory refresh. See Browse resources.

All paths are relative to the base URL and need the authentication described in REST API. Each operation lists the Reply CMP permissions its caller must hold.

Resources#

List discovered resources#

GET /discovery/resource

Returns the resources of the tenant inventory across all connections, with filtering, sorting and paging.

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

Filters

query

string

No

Filter expression, for example name@=prod. See Filtering, sorting and paging.

Sorts

query

string

No

Comma-separated sort fields; prefix a field with - for descending order.

Page

query

integer (int32)

No

Page number, starting at 1. Minimum 1.

PageSize

query

integer (int32)

No

Number of items per page, 25 by default and at most 100. Minimum 1.

Responses

Status

Description

Body

200

Success.

ListResourcesResponse

404

The resource does not exist in the tenant.

Search supported resource types#

GET /discovery/resource/types

Lists provider and resource type pairs known to Reply CMP. This is the supported-type catalog, not the tenant inventory.

Permissions: API access only; no Reply CMP permission is required.

Parameters

Name

In

Type

Required

Description

search

query

string

No

provider

query

Provider

No

page

query

integer (int32)

No

pageSize

query

integer (int32)

No

Responses

Status

Description

Body

200

Success.

ListResourceTypesResponse

400

The request is invalid. The body describes the validation errors.

HttpValidationProblemDetails

Browse the resource inventory map#

GET /discovery/resource/map

Returns one aggregated level of the inventory hierarchy. The filters of the resource list apply to every level.

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

Level

query

DiscoveryMapLevel

Yes

Hierarchy level to return. Each request returns only one level.

Provider

query

Provider

No

Parent provider. Required when requesting connections.

ConnectionId

query

string (uuid)

No

Parent connection identifier. Required from the category level onwards.

Category

query

string

No

Parent category. Use ‘uncategorized’ for resources without a category.

ResourceType

query

string

No

Parent resource type. Required when requesting resources.

Filters

query

string

No

Sieve filters shared with the Discovery grid.

Limit

query

integer (int32)

No

Maximum number of resource nodes returned at the leaf level (1-200).

Responses

Status

Description

Body

200

Success.

DiscoveryMapResponse

400

The request is invalid. The body describes the validation errors.

HttpValidationProblemDetails

List resources matching regular expressions#

POST /discovery/resource/regex

Returns the resources whose properties match the regular expressions in the request body.

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

Filters

query

string

No

Filter expression, for example name@=prod. See Filtering, sorting and paging.

Sorts

query

string

No

Comma-separated sort fields; prefix a field with - for descending order.

Page

query

integer (int32)

No

Page number, starting at 1. Minimum 1.

PageSize

query

integer (int32)

No

Number of items per page, 25 by default and at most 100. Minimum 1.

Request body (application/json, required): RegexSearchRequest

{
  "regex": "string"
}

Responses

Status

Description

Body

200

Success.

ListResourcesResponse

400

The request is invalid. The body describes the validation errors.

HttpValidationProblemDetails

Get a discovered resource#

GET /discovery/resource/{id}

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

id

path

string (uuid)

Yes

Responses

Status

Description

Body

200

Success.

GetDiscoveredResourceResponse

404

The resource does not exist in the tenant.

List inventory change events#

GET /discovery/resource/events

Returns the change history of discovered resources.

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

Filters

query

string

No

Filter expression, for example name@=prod. See Filtering, sorting and paging.

Sorts

query

string

No

Comma-separated sort fields; prefix a field with - for descending order.

Page

query

integer (int32)

No

Page number, starting at 1. Minimum 1.

PageSize

query

integer (int32)

No

Number of items per page, 25 by default and at most 100. Minimum 1.

Responses

Status

Description

Body

200

Success.

ListResourceEventsResponse

List tag keys#

GET /discovery/resource/tag

Returns the tag keys used across the tenant inventory.

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

Filters

query

string

No

Filter expression, for example name@=prod. See Filtering, sorting and paging.

Sorts

query

string

No

Comma-separated sort fields; prefix a field with - for descending order.

Page

query

integer (int32)

No

Page number, starting at 1. Minimum 1.

PageSize

query

integer (int32)

No

Number of items per page, 25 by default and at most 100. Minimum 1.

Responses

Status

Description

Body

200

Success.

GenericListResponseOfstring

404

The resource does not exist in the tenant.

List values of a tag key#

GET /discovery/resource/tag/{key}

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

key

path

string

Yes

Filters

query

string

No

Filter expression, for example name@=prod. See Filtering, sorting and paging.

Sorts

query

string

No

Comma-separated sort fields; prefix a field with - for descending order.

Page

query

integer (int32)

No

Page number, starting at 1. Minimum 1.

PageSize

query

integer (int32)

No

Number of items per page, 25 by default and at most 100. Minimum 1.

Responses

Status

Description

Body

200

Success.

GenericListResponseOfstring

404

The resource does not exist in the tenant.

Get rollback suggestions for a resource#

GET /discovery/resource/{id}/rollback

Suggests how to revert the latest configuration changes of a resource.

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

id

path

string (uuid)

Yes

eventId

query

string (uuid)

Yes

Responses

Status

Description

Body

200

Success.

RollbackSuggestionResponse

404

The resource does not exist in the tenant.

Get the relationship graph of a resource#

GET /discovery/resource/{id}/graph

Permissions: Discovery.Resource/Read

Parameters

Name

In

Type

Required

Description

id

path

string (uuid)

Yes

depth

query

integer (int32)

No

Default 1.

Responses

Status

Description

Body

200

Success.

GetResourceGraphResponse

404

The resource does not exist in the tenant.

Inventory refresh#

Request an inventory refresh#

PUT /discovery/connection/{connectionId}

Schedules a new discovery run for a cloud connection. The refresh runs asynchronously.

Permissions: Discovery.Resource/Write

Parameters

Name

In

Type

Required

Description

connectionId

path

string (uuid)

Yes

Responses

Status

Description

Body

202

The refresh is scheduled.

404

The resource does not exist in the tenant.