catalog
GET /v1/catalog/compute
List the sellable cloud machine sizes.
Նույնականացում
Այս վերջնակետը հանրային է: Այն չի պահանջում որևէ հավատարմագիր կամ կազմակերպություն. դա այն է, ինչ կարդում են մեր սեփական մարքեթինգային կայքը և արհեստական բանականության պատասխանների շարժիչները:
Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:
Փորձել
Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:
curl -X GET https://api.zinndigital.com/v1/catalog/computeՄուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը API վահանակում
Մանրամասներ
Every Zinn® Cloud size a customer may buy, with every cadence it is priced at, read straight from the catalogue rows an operator edits in admin. Public — no authentication, no tenant, no principal — and cacheable exactly like listCatalogPlans (strong ETag + max-age=60). This is not getComputeCatalogue made public, and it deliberately cannot become it. That endpoint (GET /v1/compute/catalogue, sites.view) reads the provider matrix, which is an org-scoped live call to the vendor with the org's own credentials. This one is a pure read of our own plan and price rows, which is why it can be served to a logged-out visitor at all. The corollary is part of the contract: this endpoint returns no providers and no data centres. Both are defaulted server-side at checkout, once an org exists to read them with. Only sizes that can actually be bought are listed. A size with no vendor spec token, or with no price at any sellable cadence, is one the cart refuses — listing it would be a configurator that offers a size and then answers 422. Returned whole, not cursor-paginated, matching listCatalogPlans: a configurator needs every size at once to render a comparison, not 50 at a time.
Պարամետրեր
| Անուն | Տեսակ | Պահանջվում է | Ինչ է դա |
|---|---|---|---|
If-None-Match (header) | string | Ոչ | A previously returned ETag; a match responds 304. |
Պատասխան
| Անուն | Տեսակ | Պահանջվում է | Ինչ է դա |
|---|---|---|---|
data | PublicComputeTier[] | Այո | — |
Այս վերջնակետի կողմից վերադարձվող սխալները
429