yandex logo
Yandex v0.13.0, Feb 22 22

yandex.getCdnOriginGroup

Get information about a Yandex CDN Origin Group. For more information, see the official documentation.

NOTE: CDN provider must be activated prior usage of CDN resources, either via UI console or via yc cli command: yc cdn provider activate --folder-id <folder-id> --type gcore

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var myGroup = Output.Create(Yandex.GetCdnOriginGroup.InvokeAsync(new Yandex.GetCdnOriginGroupArgs
        {
            OriginGroupId = "some_instance_id",
        }));
        this.OriginGroupName = myGroup.Apply(myGroup => myGroup.Name);
    }

    [Output("originGroupName")]
    public Output<string> OriginGroupName { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "some_instance_id"
		myGroup, err := yandex.LookupCdnOriginGroup(ctx, &GetCdnOriginGroupArgs{
			OriginGroupId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("originGroupName", myGroup.Name)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_yandex as yandex

my_group = yandex.get_cdn_origin_group(origin_group_id="some_instance_id")
pulumi.export("originGroupName", my_group.name)
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const myGroup = pulumi.output(yandex.getCdnOriginGroup({
    originGroupId: Number.parseFloat("some_instance_id"),
}));

export const originGroupName = myGroup.name!;

Coming soon!

Using getCdnOriginGroup

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getCdnOriginGroup(args: GetCdnOriginGroupArgs, opts?: InvokeOptions): Promise<GetCdnOriginGroupResult>
function getCdnOriginGroupOutput(args: GetCdnOriginGroupOutputArgs, opts?: InvokeOptions): Output<GetCdnOriginGroupResult>
def get_cdn_origin_group(folder_id: Optional[str] = None,
                         name: Optional[str] = None,
                         origin_group_id: Optional[int] = None,
                         opts: Optional[InvokeOptions] = None) -> GetCdnOriginGroupResult
def get_cdn_origin_group_output(folder_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         origin_group_id: Optional[pulumi.Input[int]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetCdnOriginGroupResult]
func LookupCdnOriginGroup(ctx *Context, args *LookupCdnOriginGroupArgs, opts ...InvokeOption) (*LookupCdnOriginGroupResult, error)
func LookupCdnOriginGroupOutput(ctx *Context, args *LookupCdnOriginGroupOutputArgs, opts ...InvokeOption) LookupCdnOriginGroupResultOutput

> Note: This function is named LookupCdnOriginGroup in the Go SDK.

public static class GetCdnOriginGroup 
{
    public static Task<GetCdnOriginGroupResult> InvokeAsync(GetCdnOriginGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetCdnOriginGroupResult> Invoke(GetCdnOriginGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCdnOriginGroupResult> getCdnOriginGroup(GetCdnOriginGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: yandex:index/getCdnOriginGroup:getCdnOriginGroup
  arguments:
    # arguments dictionary

The following arguments are supported:

FolderId string

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

Name string

Name of the origin group.

OriginGroupId int

The ID of a specific origin group.

FolderId string

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

Name string

Name of the origin group.

OriginGroupId int

The ID of a specific origin group.

folderId String

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

name String

Name of the origin group.

originGroupId Integer

The ID of a specific origin group.

folderId string

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

name string

Name of the origin group.

originGroupId number

The ID of a specific origin group.

folder_id str

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

name str

Name of the origin group.

origin_group_id int

The ID of a specific origin group.

folderId String

Folder that the resource belongs to. If value is omitted, the default provider folder is used.

name String

Name of the origin group.

originGroupId Number

The ID of a specific origin group.

getCdnOriginGroup Result

The following output properties are available:

FolderId string
Id string

The provider-assigned unique ID for this managed resource.

Name string
OriginGroupId int
Origins List<GetCdnOriginGroupOrigin>
UseNext bool
FolderId string
Id string

The provider-assigned unique ID for this managed resource.

Name string
OriginGroupId int
Origins []GetCdnOriginGroupOrigin
UseNext bool
folderId String
id String

The provider-assigned unique ID for this managed resource.

name String
originGroupId Integer
origins List<GetCdnOriginGroupOrigin>
useNext Boolean
folderId string
id string

The provider-assigned unique ID for this managed resource.

name string
originGroupId number
origins GetCdnOriginGroupOrigin[]
useNext boolean
folder_id str
id str

The provider-assigned unique ID for this managed resource.

name str
origin_group_id int
origins Sequence[GetCdnOriginGroupOrigin]
use_next bool
folderId String
id String

The provider-assigned unique ID for this managed resource.

name String
originGroupId Number
origins List<Property Map>
useNext Boolean

Supporting Types

GetCdnOriginGroupOrigin

OriginGroupId int

The ID of a specific origin group.

Source string
Backup bool
Enabled bool
OriginGroupId int

The ID of a specific origin group.

Source string
Backup bool
Enabled bool
originGroupId Integer

The ID of a specific origin group.

source String
backup Boolean
enabled Boolean
originGroupId number

The ID of a specific origin group.

source string
backup boolean
enabled boolean
origin_group_id int

The ID of a specific origin group.

source str
backup bool
enabled bool
originGroupId Number

The ID of a specific origin group.

source String
backup Boolean
enabled Boolean

Package Details

Repository
Yandex pulumi/pulumi-yandex
License
Apache-2.0
Notes

This Pulumi package is based on the yandex Terraform Provider.