reseller

PUT /v1/reseller/edge-policy

Turn CDN or DNS networks on and off for your clients.

Барлық reseller соңғы нүктелері

Аутентификация

API кілтін bearer токені ретінде жіберіңіз. Кілтте reseller.manage рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.

Ұйымыңыздың идентификаторы орналасатын жер

Бұл соңғы нүкте сұрау параметрі ретінде org_id мәнін қабылдайды. Оны бос қалдырсаңыз, шақыру бүкіл жалға алушы тармағын қамтиды; шақыруды бір ұйымға шектеу үшін оны жіберіңіз.

Сіздің ұйым идентификаторыңыз басқару панеліндегі API кілттері экранында, кілттің өзінің жанында орналасқан. Бұл сіз жасайтын әрбір шақырудағы бірдей идентификатор.

Әрекет етіп көру

Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.

curl -X PUT https://api.zinndigital.com/v1/reseller/edge-policy \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "disabled": <ResellerEdgeVendorRef[]> }'

Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз

Мәліметтер

Send the **complete** set of networks you are turning off; anything absent is on. This is a placement rule, not a display preference: a network you turn off disappears from your clients' site-creation picker, is refused if they name it directly, and is not used when Zinn® places a new site. **Sites already running are never moved** — a live site keeps the network it is on, so nothing goes down when you change what you offer. You can only narrow what your pool serves, never add a network, and turning off every network in a category is refused because your clients could then create no sites at all. Requires `reseller.manage`.

Параметрлер

АтыTүріМіндеттіМазмұны
org_id (query)UuidЖоқWhich of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404 r…

Сұрау денесі

АтыTүріМіндеттіМазмұны
disabledResellerEdgeVendorRef[]ИәThe **complete** set of networks to turn off. Anything absent is turned on, so send the full state rather than a change — two screens open at once cannot then leave a switch beh…

Жауап

АтыTүріМіндеттіМазмұны
dataResellerEdgeVendor[]ИәEvery CDN and DNS network your clients could be placed on, in category then alphabetical order. The list reflects **your** pool: your own connected accounts if you have any, oth…

Бұл соңғы нүкте қайтара алатын қателер

401 · 403 · 404 · 422 · 429