Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
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
})
}
Example coming soon!
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!;
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)
Example 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)
public static Output<GetCdnOriginGroupResult> getCdnOriginGroup(GetCdnOriginGroupArgs args, InvokeOptions options)
fn::invoke:
function: yandex:index/getCdnOriginGroup:getCdnOriginGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- Name of the origin group.
- Origin
Group intId - The ID of a specific origin group.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- Name of the origin group.
- Origin
Group intId - The ID of a specific origin group.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- Name of the origin group.
- origin
Group IntegerId - The ID of a specific origin group.
- folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name string
- Name of the origin group.
- origin
Group numberId - 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_ intid - The ID of a specific origin group.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- Name of the origin group.
- origin
Group NumberId - The ID of a specific origin group.
getCdnOriginGroup Result
The following output properties are available:
- Folder
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Origin
Group intId - Origins
List<Get
Cdn Origin Group Origin> - Use
Next bool
- Folder
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Origin
Group intId - Origins
[]Get
Cdn Origin Group Origin - Use
Next bool
- folder
Id String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- origin
Group IntegerId - origins
List<Get
Cdn Origin Group Origin> - use
Next Boolean
- folder
Id string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- origin
Group numberId - origins
Get
Cdn Origin Group Origin[] - use
Next boolean
- folder_
id str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- origin_
group_ intid - origins
Sequence[Get
Cdn Origin Group Origin] - use_
next bool
- folder
Id String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- origin
Group NumberId - origins List<Property Map>
- use
Next Boolean
Supporting Types
GetCdnOriginGroupOrigin
- Origin
Group intId - The ID of a specific origin group.
- Source string
- Backup bool
- Enabled bool
- Origin
Group intId - The ID of a specific origin group.
- Source string
- Backup bool
- Enabled bool
- origin
Group IntegerId - The ID of a specific origin group.
- source String
- backup Boolean
- enabled Boolean
- origin
Group numberId - The ID of a specific origin group.
- source string
- backup boolean
- enabled boolean
- origin_
group_ intid - The ID of a specific origin group.
- source str
- backup bool
- enabled bool
- origin
Group NumberId - 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
yandexTerraform Provider.
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
