1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cdn
  5. getBlockedRegions
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cdn.getBlockedRegions

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 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",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cdn.get_blocked_regions(language="zh")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:cdn:getBlockedRegions
      arguments:
        language: zh
Copy

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>
Copy
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]
Copy
func GetBlockedRegions(ctx *Context, args *GetBlockedRegionsArgs, opts ...InvokeOption) (*GetBlockedRegionsResult, error)
func GetBlockedRegionsOutput(ctx *Context, args *GetBlockedRegionsOutputArgs, opts ...InvokeOption) GetBlockedRegionsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetBlockedRegionsResult> getBlockedRegions(GetBlockedRegionsArgs args, InvokeOptions options)
public static Output<GetBlockedRegionsResult> getBlockedRegions(GetBlockedRegionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cdn/getBlockedRegions:getBlockedRegions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Language
This property is required.
Changes to this property will trigger replacement.
string
The language. Valid values: zh, en, jp.
Language
This property is required.
Changes to this property will trigger replacement.
string
The language. Valid values: zh, en, jp.
language
This property is required.
Changes to this property will trigger replacement.
String
The language. Valid values: zh, en, jp.
language
This property is required.
Changes to this property will trigger replacement.
string
The language. Valid values: zh, en, jp.
language
This property is required.
Changes to this property will trigger replacement.
str
The language. Valid values: zh, en, jp.
language
This property is required.
Changes to this property will trigger replacement.
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 This property is required. string
The region to which the country belongs.
CountriesAndRegions This property is required. string
National region abbreviation.
CountriesAndRegionsName This property is required. string
The name of the country and region.
Continent This property is required. string
The region to which the country belongs.
CountriesAndRegions This property is required. string
National region abbreviation.
CountriesAndRegionsName This property is required. string
The name of the country and region.
continent This property is required. String
The region to which the country belongs.
countriesAndRegions This property is required. String
National region abbreviation.
countriesAndRegionsName This property is required. String
The name of the country and region.
continent This property is required. string
The region to which the country belongs.
countriesAndRegions This property is required. string
National region abbreviation.
countriesAndRegionsName This property is required. string
The name of the country and region.
continent This property is required. str
The region to which the country belongs.
countries_and_regions This property is required. str
National region abbreviation.
countries_and_regions_name This property is required. str
The name of the country and region.
continent This property is required. String
The region to which the country belongs.
countriesAndRegions This property is required. String
National region abbreviation.
countriesAndRegionsName This property is required. 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.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi