List or watch marketplacecontracts
const url = 'https://example.com/apis/nodus.dev/v1/marketplacecontracts';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/apis/nodus.dev/v1/marketplacecontractsParameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”Responses
Section titled “ Responses ”OK
object
MarketplaceContract is a versioned reservation proposal confirmed by both organizations. It records agreement on terms; it does not charge, provision, or execute an external legal document.
object
object
object
object
object
object
object
MarketplaceContractSpec freezes the parties, resource identity, dates and commercial terms.
object
BuyerName is the reviewed buyer display name.
BuyerOrg and SellerOrg are Nodus organization IDs, not infrastructure provider credentials.
CapacityUSD is the fixed seller amount; the marketplace uses transparent fees.
CostAllowanceUSD is the variable-cost allowance used by the margin check.
EndsAt is the exclusive reservation end.
ExpiresAt is the deadline for both confirmations.
Hardware, Region and Network describe the agreed configuration.
Listing names the seller’s source entry.
ListingGeneration pins the reviewed availability.
ListingUID pins the original listing, including across deletion and recreation.
MemoryGiB is the memory per complete unit.
Network is the agreed interconnect and connectivity.
Quantity is the number of complete configuration units reserved.
Region is the agreed geographic region.
Request names the buyer’s source entry.
RequestGeneration pins the reviewed requirements.
RequestUID pins the original demand across deletion and recreation.
SellerName is the reviewed seller display name.
SellerOrg identifies the counterparty authorized to confirm the supply side.
StartsAt is the inclusive reservation start.
Terms states delivery, support, cancellation, payment, and tax responsibilities.
TotalUSD is the fixed customer price, excluding any explicitly stated taxes.
MarketplaceContractStatus is the approval history of one immutable proposal.
object
BuyerConfirmedAt records the buyer’s confirmation.
BuyerConfirmedBy records the Nodus user ID for the confirmation.
DeclinedAt closes a proposal before both confirmations.
DeclinedBy records the Nodus user who closed the proposal.
SellerConfirmedAt records the seller’s confirmation.
SellerConfirmedBy records the Nodus user ID for the confirmation.
object
object
Example generated
{ "apiVersion": "example", "items": [ { "apiVersion": "example", "kind": "example", "metadata": { "annotations": { "additionalProperty": "example" }, "creationTimestamp": "example", "deletionGracePeriodSeconds": 1, "deletionTimestamp": "example", "finalizers": [ "example" ], "generateName": "example", "generation": 1, "labels": { "additionalProperty": "example" }, "managedFields": [ { "apiVersion": "example", "fieldsType": "example", "fieldsV1": { "additionalProperty": "example" }, "manager": "example", "operation": "example", "subresource": "example", "time": "example" } ], "name": "example", "namespace": "example", "ownerReferences": [ { "apiVersion": "example", "blockOwnerDeletion": true, "controller": true, "kind": "example", "name": "example", "uid": "example" } ], "resourceVersion": "example", "selfLink": "example", "uid": "example" }, "spec": { "buyerName": "example", "buyerOrg": "example", "capacityUSD": "example", "costAllowanceUSD": "example", "endsAt": "example", "expiresAt": "example", "hardware": "example", "listing": "example", "listingGeneration": 1, "listingUID": "example", "memoryGiB": 1, "network": "example", "quantity": 1, "region": "example", "request": "example", "requestGeneration": 1, "requestUID": "example", "sellerName": "example", "sellerOrg": "example", "startsAt": "example", "terms": "example", "totalUSD": "example" }, "status": { "buyerConfirmedAt": "example", "buyerConfirmedBy": "example", "declinedAt": "example", "declinedBy": "example", "sellerConfirmedAt": "example", "sellerConfirmedBy": "example" } } ], "kind": "example", "metadata": { "continue": "example", "remainingItemCount": 1, "resourceVersion": "example", "selfLink": "example", "shardInfo": { "selector": "example" } }}default
Section titled “ default ”An error: a metav1.Status whose reason is a registered code.
Status is the error body of every API response: a Kubernetes metav1.Status (so kubectl and client-go understand it) plus three top-level extensions that those clients ignore (ADR-028).
object
object
object
Docs is the URL of the code’s docs page.
Fix says what to do next, for example a CLI command or the field to change.
object
object
RequestID identifies the request in logs and support tickets.
Example generated
{ "apiVersion": "example", "code": 1, "details": { "causes": [ { "field": "example", "message": "example", "reason": "example" } ], "group": "example", "kind": "example", "name": "example", "retryAfterSeconds": 1, "uid": "example" }, "docs": "example", "fix": "example", "kind": "example", "message": "example", "metadata": { "continue": "example", "remainingItemCount": 1, "resourceVersion": "example", "selfLink": "example", "shardInfo": { "selector": "example" } }, "reason": "example", "requestId": "example", "status": "example"}