Yandex Cloud
  • Сервисы
  • Решения
  • Почему Yandex Cloud
  • Сообщество
  • Тарифы
  • Документация
  • Связаться с нами
Подключиться
Language / Region
© 2022 ООО «Яндекс.Облако»
Yandex Cloud CDN
  • Начало работы
  • Пошаговые инструкции
    • Все инструкции
    • Ресурсы
      • Создать ресурс
      • Изменить основные настройки ресурса
      • Настроить кеширование ресурса
      • Настроить выгрузку логов
      • Предзагрузить файлы на CDN-серверы
      • Очистить кеш ресурса
      • Настроить заголовки запросов и ответов
      • Настроить CORS при ответах клиентам
      • Настроить HTTP-методы
      • Включить сжатие файлов
      • Включить сегментацию файлов
      • Включить экранирование источников
      • Отключить ресурс
      • Удалить ресурс
    • Группы источников
      • Создать группу источников
      • Изменить группу источников
      • Подключить группу источников к ресурсу
      • Удалить группу источников
  • Практические руководства
    • Публикация обновлений для игр
    • Интеграция L7-балансировщика с CDN и Object Storage
    • Сине-зеленое и канареечное развертывание версий сервиса
  • Концепции
    • Обзор сервиса
    • Ресурс
    • Источники и их группы
    • Обмен данными между клиентами и CDN
      • Обзор
      • TLS-сертификаты
      • CORS
      • Сжатие контента
    • Обмен данными между CDN и источниками
      • Обзор
      • Заголовок Host
      • Сегментация контента
      • Экранирование источников
    • Кеширование контента
    • Выгрузка логов
    • Квоты и лимиты
  • Управление доступом
  • Решение проблем
  • Справочник API
    • Аутентификация в API
    • gRPC (англ.)
      • Overview
      • CacheService
      • OriginGroupService
      • OriginService
      • ProviderService
      • RawLogsService
      • ResourceService
      • OperationService
    • REST (англ.)
      • Overview
      • Cache
        • Overview
        • prefetch
        • purge
      • OriginGroup
        • Overview
        • create
        • delete
        • get
        • list
        • update
      • Origin
        • Overview
        • create
        • delete
        • get
        • list
        • update
      • Provider
        • Overview
        • activate
        • listActivated
      • RawLogs
        • Overview
        • activate
        • deactivate
        • get
        • update
      • Resource
        • Overview
        • create
        • delete
        • get
        • getProviderCName
        • list
        • update
  • Правила тарификации
  1. Справочник API
  2. REST (англ.)
  3. OriginGroup
  4. get

Method get

Статья создана
Yandex Cloud
  • HTTP request
  • Path parameters
  • Query parameters
  • Response

Gets origin group with specified origin group id.

HTTP request

GET https://cdn.api.cloud.yandex.net/cdn/v1/originGroups/{originGroupId}

Path parameters

Parameter Description
originGroupId ID of the origin group to return. To get a origin group ID, make a list request. Value must be greater than 0.

Query parameters

Parameter Description
folderId Required. ID of the folder that the origin group belongs to. The maximum string length in characters is 50.

Response

HTTP Code: 200 - OK

{
  "id": "string",
  "folderId": "string",
  "name": "string",
  "useNext": true,
  "origins": [
    {
      "id": "string",
      "originGroupId": "string",
      "source": "string",
      "enabled": true,
      "backup": true,
      "meta": {

        // `origins[].meta` includes only one of the fields `common`, `bucket`, `website`, `balancer`
        "common": {
          "name": "string"
        },
        "bucket": {
          "name": "string"
        },
        "website": {
          "name": "string"
        },
        "balancer": {
          "id": "string"
        },
        // end of the list of possible fields`origins[].meta`

      }
    }
  ]
}

Origin group parameters. For details about the concept, see documentation.

Field Description
id string (int64)

ID of the origin group. Generated at creation time.

folderId string

ID of the folder that the origin group belongs to.

name string

Name of the origin group.

useNext boolean (boolean)

This option have two possible conditions: true - the option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false - the option is disabled.

origins[] object

An origin. For details about the concept, see documentation.

origins[].
id
string (int64)

ID of the origin.

origins[].
originGroupId
string (int64)

ID of the parent origin group.

origins[].
source
string

IP address or Domain name of your origin and the port (if custom). Used if meta variant is common.

origins[].
enabled
boolean (boolean)

The setting allows to enable or disable an Origin source in the Origins group.

It has two possible values:

True - The origin is enabled and used as a source for the CDN. An origins group must contain at least one enabled origin. False - The origin is disabled and the CDN is not using it to pull content.

origins[].
backup
boolean (boolean)

Specifies whether the origin is used in its origin group as backup. A backup origin is used when one of active origins becomes unavailable.

origins[].
meta
object

Set up origin of the content.

Origin type. For details about the concept, see documentation.

origins[].
meta.
common
object
An Object Storage bucket configured as a static site hosting.
origins[].meta includes only one of the fields common, bucket, website, balancer

Origin info. For details about the concept, see documentation.

origins[].
meta.
common.
name
string

Name of the origin.

origins[].
meta.
bucket
object
A server with a domain name linked to it
origins[].meta includes only one of the fields common, bucket, website, balancer

Origin info. For details about the concept, see documentation.

origins[].
meta.
bucket.
name
string

Name of the origin.

origins[].
meta.
website
object
An Object Storage bucket not configured as a static site hosting.
origins[].meta includes only one of the fields common, bucket, website, balancer

Origin info. For details about the concept, see documentation.

origins[].
meta.
website.
name
string

Name of the origin.

origins[].
meta.
balancer
object
An L7 load balancer from Application Load Balancer. CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings.
origins[].meta includes only one of the fields common, bucket, website, balancer

Application Load Balancer origin info. For details about the concept, see documentation.

origins[].
meta.
balancer.
id
string

ID of the origin.

Была ли статья полезна?

Language / Region
© 2022 ООО «Яндекс.Облако»
В этой статье:
  • HTTP request
  • Path parameters
  • Query parameters
  • Response