Downtime

This contains APIs related to CRUD operations of Downtime

getDowntime

Securityx-api-key
Request
path Parameters
identifier
required
string

Identifier for the Entity.

accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

Responses
400

Bad Request

500

Internal Server Error

get/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime/identifier/{identifier}
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

updateDowntimeData

Securityx-api-key
Request
path Parameters
identifier
required
string

Identifier for the Entity.

accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

Request Body schema: application/json
required

Details of the Downtime to be updated

orgIdentifier
required
string
projectIdentifier
required
string
identifier
required
string
name
required
string
description
string
object
category
required
string
Enum: "ScheduledMaintenance" "Deployment" "Other"
scope
string
Enum: "Project" "Entity"
required
object (DowntimeSpecDTO)
required
object (EntitiesRule)
enabled
boolean
Responses
400

Bad Request

500

Internal Server Error

put/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime/identifier/{identifier}
Request samples
application/json
{
  • "orgIdentifier": "string",
  • "projectIdentifier": "string",
  • "identifier": "string",
  • "name": "string",
  • "description": "string",
  • "tags": {
    },
  • "category": "ScheduledMaintenance",
  • "scope": "Project",
  • "spec": {
    },
  • "entitiesRule": {
    },
  • "enabled": true
}
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

deleteDowntimeData

Securityx-api-key
Request
path Parameters
identifier
required
string

Identifier for the Entity.

accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

Responses
400

Bad Request

500

Internal Server Error

delete/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime/identifier/{identifier}
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

getAssociatedMonitoredServices

Securityx-api-key
Request
path Parameters
identifier
required
string

Identifier for the Entity.

accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

Responses
400

Bad Request

500

Internal Server Error

get/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime/monitored-services/{identifier}
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

getDowntimeAssociatedMonitoredServices

Securityx-api-key
Request
path Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

query Parameters
pageNumber
integer <int32>
Default: 0

Page Index of the results to fetch.Default Value: 0

pageSize
integer <int32>
Default: 10

Results per page

Responses
400

Bad Request

500

Internal Server Error

get/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime/monitored-services
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

getHistory

Securityx-api-key
Request
path Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

query Parameters
pageNumber
integer <int32>
Default: 0

Page Index of the results to fetch.Default Value: 0

pageSize
integer <int32>
Default: 10

Results per page

monitoredServiceIdentifier
string

For filtering on the basis of monitored services' identifiers

filter
string

For filtering on the basis of name

Responses
400

Bad Request

500

Internal Server Error

get/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime/history
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

listDowntimes

Securityx-api-key
Request
path Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

query Parameters
pageNumber
integer <int32>
Default: 0

Page Index of the results to fetch.Default Value: 0

pageSize
integer <int32>
Default: 10

Results per page

monitoredServiceIdentifier
string

For filtering on the basis of monitored services' identifiers

filter
string

For filtering on the basis of name

Responses
400

Bad Request

500

Internal Server Error

get/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime/list
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

saveDowntime

Securityx-api-key
Request
path Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

Request Body schema: application/json
required

Details of the Downtime to be saved

orgIdentifier
required
string
projectIdentifier
required
string
identifier
required
string
name
required
string
description
string
object
category
required
string
Enum: "ScheduledMaintenance" "Deployment" "Other"
scope
string
Enum: "Project" "Entity"
required
object (DowntimeSpecDTO)
required
object (EntitiesRule)
enabled
boolean
Responses
400

Bad Request

500

Internal Server Error

post/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime
Request samples
application/json
{
  • "orgIdentifier": "string",
  • "projectIdentifier": "string",
  • "identifier": "string",
  • "name": "string",
  • "description": "string",
  • "tags": {
    },
  • "category": "ScheduledMaintenance",
  • "scope": "Project",
  • "spec": {
    },
  • "entitiesRule": {
    },
  • "enabled": true
}
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

updateDowntimeEnabled

Securityx-api-key
Request
path Parameters
identifier
required
string

Identifier for the Entity.

accountIdentifier
required
string

Account Identifier for the Entity.

orgIdentifier
required
string

Organization Identifier for the Entity.

projectIdentifier
required
string

Project Identifier for the Entity.

query Parameters
enable
required
boolean
Responses
400

Bad Request

500

Internal Server Error

put/cv/api/account/{accountIdentifier}/org/{orgIdentifier}/project/{projectIdentifier}/downtime/flag/{identifier}
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}