vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs
vkcs.getCdnOriginGroup
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const originGroup = vkcs.getCdnOriginGroup({
name: vkcs_cdn_origin_group.origin_group.name,
});
import pulumi
import pulumi_vkcs as vkcs
origin_group = vkcs.get_cdn_origin_group(name=vkcs_cdn_origin_group["origin_group"]["name"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.LookupCdnOriginGroup(ctx, &vkcs.LookupCdnOriginGroupArgs{
Name: vkcs_cdn_origin_group.Origin_group.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var originGroup = Vkcs.GetCdnOriginGroup.Invoke(new()
{
Name = vkcs_cdn_origin_group.Origin_group.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetCdnOriginGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var originGroup = VkcsFunctions.getCdnOriginGroup(GetCdnOriginGroupArgs.builder()
.name(vkcs_cdn_origin_group.origin_group().name())
.build());
}
}
variables:
originGroup:
fn::invoke:
function: vkcs:getCdnOriginGroup
arguments:
name: ${vkcs_cdn_origin_group.origin_group.name}
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(name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCdnOriginGroupResult
def get_cdn_origin_group_output(name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = 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: vkcs:index/getCdnOriginGroup:getCdnOriginGroup
arguments:
# arguments dictionary
The following arguments are supported:
getCdnOriginGroup Result
The following output properties are available:
Supporting Types
GetCdnOriginGroupOrigin
- Backup bool
- boolean → Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable.
- Enabled bool
- boolean → Enables or disables an origin source in the origin group.
- Source string
- string → IP address or domain name of the origin and the port, if custom port is used.
- Backup bool
- boolean → Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable.
- Enabled bool
- boolean → Enables or disables an origin source in the origin group.
- Source string
- string → IP address or domain name of the origin and the port, if custom port is used.
- backup Boolean
- boolean → Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable.
- enabled Boolean
- boolean → Enables or disables an origin source in the origin group.
- source String
- string → IP address or domain name of the origin and the port, if custom port is used.
- backup boolean
- boolean → Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable.
- enabled boolean
- boolean → Enables or disables an origin source in the origin group.
- source string
- string → IP address or domain name of the origin and the port, if custom port is used.
- backup bool
- boolean → Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable.
- enabled bool
- boolean → Enables or disables an origin source in the origin group.
- source str
- string → IP address or domain name of the origin and the port, if custom port is used.
- backup Boolean
- boolean → Defines whether the origin is a backup, meaning that it will not be used until one of active origins become unavailable.
- enabled Boolean
- boolean → Enables or disables an origin source in the origin group.
- source String
- string → IP address or domain name of the origin and the port, if custom port is used.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.