Download OpenAPI specification:Download
Defines resources and methods for offering and bidding physical servers in a Marketplace
Obtain list of offers from everyone. If admin is making this request, show all offers with all statuses. In case of a non-admin user show offers with status 'available' only.
successful operation
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Adds attributes
offer to be published.
provider_offer_id | string <UUID> |
provider_id | string <UUID> |
project_id | string <UUID> project that created the offer |
server_id | string <UUID> unique ID of the physical server |
start_time | string <(yyyy-mm-ddThh:mm:ss-/+hh)> ISO-8601 DateTime format with timezone difference from UTC eg '(Date-16 July 2016, Time 8-30 pm Boston time)' |
end_time | string <(yyyy-mm-ddThh:mm:ss-/+hh)> ISO-8601 DateTime format with timezone difference from UTC eg '(Date-16 August 2016, Time 8-30 pm Boston time)' |
server_config | object (Server_config) |
cost | number <float64> States floor price, the minimum asking price. Rate is charged per hour. |
Offer added to marketplace successfully.
Invalid input data.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Admin can query any offer by its offer_id. Non-admin user can query any 'available' offer and any offer that she herself created.
Succesful operation.
Invalid
You do not have sufficient privileges to access this resource! Will occur when an non-admin user is trying to access an offer created by other user and the status of the offer is anything else except 'available'
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Sets the status field of the offer to "cancelled"
Offer cancelled successfully
Invalid
You do not have sufficient privileges to execute this operation. Non-admin or non-owner user cannot update the status field of the offer.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Matching Service (available --> used)
offer to be published.
status | string Enum:"available" "matched" "used" "cancelled" "expired" |
Returns complete info of the offer showing updated status field.
Invalid
You do not have sufficient privileges to execute this operation.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Admin can list all bids. Matching Service Engine and non-creator users can only see the list of bids with status available
.
Succesful operation.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Adds attributes
bid to be published.
creator_bid_id | string <UUID> id generated by the user creating the bid. |
project_id | string <UUID> project that created the bid |
start_time | string <(yyyy-mm-ddThh:mm:ss-/+hh)> ISO-8601 DateTime format with timezone difference from UTC eg '(Date-16 July 2016, Time 8-30 pm Boston time)' |
end_time | string <(yyyy-mm-ddThh:mm:ss-/+hh)> ISO-8601 DateTime format with timezone difference from UTC eg '(Date-16 August 2016, Time 8-30 pm Boston time)' |
duration | integer <int64> Number of seconds available anytime between 'Start_time' and 'End_time' |
server_quantity | integer <int32> |
server_config_query | Array of strings (bid_hw_config) inspired by http://jmespath.org/examples.html |
cost | number <float64> States ceiling price, the maximum asking price. Rate is charged per hour. |
Bid added to marketplace successfully.
Invalid input data.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Admin can query any bid by its bid_id. Non-admin user can query any 'available' bid and any bid that he created himself.
Succesful operation.
Invalid
You do not have sufficient privileges to access this resource! Will occur when an non-admin user is trying to access a bid created by other user and the status of the bid is anything else except 'available'
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Sets the status field of the bid to "cancelled"
Bid cancelled successfully
Invalid
You do not have sufficient privileges to execute this operation. Non-admin or non-owner user cannot update the status field of the bid.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Matching Service (available --> used)
Bid to be updated.
status | string Enum:"available" "matched" "used" "cancelled" "expired" |
Returns complete info of the bid showing updated status field.
Invalid
You do not have sufficient privileges to execute this operation.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Admin can list all contracts. Non-admin users can only see the list of contracts that involve the offers and bids they made.
Succesful operation.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
match_maker reads bids and offers from marketplace-service database. When a match between bid and offer is found, a contract is created.
bid | object (Bid) |
offers | Array of objects (Offer) |
Updates users whose bids and offers are involved in the contract.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Admin can query any contract by its contract_id. Non-admin user can query any contract that involves the offers or bid they created.
Succesful operation.
Invalid
You do not have sufficient privileges to access this resource! Will occur when an non-admin user is trying to access a contract created by other user.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Matching Service (executed --> finished)
change status of the contract.
status | string Enum:"matched" "executed" "finished" "expired" "cancelled" |
Returns complete info of the bid showing updated status field.
Invalid
You do not have sufficient privileges to execute this operation.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking
Sets the status field of the contract to "cancelled"
Contract cancelled successfully
Invalid
You do not have sufficient privileges to execute this operation. Non-admin or non-owner user cannot update the status field of the bid.
SwaggerHub API Auto Mocking
SwaggerHub API Auto Mocking