yandex_cdn_origin_group (Data Source)
Статья создана
Обновлена 20 октября 2025 г.
Get information about a Yandex CDN Origin Group. For more information, see the official documentation.
Важно
One of origin_group_id or name should be specified.
Example usage
//
// Get information about existing CDN Origin Group
//
data "yandex_cdn_origin_group" "my_group" {
origin_group_id = "some_instance_id"
}
output "origin_group_name" {
value = data.yandex_cdn_origin_group.my_group.name
}
Schema
Optional
folder_id(String) The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.name(String) The resource name.origin_group_id(String) The ID of a specific origin group.
Read-Only
id(String) The ID of this resource.origin(Set of Object) A set of available origins. (see below for nested schema)provider_type(String) CDN provider is a content delivery service provideruse_next(Boolean) If the option is active (has true value), in case the origin responds with 4XX or 5XX codes, use the next origin from the list.
Nested Schema for origin
Read-Only:
-
backup(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. -
enabled(Boolean) The origin is enabled and used as a source for the CDN. Defaultenabled. -
origin_group_id(String) The ID of a specific origin group. -
source(String) IP address or Domain name of your origin and the port.