get Private Zones
This data source provides CEN Private Zones available to the user.
NOTE: Available in v1.88.0+.
Example Usage
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());
}
}
Return
A collection of values returned by getPrivateZones.
Parameters
A collection of arguments for invoking getPrivateZones.
Return
A collection of values returned by getPrivateZones.
See also
Parameters
The ID of the CEN instance.
The service region. The service region is the target region of the PrivateZone service accessed through CEN.
A list of CEN private zone IDs. Each element format as <cen_id>:<access_region_id>
. NOTE: Before 1.162.0, each element same as access_region_id
.
host_region_id
- (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
File name where to save data source results (after running pulumi preview
).
The status of the PrivateZone service, including Creating
, Active
and Deleting
.
Return
A collection of values returned by getPrivateZones.
See also
Parameters
Builder for com.pulumi.alicloud.cen.kotlin.inputs.GetPrivateZonesPlainArgs.