Update Or create Reservation Policy

Update Or create Reservation Policy

Updates or creates a reservation policy upon validation on reservation policy fields.Returns the updated ReservationPolicy or RestEntity which wraps the newly created ReservationPolicy.

Request
URI
PUT
https://{api_host}/iaas-proxy-provider/api/services/{serviceId}/reservations/policies/{id}
COPY
Path Parameters
string
serviceId
Required

The ID of the IaaS service as registered in the component registry service.

string
id
Required

Unique identifier of the reservation policy to be updated.


Request Body
reservationPolicy of type(s) application/json
Optional
{
    "lastUpdated": "string",
    "createdDate": "string",
    "reservationPolicyTypeId": "string",
    "name": "string",
    "description": "string",
    "id": "string",
    "version": 0
}
string As date-time As date-time
lastUpdated
Optional

lastUpdated

string As date-time As date-time
createdDate
Optional

createdDate

string
reservationPolicyTypeId
Optional

reservationPolicyTypeId

string
name
Optional

name

string
description
Optional

description

string
id
Optional

id

integer As int64 As int64
version
Optional

version

Responses
200

successful operation

Returns reservationPolicy of type(s) */*
{
    "lastUpdated": "string",
    "createdDate": "string",
    "reservationPolicyTypeId": "string",
    "name": "string",
    "description": "string",
    "id": "string",
    "version": 0
}
string As date-time As date-time
lastUpdated
Optional

lastUpdated

string As date-time As date-time
createdDate
Optional

createdDate

string
reservationPolicyTypeId
Optional

reservationPolicyTypeId

string
name
Optional

name

string
description
Optional

description

string
id
Optional

id

integer As int64 As int64
version
Optional

version


204

The reservation policy is updated.

Returns reservationPolicy of type(s) */*
{
    "lastUpdated": "string",
    "createdDate": "string",
    "reservationPolicyTypeId": "string",
    "name": "string",
    "description": "string",
    "id": "string",
    "version": 0
}
string As date-time As date-time
lastUpdated
Optional

lastUpdated

string As date-time As date-time
createdDate
Optional

createdDate

string
reservationPolicyTypeId
Optional

reservationPolicyTypeId

string
name
Optional

name

string
description
Optional

description

string
id
Optional

id

integer As int64 As int64
version
Optional

version