Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
This data source provides CEN Private Zones available to the user.
NOTE: Available in v1.88.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _this = alicloud.cen.getPrivateZones({
cenId: "cen-o40h17ll9w********",
ids: ["cn-hangzhou"],
status: "Active",
});
export const firstCenPrivateZonesId = _this.then(_this => _this.zones?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
this = alicloud.cen.get_private_zones(cen_id="cen-o40h17ll9w********",
ids=["cn-hangzhou"],
status="Active")
pulumi.export("firstCenPrivateZonesId", this.zones[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
this, err := cen.GetPrivateZones(ctx, &cen.GetPrivateZonesArgs{
CenId: "cen-o40h17ll9w********",
Ids: []string{
"cn-hangzhou",
},
Status: pulumi.StringRef("Active"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstCenPrivateZonesId", this.Zones[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @this = AliCloud.Cen.GetPrivateZones.Invoke(new()
{
CenId = "cen-o40h17ll9w********",
Ids = new[]
{
"cn-hangzhou",
},
Status = "Active",
});
return new Dictionary<string, object?>
{
["firstCenPrivateZonesId"] = @this.Apply(@this => @this.Apply(getPrivateZonesResult => getPrivateZonesResult.Zones[0]?.Id)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetPrivateZonesArgs;
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 this = CenFunctions.getPrivateZones(GetPrivateZonesArgs.builder()
.cenId("cen-o40h17ll9w********")
.ids("cn-hangzhou")
.status("Active")
.build());
ctx.export("firstCenPrivateZonesId", this_.zones()[0].id());
}
}
variables:
this:
fn::invoke:
function: alicloud:cen:getPrivateZones
arguments:
cenId: cen-o40h17ll9w********
ids:
- cn-hangzhou
status: Active
outputs:
firstCenPrivateZonesId: ${this.zones[0].id}
Using getPrivateZones
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 getPrivateZones(args: GetPrivateZonesArgs, opts?: InvokeOptions): Promise<GetPrivateZonesResult>
function getPrivateZonesOutput(args: GetPrivateZonesOutputArgs, opts?: InvokeOptions): Output<GetPrivateZonesResult>def get_private_zones(cen_id: Optional[str] = None,
host_region_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivateZonesResult
def get_private_zones_output(cen_id: Optional[pulumi.Input[str]] = None,
host_region_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivateZonesResult]func GetPrivateZones(ctx *Context, args *GetPrivateZonesArgs, opts ...InvokeOption) (*GetPrivateZonesResult, error)
func GetPrivateZonesOutput(ctx *Context, args *GetPrivateZonesOutputArgs, opts ...InvokeOption) GetPrivateZonesResultOutput> Note: This function is named GetPrivateZones in the Go SDK.
public static class GetPrivateZones
{
public static Task<GetPrivateZonesResult> InvokeAsync(GetPrivateZonesArgs args, InvokeOptions? opts = null)
public static Output<GetPrivateZonesResult> Invoke(GetPrivateZonesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrivateZonesResult> getPrivateZones(GetPrivateZonesArgs args, InvokeOptions options)
public static Output<GetPrivateZonesResult> getPrivateZones(GetPrivateZonesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:cen/getPrivateZones:getPrivateZones
arguments:
# arguments dictionaryThe following arguments are supported:
- Cen
Id string - The ID of the CEN instance.
- Host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- Ids List<string>
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id.host_region_id </span>- (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- Cen
Id string - The ID of the CEN instance.
- Host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- Ids []string
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id.host_region_id </span>- (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
- Output
File string - File name where to save data source results (after running
pulumi preview). - Status string
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- cen
Id String - The ID of the CEN instance.
- host
Region StringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- ids List<String>
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id.host_region_id </span>- (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- cen
Id string - The ID of the CEN instance.
- host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- ids string[]
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id.host_region_id </span>- (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
- output
File string - File name where to save data source results (after running
pulumi preview). - status string
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- cen_
id str - The ID of the CEN instance.
- host_
region_ strid - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- ids Sequence[str]
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id.host_region_id </span>- (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
- output_
file str - File name where to save data source results (after running
pulumi preview). - status str
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- cen
Id String - The ID of the CEN instance.
- host
Region StringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- ids List<String>
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id.host_region_id </span>- (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
- output
File String - File name where to save data source results (after running
pulumi preview). - status String
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
getPrivateZones Result
The following output properties are available:
- Cen
Id string - The ID of the CEN instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id. - Zones
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Private Zones Zone> - A list of CEN private zones. Each element contains the following attributes:
- Host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- Output
File string - Status string
- The status of the PrivateZone service.
- Cen
Id string - The ID of the CEN instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id. - Zones
[]Get
Private Zones Zone - A list of CEN private zones. Each element contains the following attributes:
- Host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- Output
File string - Status string
- The status of the PrivateZone service.
- cen
Id String - The ID of the CEN instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id. - zones
List<Get
Private Zones Zone> - A list of CEN private zones. Each element contains the following attributes:
- host
Region StringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- output
File String - status String
- The status of the PrivateZone service.
- cen
Id string - The ID of the CEN instance.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id. - zones
Get
Private Zones Zone[] - A list of CEN private zones. Each element contains the following attributes:
- host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- output
File string - status string
- The status of the PrivateZone service.
- cen_
id str - The ID of the CEN instance.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id. - zones
Sequence[Get
Private Zones Zone] - A list of CEN private zones. Each element contains the following attributes:
- host_
region_ strid - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- output_
file str - status str
- The status of the PrivateZone service.
- cen
Id String - The ID of the CEN instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of CEN private zone IDs. Each element format as
<cen_id>:<access_region_id>. NOTE: Before 1.162.0, each element same asaccess_region_id. - zones List<Property Map>
- A list of CEN private zones. Each element contains the following attributes:
- host
Region StringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- output
File String - status String
- The status of the PrivateZone service.
Supporting Types
GetPrivateZonesZone
- Access
Region stringId - The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- Cen
Id string - The ID of the CEN instance.
- Host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- Host
Vpc stringId - The VPC that belongs to the service region.
- Id string
- The ID of the private zone. It formats as
<cen_id>:<access_region_id>. - Private
Zone stringDns Servers - The DNS IP addresses of the PrivateZone service.
- Status string
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- Access
Region stringId - The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- Cen
Id string - The ID of the CEN instance.
- Host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- Host
Vpc stringId - The VPC that belongs to the service region.
- Id string
- The ID of the private zone. It formats as
<cen_id>:<access_region_id>. - Private
Zone stringDns Servers - The DNS IP addresses of the PrivateZone service.
- Status string
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- access
Region StringId - The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- cen
Id String - The ID of the CEN instance.
- host
Region StringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- host
Vpc StringId - The VPC that belongs to the service region.
- id String
- The ID of the private zone. It formats as
<cen_id>:<access_region_id>. - private
Zone StringDns Servers - The DNS IP addresses of the PrivateZone service.
- status String
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- access
Region stringId - The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- cen
Id string - The ID of the CEN instance.
- host
Region stringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- host
Vpc stringId - The VPC that belongs to the service region.
- id string
- The ID of the private zone. It formats as
<cen_id>:<access_region_id>. - private
Zone stringDns Servers - The DNS IP addresses of the PrivateZone service.
- status string
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- access_
region_ strid - The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- cen_
id str - The ID of the CEN instance.
- host_
region_ strid - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- host_
vpc_ strid - The VPC that belongs to the service region.
- id str
- The ID of the private zone. It formats as
<cen_id>:<access_region_id>. - private_
zone_ strdns_ servers - The DNS IP addresses of the PrivateZone service.
- status str
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
- access
Region StringId - The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
- cen
Id String - The ID of the CEN instance.
- host
Region StringId - The service region. The service region is the target region of the PrivateZone service accessed through CEN.
- host
Vpc StringId - The VPC that belongs to the service region.
- id String
- The ID of the private zone. It formats as
<cen_id>:<access_region_id>. - private
Zone StringDns Servers - The DNS IP addresses of the PrivateZone service.
- status String
- The status of the PrivateZone service, including
Creating,ActiveandDeleting.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
