[{"label":"Latest (v1.1)","version":"latest"}]
vmc

Put Reservations Deprecated

Description

update the maintenance window for this SDDC

Request

Request

URL

URL


put
https://vmc.vmware.com/vmc/api/orgs/{org}/reservations/{reservation}/mw
Copy

Path Parameters

Path Parameters

string
org Required

Organization identifier


string
reservation Required

Reservation Identifier


Request Body

Request Body

MaintenanceWindow of type(s) application/json Required

Maintenance Window

{
	"day_of_week": "SUNDAY",
	"hour_of_day": 0
}
string
day_of_week Optional

Possible values are: SUNDAYMONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAY


integer as int32
hour_of_day Optional
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns MaintenanceWindow of type(s) application/json
{
	"day_of_week": "SUNDAY",
	"hour_of_day": 0
}
string
day_of_week Optional

Possible values are: SUNDAYMONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAY


integer as int32
hour_of_day Optional
Errors

Errors

ErrorResponse
400

The reservation is not in a state that’s valid for updates


401

Unauthorized


ErrorResponse
403

Access not allowed to the operation for the current user


ErrorResponse
409

Conflict with exiting reservation

Code Samples

Code Samples

PowerCLI Client SDK Example

$MaintenanceWindow = Initialize-MaintenanceWindow -DayOfWeek "SUNDAY" -HourOfDay 0
Invoke-OrgsOrgReservationsReservationMwPut -Org "MyOrg" -Reservation "MyReservation" -Window $Window

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"day_of_week":"SUNDAY","hour_of_day":0}' https://vmc.vmware.com/vmc/api/orgs/{org}/reservations/{reservation}/mw
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vmc-ui-servicename: reservations
x-vmw-vapi-methodname: put


[{"label":"Latest (v1.1)","version":"latest"}]
vmc
Feedback

Was this page helpful?