1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getCdnOriginGroup
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getCdnOriginGroup

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    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:

    Name string
    required string → Name of the origin group.
    Region string
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    Name string
    required string → Name of the origin group.
    Region string
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    name String
    required string → Name of the origin group.
    region String
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    name string
    required string → Name of the origin group.
    region string
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    name str
    required string → Name of the origin group.
    region str
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.
    name String
    required string → Name of the origin group.
    region String
    optional string → The region in which to obtain the CDN client. If omitted, the region argument of the provider is used.

    getCdnOriginGroup Result

    The following output properties are available:

    Id double
    number → ID of the origin group.
    Name string
    Origins List<GetCdnOriginGroupOrigin>
    list → List of origin sources in the origin group.
    Region string
    UseNext bool
    boolean → Defines whether to use the next origin from the origin group if origin responds with 4XX or 5XX codes.
    Id float64
    number → ID of the origin group.
    Name string
    Origins []GetCdnOriginGroupOrigin
    list → List of origin sources in the origin group.
    Region string
    UseNext bool
    boolean → Defines whether to use the next origin from the origin group if origin responds with 4XX or 5XX codes.
    id Double
    number → ID of the origin group.
    name String
    origins List<GetCdnOriginGroupOrigin>
    list → List of origin sources in the origin group.
    region String
    useNext Boolean
    boolean → Defines whether to use the next origin from the origin group if origin responds with 4XX or 5XX codes.
    id number
    number → ID of the origin group.
    name string
    origins GetCdnOriginGroupOrigin[]
    list → List of origin sources in the origin group.
    region string
    useNext boolean
    boolean → Defines whether to use the next origin from the origin group if origin responds with 4XX or 5XX codes.
    id float
    number → ID of the origin group.
    name str
    origins Sequence[GetCdnOriginGroupOrigin]
    list → List of origin sources in the origin group.
    region str
    use_next bool
    boolean → Defines whether to use the next origin from the origin group if origin responds with 4XX or 5XX codes.
    id Number
    number → ID of the origin group.
    name String
    origins List<Property Map>
    list → List of origin sources in the origin group.
    region String
    useNext Boolean
    boolean → Defines whether to use the next origin from the origin group if origin responds with 4XX or 5XX codes.

    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.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs