1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cdn
  5. getBlockedRegions
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cdn.getBlockedRegions

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    This data source provides the Cdn blocked regions.

    NOTE: Available in v1.173.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.cdn.getBlockedRegions({
        language: "zh",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.cdn.get_blocked_regions(language="zh")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cdn"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cdn.GetBlockedRegions(ctx, &cdn.GetBlockedRegionsArgs{
    			Language: "zh",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Cdn.GetBlockedRegions.Invoke(new()
        {
            Language = "zh",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cdn.CdnFunctions;
    import com.pulumi.alicloud.cdn.inputs.GetBlockedRegionsArgs;
    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 example = CdnFunctions.getBlockedRegions(GetBlockedRegionsArgs.builder()
                .language("zh")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: alicloud:cdn:getBlockedRegions
          Arguments:
            language: zh
    

    Using getBlockedRegions

    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 getBlockedRegions(args: GetBlockedRegionsArgs, opts?: InvokeOptions): Promise<GetBlockedRegionsResult>
    function getBlockedRegionsOutput(args: GetBlockedRegionsOutputArgs, opts?: InvokeOptions): Output<GetBlockedRegionsResult>
    def get_blocked_regions(language: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetBlockedRegionsResult
    def get_blocked_regions_output(language: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetBlockedRegionsResult]
    func GetBlockedRegions(ctx *Context, args *GetBlockedRegionsArgs, opts ...InvokeOption) (*GetBlockedRegionsResult, error)
    func GetBlockedRegionsOutput(ctx *Context, args *GetBlockedRegionsOutputArgs, opts ...InvokeOption) GetBlockedRegionsResultOutput

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

    public static class GetBlockedRegions 
    {
        public static Task<GetBlockedRegionsResult> InvokeAsync(GetBlockedRegionsArgs args, InvokeOptions? opts = null)
        public static Output<GetBlockedRegionsResult> Invoke(GetBlockedRegionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBlockedRegionsResult> getBlockedRegions(GetBlockedRegionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cdn/getBlockedRegions:getBlockedRegions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Language string
    The language. Valid values: zh, en, jp.
    Language string
    The language. Valid values: zh, en, jp.
    language String
    The language. Valid values: zh, en, jp.
    language string
    The language. Valid values: zh, en, jp.
    language str
    The language. Valid values: zh, en, jp.
    language String
    The language. Valid values: zh, en, jp.

    getBlockedRegions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Language string
    Regions List<Pulumi.AliCloud.Cdn.Outputs.GetBlockedRegionsRegion>
    Id string
    The provider-assigned unique ID for this managed resource.
    Language string
    Regions []GetBlockedRegionsRegion
    id String
    The provider-assigned unique ID for this managed resource.
    language String
    regions List<GetBlockedRegionsRegion>
    id string
    The provider-assigned unique ID for this managed resource.
    language string
    regions GetBlockedRegionsRegion[]
    id str
    The provider-assigned unique ID for this managed resource.
    language str
    regions Sequence[GetBlockedRegionsRegion]
    id String
    The provider-assigned unique ID for this managed resource.
    language String
    regions List<Property Map>

    Supporting Types

    GetBlockedRegionsRegion

    Continent string
    The region to which the country belongs.
    CountriesAndRegions string
    National region abbreviation.
    CountriesAndRegionsName string
    The name of the country and region.
    Continent string
    The region to which the country belongs.
    CountriesAndRegions string
    National region abbreviation.
    CountriesAndRegionsName string
    The name of the country and region.
    continent String
    The region to which the country belongs.
    countriesAndRegions String
    National region abbreviation.
    countriesAndRegionsName String
    The name of the country and region.
    continent string
    The region to which the country belongs.
    countriesAndRegions string
    National region abbreviation.
    countriesAndRegionsName string
    The name of the country and region.
    continent str
    The region to which the country belongs.
    countries_and_regions str
    National region abbreviation.
    countries_and_regions_name str
    The name of the country and region.
    continent String
    The region to which the country belongs.
    countriesAndRegions String
    National region abbreviation.
    countriesAndRegionsName String
    The name of the country and region.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi