Condividi tramite


Schedule Maintenance - Create Schedule Maintenance

Aggiunge la manutenzione pianificata per la richiesta di pianificazione fornita.

POST http://<Servername>/OperationsManager/ScheduleMaintenance

Corpo della richiesta

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Nome Necessario Tipo Descrizione
category True enum:
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

Codice motivo modalità di manutenzione

duration True

integer

Durata del programma

freqType True enum:
  • 1
  • 4
  • 8
  • 16
  • 32

Frequenza del programma ['1', '4', '8', '16', '32']

monitoringObjectsId True

string[]

ID oggetti di monitoraggio

scheduleName True

string

Nome programma

startTime True

string

Orario di inizio del programma

comment

string

Commenta per il programma

enabled

boolean

è abilitato

endDate

string

Data di fine

freqInterval

integer

Intervallo di frequenza

freqRecurrenceFactor

integer

fattore di ricorrenza della frequenza

freqRelativeInterval

integer

Frequenza Intervallo relativo

isEndTimeSpecified

boolean

è l'ora di fine specificata

recursive

boolean

è ricorsivo

scheduleEffectiveFrom

string

Pianifica il tempo effettivo

Risposte

Nome Tipo Descrizione
200 OK

string

OK. Aggiunto con successo il programma di manutenzione.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Esempio

CreateScheduleMaintenance

Esempio di richiesta

POST http://<Servername>/OperationsManager/ScheduleMaintenance

{
  "scheduleName": "Test Schedule",
  "monitoringObjectsId": [
    "3c8ac4f3-475e-44dd-4163-8a97af363705"
  ],
  "startTime": "2022-06-16T20:44:53.177Z",
  "duration": 30,
  "freqType": 8,
  "category": 0,
  "scheduleEffectiveFrom": "2022-06-16T20:44:53.177Z",
  "recursive": true,
  "endDate": "2022-06-16T20:44:53.177Z",
  "enabled": true,
  "comment": "scheduled for all windows computers",
  "freqInterval": 65,
  "freqRecurrenceFactor": 1,
  "freqRelativeInterval": 0,
  "isEndTimeSpecified": true
}

Risposta di esempio

[
  "678b09a7-7cf0-ec11-acf9-02155eb7914c"
]

Definizioni

ScheduleMaintenanceRequest

Nome Tipo Descrizione
category enum:
  • 0
  • 1
  • 10
  • 11
  • 12
  • 13
  • 14
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

Codice motivo modalità di manutenzione

comment

string

Commenta per il programma

duration

integer

Durata del programma

enabled

boolean

è abilitato

endDate

string

Data di fine

freqInterval

integer

Intervallo di frequenza

freqRecurrenceFactor

integer

fattore di ricorrenza della frequenza

freqRelativeInterval

integer

Frequenza Intervallo relativo

freqType enum:
  • 1
  • 16
  • 32
  • 4
  • 8

Frequenza del programma ['1', '4', '8', '16', '32']

isEndTimeSpecified

boolean

è l'ora di fine specificata

monitoringObjectsId

string[]

ID oggetti di monitoraggio

recursive

boolean

è ricorsivo

scheduleEffectiveFrom

string

Pianifica il tempo effettivo

scheduleName

string

Nome programma

startTime

string

Orario di inizio del programma