SpaceONE APIs
Latest Version
Latest Version
  • README
  • Board
    • V1
      • Board
      • Post
  • Config
    • V1
      • Domain Config
      • User Config
  • Core
    • V1
      • Handler
      • Query
      • Server Info
  • Cost Analysis
    • Plugin
      • Cost
      • Data Source
      • Job
    • V1
      • Budget
      • Budget Usage
      • Cost
      • Cost Query Set
      • Custom Widget
      • Data Source
      • Data Source Rule
      • Exchange Rate
      • Job
      • Job Task
      • Public Dashboard
      • Schedule
      • User Dashboard
  • Identity
    • Plugin
      • Auth
    • V1
      • Api Key
      • Authorization
      • Domain
      • Domain Owner
      • Endpoint
      • Policy
      • Project
      • Project Group
      • Provider
      • Role
      • Role Binding
      • Service Account
      • Token
      • User
  • Inventory
    • Plugin
      • Collector
    • V1
      • Change History
      • Cloud Service
      • Cloud Service Type
      • Collector
      • Job
      • Job Task
      • Note
      • Region
      • Resource Group
      • Server
  • Monitoring
    • Plugin
      • Data Source
      • Event
      • Log
      • Metric
      • Webhook
    • V1
      • Alert
      • Data Source
      • Escalation Policy
      • Event
      • Event Rule
      • Log
      • Maintenance Window
      • Metric
      • Note
      • Project Alert Config
      • Webhook
  • Notification
    • Plugin
      • Notification
      • Protocol
    • V1
      • Notification
      • Notification Usage
      • Project Channel
      • Protocol
      • Quota
      • User Channel
  • Plugin
    • V1
      • Plugin
      • Supervisor
  • Repository
    • V1
      • Plugin
      • Policy
      • Repository
      • Schema
  • Sample
    • V1
      • Helloworld
  • Secret
    • V1
      • Secret
      • Secret Group
  • Statistics
    • Plugin
      • Storage
    • V1
      • History
      • Resource
      • Schedule
      • Storage
Powered by GitBook
On this page
  • MaintenanceWindow
  • create
  • update
  • close
  • get
  • list
  • stat
  • Message
  • CreateMaintenanceWindowRequest
  • GetMaintenanceWindowRequest
  • MaintenanceWindowInfo
  • MaintenanceWindowQuery
  • MaintenanceWindowRequest
  • MaintenanceWindowStatQuery
  • MaintenanceWindowsInfo
  • UpdateMaintenanceWindowRequest

Was this helpful?

  1. Monitoring
  2. V1

Maintenance Window

A MaintenanceWindow is a resource snoozing Alerts during maintenance time.

Package : spaceone.api.monitoring.v1

MaintenanceWindow

MaintenanceWindow Methods:

Method
Request
Response

create

POST /monitoring/v1/maintenance-windows

Creates a new MaintenanceWindow. When creating a MaintenanceWindow, you can set the title and maintenance schedule of the MaintenanceWindow. From the start_time to the end_time specified by the schedule set in this method, alerts in the Projects linked with the MaintenanceWindow are ceased.

Type
Message

Request

Response

{
    "title": "The dev server is under regular maintenance.",
    "projects": [
        "project-123456789012"
    ],
    "start_time": "2022-01-01T09:45:00.000Z",
    "end_time": "2022-01-01T10:45:00.000Z",
    "domain_id": "domain-123456789012"
}
{
    "maintenance_window_id": "mw-123456789012",
    "title": "The dev server is under regular maintenance.",
    "state": "OPEN",
    "start_time": "2022-01-01T09:45:00.000Z",
    "end_time": "2022-01-01T10:45:00.000Z",
    "tags": {},
    "projects": [
        "project-123456789012"
    ],
    "domain_id": "domain-123456789012",
    "created_by": "user1@email.com",
    "created_at": "2022-06-02T09:46:49.196Z",
    "updated_at": "2022-06-02T09:46:49.196Z"
}

update

PUT /monitoring/v1/maintenance-window/{maintenance_window_id}

Updates a specific MaintenanceWindow. You can make changes in MaintenanceWindow settings including, the title and the schedule.

Type
Message

Request

Response

{
    "maintenance_window_id": "mw-123456789012",
    "title": "The dev server is under regular maintenance.",
    "projects": [
        "project-123456789012"
    ],
    "start_time": "2022-01-03T00:00:00.000Z",
    "end_time": "2022-01-03T01:00:00.000Z",
    "domain_id": "domain-123456789012"
}
{
    "maintenance_window_id": "mw-123456789012",
    "title": "The dev server is under regular maintenance.",
    "state": "OPEN",
    "start_time": "2022-06-03T00:00:00.000Z",
    "end_time": "2022-06-03T01:00:00.000Z",
    "tags": {},
    "projects": [
        "project-123456789012"
    ],
    "domain_id": "domain-123456789012",
    "created_by": "user1@email.com",
    "created_at": "2022-01-02T09:46:49.196Z",
    "updated_at": "2022-01-02T09:46:49.196Z"
}

close

PUT /monitoring/v1/maintenance-window/{maintenance_window_id}/close

Closes a MaintenanceWindow by changing the state of the MaintenanceWindow to CLOSED when the maintenance is completed. As the MaintenanceWindow is not deleted but closed, the maintenance history remains undeleted.

Type
Message

Request

Response

