Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.cdn.getBlockedRegions
Explore with Pulumi AI
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 dictionaryThe 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.
Ali Cloud. Cdn. Outputs. Get Blocked Regions Region>  
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Language string
 - Regions
[]Get
Blocked Regions Region  
- id String
 - The provider-assigned unique ID for this managed resource.
 - language String
 - regions
List<Get
Blocked Regions Region>  
- id string
 - The provider-assigned unique ID for this managed resource.
 - language string
 - regions
Get
Blocked Regions Region[]  
- id str
 - The provider-assigned unique ID for this managed resource.
 - language str
 - regions
Sequence[Get
Blocked Regions Region]  
- 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.
 - Countries
And stringRegions  - National region abbreviation.
 - Countries
And stringRegions Name  - The name of the country and region.
 
- Continent string
 - The region to which the country belongs.
 - Countries
And stringRegions  - National region abbreviation.
 - Countries
And stringRegions Name  - The name of the country and region.
 
- continent String
 - The region to which the country belongs.
 - countries
And StringRegions  - National region abbreviation.
 - countries
And StringRegions Name  - The name of the country and region.
 
- continent string
 - The region to which the country belongs.
 - countries
And stringRegions  - National region abbreviation.
 - countries
And stringRegions Name  - The name of the country and region.
 
- continent str
 - The region to which the country belongs.
 - countries_
and_ strregions  - National region abbreviation.
 - countries_
and_ strregions_ name  - The name of the country and region.
 
- continent String
 - The region to which the country belongs.
 - countries
And StringRegions  - National region abbreviation.
 - countries
And StringRegions Name  - 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 
alicloudTerraform Provider.