Discovery Rule-Pool Assignment


Data Structures

DiscoveryRulePoolModel

Attribute

Type

Required

Description

id

string

Read-only. Protected.

rule_id

string

yes

Immutable. Uniqueness is required in the combination of attribute rule_id with attribute pool_id.

pool_id

string

yes

Immutable. Uniqueness is required in the combination of attribute pool_id with attribute rule_id.

rule_name

string

Read-only; Expensive to use.

pool_name

string

Read-only; Expensive to use.

created_at

datetime

Read-only. Timestamp of creation.

modified_at

datetime

Read-only. Timestamp of modification.

removed

boolean

Read-only.

Retrieve Available Attributes of the DiscoveryRulePoolModel

Request

Method

GET

Path

/api/v2/objspec/rule_pool

To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.


Get List of Rule-Pool Assignment

Request

Method

GET

Path

/api/v2/discovery/rule/pool

Example Request

GET /api/v2/discovery/rule/pool`

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/discovery/rule/pool'

Response

{
    "result": "success",
    "rule_pool": [
        {
            "rule_id": "9115285645797883905",
            "pool_id": "9115285645797883906",
            "rule_name": "Rule_1",
            "pool_name": "RDP:bastion",
            "created_at": "2025-05-06 00:27:11.982267-07",
            "modified_at": "2025-05-06 00:27:11.982267-07"
        }
    ]
}

Get Rule-Pool Assignment by ID

Request

Method

GET

Path

/api/v2/discovery/rule/<rule_id>/pool/<pool_id>

Example Request

GET /api/v2/discovery/rule/<id>/pool/<id>`

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/discovery/rule/9115285645797883906/pool/9115285645797883908'

Response

{
    "result": "success",
    "rule_pool": {
        "rule_id": "9115285645797883906",
        "pool_id": "9115285645797883908",
        "rule_name": "Rule_2",
        "pool_name": "Pool_RDP",
        "created_at": "2025-05-06 02:34:44.062332-07",
        "modified_at": "2025-05-06 02:34:44.062332-07"
    }
}

Create Rule-Pool Assignment

Request

Method

POST

Path

/api/v2/discovery/rule/pool

Headers

Content-Type: Application/json

Body

DiscoveryRulePoolModel

Example Request

POST /api/v2/discovery/rule/pool`

curl -s -k -X POST \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  -H 'Content-Type: application/json' \
  'https://10.0.214.98/api/v2/discovery/rule/pool' \
  -d'{"rule_id":"9115285645797883906","pool_id":"9115285645797883908"}'

Response

{
    "result": "success"
}

Deleting Rule-Pool Assignment

Request

Method

DELETE

Path

/api/v2/discovery/rule/<rule_id>/pool/<pool_id>

Example Request

DELETE /api/v2/discovery/rule/<id>/pool/<id>`

curl -s -k -X DELETE \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/discovery/rule/9115285645797883906/pool/9115285645797883908'

Response

{
    "result": "success"
}