Repos

Repos - Create

Creates a new Repo.

POST

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Repos

Parameter

Field

Label in UI

Type

Description

hiddenrepopath

Repo Path, Retention (day)

[json]

Consists information about path (string) assigned for the Repo and the retention (int) time for the data. Use Repos - ListRepoPaths API to obtain the value of the required Repo Path. Mandatory Field

name

Repo Name

String

Repo name . Mandatory Field

repoha

Remote LogPoint, Available for (day)

[json]

Lists the information for remote LogPoints. It contains following parameters: ha_li: remote LogPoint private IP (string) ha_day: retention days (int). Optional Field

Request Example

{
    "data": {
        "hiddenrepopath": [
            {
                "path": "/opt/immune/storage/",
                "retention": 36
            }
        ],
        "name": "test1",
        "repoha": [
            {
                "ha_day": 2,
                "ha_li": "10.218.261.2"
            }
        ]
    }
}

Success Response

{
    "status": "Success",
    "message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}

Repos - Edit

Edits a Repo with given ID.

PUT

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Repos/{id}

Parameter

Field

Label in UI

Type

Description

hiddenrepopath

Repo Path, Retention (day)

[json]

Consists information about path (string) assigned for the Repo and the retention (int) time for the data. Use Repos - ListRepoPaths API to obtain the value of the required Repo Path. Mandatory Field

id

-

String

Existing repo_id . Mandatory Field

repoha

Remote LogPoint, Available for (day)

[json]

Lists the information for remote LogPoints. It contains following parameters: ha_li: remote LogPoint private IP (string) ha_day: retention days (int). Optional Field

Request Example

{
    "data": {
        "hiddenrepopath": [
            {
                "path": "/opt/immune/storage/",
                "retention": 36
            }
        ],
        "repoha": [
            {
                "ha_day": 5,
                "ha_li": "10.218.261.2"
            }
        ]
    }
}

Success Response

{
    "status": "Success",
    "message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}

Repos - FetchRemoteRepos

Fetches all local and remote Repos.

POST

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Repos/RemoteRepos/fetch

Request Example

{
    "data": {}
}

Success Response

{
    "status": "Success",
    "message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}/{data_node}"
}

Repos - Get

Fetches the Repo with given ID.

GET

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Repos/{id}

Parameter

Field

Label in UI

Type

Description

id

-

String

Existing Repo id .

Success Response

{
    "active": true,
    "id": "5a466fc9d8aaa4748d3977c9",
    "name": "default",
    "repo_number": 1,
    "repoha": [],
    "repopath": [
        {
            "path": "/opt/immune/storage/",
            "retention": 365
        }
    ],
    "tid": "",
    "used_size": "1.24268 MB"
}

Repos - List

Lists all available Repos.

GET

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Repos

Success Response

[
    {
        "active": true,
        "id": "5a466fc9d8aaa4748d3977c9",
        "name": "default",
        "repo_number": 1,
        "repoha": [],
        "repopath": [
            {
                "path": "/opt/immune/storage/",
                "retention": 365
            }
        ],
        "tid": "",
        "used_size": "1.24268 MB"
    }
]

Repos - ListRepoPaths

Lists all allowed Repo Paths.

GET

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Repos/RepoPaths

Success Response

[
    {
        "paths": [
            "/opt/immune/storage/"
        ]
    }
]

Repos - RefreshRepoPaths

Syncs LogPoint’s Repo Path List to the current Repo Path list.

POST

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Repos/RepoPaths/refreshlist

Request Example

{
    "data": {}
}

Success Response

{
    "status": "Success",
    "message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}

Repos - Trash

Deletes a Repo with given ID.

DELETE

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/Repos/{id}

Parameter

Field

Label in UI

Type

Description

id

-

String

Existing Repo id . Mandatory Field

Success Response

{
    "status": "Success",
    "message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}

Helpful?

We are glad this guide helped.


Please don't include any personal information in your comment

Contact Support