Captures

Get All Captures

Gets information for all of the captures that a user has access to.

GET /api/captures

Permissions

User must be logged in. User must be a member of the environment.

Success Response

200 OK
[
    {
        "id": 1,
        "name": "myCapture",
        "start": "2018-05-19T22:06:53.000Z",
        "scheduledStart": null,
        "scheduledEnd": null,
        "end": "2018-05-19T22:20:39.000Z",
        "status": "DONE",
        "envId": 1,
        "type": "CAPTURE",
        "reason": null
    }
]

Error Response

Get a Specific Capture

Gets the information of a specific capture associated with an environment.

Permissions

User must be logged in. User must be a member of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the capture to get

Required

Success Response

Error Response

Get Metrics for a Specific Capture

Gets the CloudWatch metrics associated with specific capture associated with an environment.

Permissions

User must be logged in. User must be a member of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the capture to get metrics for

Required

Success Response

Error Response

Stop a Capture

Stops a specific capture associated with a given environment. The capture must be in the “Running” state before it is stopped.

Permissions

User must be logged in. User must either be the owner of the capture or be an admin of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the capture to stop

Required

Success Response

Error Response

Edit a Capture

Edits the information of a specific capture associated with an environment.

Permissions

User must be logged in. User must either be the owner of the capture or be an admin of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the capture to edit

Required

Sample Request Body

Success Response

Error Response

Post a New Capture

Creates a new capture in an environment.

Permissions

User must be logged in. User must be a member of the environment.

Body Params

Param

Description

Optional/Required

name=[string]

Name of the capture that will be displayed in the UI

Required

envId=[number]

id of the environment that the capture belongs to

Required

status=[string]

Status of the capture. Must be ‘SCHEDULED’, ‘STARTED’, or ‘STARTING’

Optional

start=[date]

Time that the capture actually started

Optional

scheduledStart=[date]

Time that the capture is scheduled for

Optional

duration=[number]

How long the capture will run for

Optional

Sample Request Body

Success Response

Error Response

Delete a Capture

Deletes a specific capture associated with an environment.

Permissions

User must be logged in. User must either be the owner of the capture or be an admin of the environment.

Query Params

Param

Description

Optional/Required

id=[number]

id of the capture to delete

Required

Success Response

Error Response

Last updated