{
    "maintenance_window_id": "mw-123456789012",
    "domain_id": "domain-123456789012"
}
{
    "maintenance_window_id": "mw-123456789012",
    "title": "The dev server is under regular maintenance.",
    "state": "CLOSED",
    "start_time": "2022-06-03T00:00:00.000Z",
    "end_time": "2022-06-03T01:00:00.000Z",
    "tags": {},
    "projects": [
        "project-123456789012"
    ],
    "domain_id": "domain-123456789012",
    "created_by": "user1@email.com",
    "created_at": "2022-01-02T09:46:49.196Z",
    "updated_at": "2022-01-02T09:46:49.196Z"
}

get

GET /monitoring/v1/maintenance-window/{maintenance_window_id}

Gets a specific MaintenanceWindow. Prints detailed information about the MaintenanceWindow, including the title and the schedule.

Type
Message

Request

Response

{
    "maintenance_window_id": "mw-123456789012",
    "domain_id": "domain-123456789012"
}
{
    "maintenance_window_id": "mw-123456789012",
    "title": "The dev server is under regular maintenance.",
    "state": "OPEN",
    "start_time": "2022-06-03T00:00:00.000Z",
    "end_time": "2022-06-03T01:00:00.000Z",
    "tags": {},
    "projects": [
        "project-123456789012"
    ],
    "domain_id": "domain-123456789012",
    "created_by": "user1@email.com",
    "created_at": "2022-01-02T09:46:49.196Z",
    "updated_at": "2022-01-02T09:46:49.196Z"
}

list

GET /monitoring/v1/maintenance-windows

POST /monitoring/v1/maintenance-windows/search

Gets a list of all MaintenanceWindows. You can use a query to get a filtered list of MaintenanceWindows.

Type
Message

Request

Response

{
    "query": {},
    "domain_id": "domain-123456789012"
}
{
    "results": [
        {
            "maintenance_window_id": "mw-123456789012",
            "title": "The dev server is under regular maintenance.",
            "state": "OPEN",
            "start_time": "2022-06-03T00:00:00.000Z",
            "end_time": "2022-06-03T01:00:00.000Z",
            "tags": {},
            "projects": [
                "project-123456789012"
            ],
            "domain_id": "domain-123456789012",
            "created_by": "user1@email.com",
            "created_at": "2022-01-01T09:59:01.966Z",
            "updated_at": "2022-01-01T09:59:01.966Z"
        },
        {
            "maintenance_window_id": "mw-987654321098",
            "title": "The prd server is under regular maintenance.",
            "state": "OPEN",
            "start_time": "2022-06-03T00:00:00.000Z",
            "end_time": "2022-06-03T01:00:00.000Z",
            "tags": {},
            "projects": [
                "project-123456789012"
            ],
            "domain_id": "domain-123456789012",
            "created_by": "user2@email.com",
            "created_at": "2022-01-02T09:57:28.999Z",
            "updated_at": "2022-01-02T09:57:28.999Z"
        }
    ],
    "total_count": 50
}

stat

POST /monitoring/v1/maintenance-windows/stat

Type
Message

Request

Response

Message

CreateMaintenanceWindowRequest

Field
Type
Required
Description

title

string

✔

projects

list of string

✔

start_time

string

✔

end_time

string

✔

tags

✘

domain_id

string

✔

GetMaintenanceWindowRequest

Field
Type
Required
Description

maintenance_window_id

string

✔

domain_id

string

✔

only

list of string

✘

MaintenanceWindowInfo

Field
Type
Description

maintenance_window_id

string

title

string

state

  • NONE

  • OPEN

  • CLOSED

start_time

string

end_time

string

tags

projects

list of string

domain_id

string

created_by

string

created_at

string

updated_at

string

closed_at

string

MaintenanceWindowQuery

Field
Type
Required
Description

query

✘

maintenance_window_id

string

✘

title

string

✘

state

  • NONE

  • OPEN

  • CLOSED

✘

project_id

string

✘

created_by

string

✘

domain_id

string

✔

MaintenanceWindowRequest

Field
Type
Required
Description

maintenance_window_id

string

✔

domain_id

string

✔

MaintenanceWindowStatQuery

Field
Type
Required
Description

query

✔

domain_id

string

✔

MaintenanceWindowsInfo

Field
Type
Description

results

total_count

UpdateMaintenanceWindowRequest

Field
Type
Required
Description

maintenance_window_id

string

✔

title

string

✘

projects

list of string

✘

start_time

string

✘

end_time

string

✘

tags

✘

domain_id

string

✔

PreviousLogNextMetric

Last updated 2 years ago

Was this helpful?

google.protobuf.Struct
google.protobuf.Struct
google.protobuf.Struct
google.protobuf.Struct
spaceone.api.core.v1.Query
spaceone.api.core.v1.StatisticsQuery
int32
google.protobuf.Struct
create
CreateMaintenanceWindowRequest
MaintenanceWindowInfo
update
UpdateMaintenanceWindowRequest
MaintenanceWindowInfo
close
MaintenanceWindowRequest
MaintenanceWindowInfo
get
GetMaintenanceWindowRequest
MaintenanceWindowInfo
list
MaintenanceWindowQuery
MaintenanceWindowsInfo
stat
MaintenanceWindowStatQuery
CreateMaintenanceWindowRequest
MaintenanceWindowInfo
UpdateMaintenanceWindowRequest
MaintenanceWindowInfo
MaintenanceWindowRequest
MaintenanceWindowInfo
GetMaintenanceWindowRequest
MaintenanceWindowInfo
MaintenanceWindowQuery
MaintenanceWindowsInfo
MaintenanceWindowStatQuery
list of MaintenanceWindowInfo