diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Archive.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Archive.json new file mode 100644 index 000000000000..1ad4154bf435 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Archive.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2022-03-01", + "reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", + "reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da" + }, + "responses": { + "200": {} + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Unarchive.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Unarchive.json new file mode 100644 index 000000000000..1ad4154bf435 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Unarchive.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2022-03-01", + "reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", + "reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da" + }, + "responses": { + "200": {} + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/reservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/reservations.json index 4016ca4df335..796323b93c81 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/reservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/reservations.json @@ -572,6 +572,80 @@ } } }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/archive": { + "post": { + "summary": "Archive a `Reservation`.", + "description": "Archiving a `Reservation` moves it to `Archived` state.", + "operationId": "Reservation_Archive", + "x-ms-examples": { + "Archive": { + "$ref": "./examples/Archive.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation, Archive" + ], + "responses": { + "200": { + "description": "Archived a reservation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/unarchive": { + "post": { + "summary": "Unarchive a `Reservation`.", + "description": "Unarchiving a `Reservation` moves it to the state it was before archiving.\n", + "operationId": "Reservation_Unarchive", + "x-ms-examples": { + "Unarchive": { + "$ref": "./examples/Unarchive.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation, Unarchive" + ], + "responses": { + "200": { + "description": "Unarchive complete for the reservation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions": { "get": { "summary": "Get `Reservation` revisions.",