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 |
|---|---|---|---|---|
|
query |
string |
No |
Filter expression, for example |
|
query |
string |
No |
Comma-separated sort fields; prefix a field with |
|
query |
integer (int32) |
No |
Page number, starting at 1. Minimum 1. |
|
query |
integer (int32) |
No |
Number of items per page, 25 by default and at most 100. Minimum 1. |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
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 |
|---|---|---|---|---|
|
query |
string |
No |
|
|
query |
No |
||
|
query |
integer (int32) |
No |
|
|
query |
integer (int32) |
No |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
The request is invalid. The body describes the validation errors. |
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 |
|---|---|---|---|---|
|
query |
Yes |
Hierarchy level to return. Each request returns only one level. |
|
|
query |
No |
Parent provider. Required when requesting connections. |
|
|
query |
string (uuid) |
No |
Parent connection identifier. Required from the category level onwards. |
|
query |
string |
No |
Parent category. Use ‘uncategorized’ for resources without a category. |
|
query |
string |
No |
Parent resource type. Required when requesting resources. |
|
query |
string |
No |
Sieve filters shared with the Discovery grid. |
|
query |
integer (int32) |
No |
Maximum number of resource nodes returned at the leaf level (1-200). |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
The request is invalid. The body describes the validation errors. |
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 |
|---|---|---|---|---|
|
query |
string |
No |
Filter expression, for example |
|
query |
string |
No |
Comma-separated sort fields; prefix a field with |
|
query |
integer (int32) |
No |
Page number, starting at 1. Minimum 1. |
|
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 |
|---|---|---|
|
Success. |
|
|
The request is invalid. The body describes the validation errors. |
Get a discovered resource#
GET /discovery/resource/{id}
Permissions: Discovery.Resource/Read
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string (uuid) |
Yes |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
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 |
|---|---|---|---|---|
|
query |
string |
No |
Filter expression, for example |
|
query |
string |
No |
Comma-separated sort fields; prefix a field with |
|
query |
integer (int32) |
No |
Page number, starting at 1. Minimum 1. |
|
query |
integer (int32) |
No |
Number of items per page, 25 by default and at most 100. Minimum 1. |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
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 |
|---|---|---|---|---|
|
query |
string |
No |
Filter expression, for example |
|
query |
string |
No |
Comma-separated sort fields; prefix a field with |
|
query |
integer (int32) |
No |
Page number, starting at 1. Minimum 1. |
|
query |
integer (int32) |
No |
Number of items per page, 25 by default and at most 100. Minimum 1. |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
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 |
|---|---|---|---|---|
|
path |
string |
Yes |
|
|
query |
string |
No |
Filter expression, for example |
|
query |
string |
No |
Comma-separated sort fields; prefix a field with |
|
query |
integer (int32) |
No |
Page number, starting at 1. Minimum 1. |
|
query |
integer (int32) |
No |
Number of items per page, 25 by default and at most 100. Minimum 1. |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
The resource does not exist in the tenant. |
Search resources#
GET /discovery/resource/search
Full-text search over names and properties of discovered resources.
Permissions: Discovery.Resource/Read
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
string |
Yes |
|
|
query |
boolean |
Yes |
|
|
query |
string |
No |
Filter expression, for example |
|
query |
string |
No |
Comma-separated sort fields; prefix a field with |
|
query |
integer (int32) |
No |
Page number, starting at 1. Minimum 1. |
|
query |
integer (int32) |
No |
Number of items per page, 25 by default and at most 100. Minimum 1. |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
The request is invalid. The body describes the validation errors. |
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 |
|---|---|---|---|---|
|
path |
string (uuid) |
Yes |
|
|
query |
string (uuid) |
Yes |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
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 |
|---|---|---|---|---|
|
path |
string (uuid) |
Yes |
|
|
query |
integer (int32) |
No |
Default |
Responses
Status |
Description |
Body |
|---|---|---|
|
Success. |
|
|
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 |
|---|---|---|---|---|
|
path |
string (uuid) |
Yes |
Responses
Status |
Description |
Body |
|---|---|---|
|
The refresh is scheduled. |
|
|
The resource does not exist in the tenant. |