published on Thursday, Jul 23, 2026 by opentelekomcloud
published on Thursday, Jul 23, 2026 by opentelekomcloud
Up-to-date reference of API arguments for Cloud Connect Central Network Policy you can get at documentation portal
Applies a Cloud Connect (CC) central network policy within OpenTelekomCloud.
A central network can hold several policies, but only one can be active. This resource applies the policy
referenced by policy_id to the central network and waits until it becomes effective.
Deleting this resource does not delete the policy. Instead, it reverts the central network to its default policy (the initial policy with version
1, which has no associated enterprise routers).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const centralNetworkId = config.requireObject<any>("centralNetworkId");
const test = new opentelekomcloud.CcCentralNetworkPolicyV3("test", {
centralNetworkId: centralNetworkId,
erInstances: [{
projectId: projectId,
regionId: "eu-de",
enterpriseRouterId: enterpriseRouterId,
}],
});
const testCcCentralNetworkPolicyApplyV3 = new opentelekomcloud.CcCentralNetworkPolicyApplyV3("test", {
centralNetworkId: centralNetworkId,
policyId: test.ccCentralNetworkPolicyV3Id,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
central_network_id = config.require_object("centralNetworkId")
test = opentelekomcloud.CcCentralNetworkPolicyV3("test",
central_network_id=central_network_id,
er_instances=[{
"project_id": project_id,
"region_id": "eu-de",
"enterprise_router_id": enterprise_router_id,
}])
test_cc_central_network_policy_apply_v3 = opentelekomcloud.CcCentralNetworkPolicyApplyV3("test",
central_network_id=central_network_id,
policy_id=test.cc_central_network_policy_v3_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
centralNetworkId := cfg.RequireObject("centralNetworkId")
test, err := opentelekomcloud.NewCcCentralNetworkPolicyV3(ctx, "test", &opentelekomcloud.CcCentralNetworkPolicyV3Args{
CentralNetworkId: pulumi.Any(centralNetworkId),
ErInstances: opentelekomcloud.CcCentralNetworkPolicyV3ErInstanceArray{
&opentelekomcloud.CcCentralNetworkPolicyV3ErInstanceArgs{
ProjectId: pulumi.Any(projectId),
RegionId: pulumi.String("eu-de"),
EnterpriseRouterId: pulumi.Any(enterpriseRouterId),
},
},
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewCcCentralNetworkPolicyApplyV3(ctx, "test", &opentelekomcloud.CcCentralNetworkPolicyApplyV3Args{
CentralNetworkId: pulumi.Any(centralNetworkId),
PolicyId: test.CcCentralNetworkPolicyV3Id,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var centralNetworkId = config.RequireObject<dynamic>("centralNetworkId");
var test = new Opentelekomcloud.CcCentralNetworkPolicyV3("test", new()
{
CentralNetworkId = centralNetworkId,
ErInstances = new[]
{
new Opentelekomcloud.Inputs.CcCentralNetworkPolicyV3ErInstanceArgs
{
ProjectId = projectId,
RegionId = "eu-de",
EnterpriseRouterId = enterpriseRouterId,
},
},
});
var testCcCentralNetworkPolicyApplyV3 = new Opentelekomcloud.CcCentralNetworkPolicyApplyV3("test", new()
{
CentralNetworkId = centralNetworkId,
PolicyId = test.CcCentralNetworkPolicyV3Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CcCentralNetworkPolicyV3;
import com.pulumi.opentelekomcloud.CcCentralNetworkPolicyV3Args;
import com.pulumi.opentelekomcloud.inputs.CcCentralNetworkPolicyV3ErInstanceArgs;
import com.pulumi.opentelekomcloud.CcCentralNetworkPolicyApplyV3;
import com.pulumi.opentelekomcloud.CcCentralNetworkPolicyApplyV3Args;
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 config = ctx.config();
final var centralNetworkId = config.get("centralNetworkId");
var test = new CcCentralNetworkPolicyV3("test", CcCentralNetworkPolicyV3Args.builder()
.centralNetworkId(centralNetworkId)
.erInstances(CcCentralNetworkPolicyV3ErInstanceArgs.builder()
.projectId(projectId)
.regionId("eu-de")
.enterpriseRouterId(enterpriseRouterId)
.build())
.build());
var testCcCentralNetworkPolicyApplyV3 = new CcCentralNetworkPolicyApplyV3("testCcCentralNetworkPolicyApplyV3", CcCentralNetworkPolicyApplyV3Args.builder()
.centralNetworkId(centralNetworkId)
.policyId(test.ccCentralNetworkPolicyV3Id())
.build());
}
}
configuration:
centralNetworkId:
type: dynamic
resources:
test:
type: opentelekomcloud:CcCentralNetworkPolicyV3
properties:
centralNetworkId: ${centralNetworkId}
erInstances:
- projectId: ${projectId}
regionId: eu-de
enterpriseRouterId: ${enterpriseRouterId}
testCcCentralNetworkPolicyApplyV3:
type: opentelekomcloud:CcCentralNetworkPolicyApplyV3
name: test
properties:
centralNetworkId: ${centralNetworkId}
policyId: ${test.ccCentralNetworkPolicyV3Id}
Example coming soon!
Create CcCentralNetworkPolicyApplyV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CcCentralNetworkPolicyApplyV3(name: string, args: CcCentralNetworkPolicyApplyV3Args, opts?: CustomResourceOptions);@overload
def CcCentralNetworkPolicyApplyV3(resource_name: str,
args: CcCentralNetworkPolicyApplyV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def CcCentralNetworkPolicyApplyV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
central_network_id: Optional[str] = None,
policy_id: Optional[str] = None,
cc_central_network_policy_apply_v3_id: Optional[str] = None,
timeouts: Optional[CcCentralNetworkPolicyApplyV3TimeoutsArgs] = None)func NewCcCentralNetworkPolicyApplyV3(ctx *Context, name string, args CcCentralNetworkPolicyApplyV3Args, opts ...ResourceOption) (*CcCentralNetworkPolicyApplyV3, error)public CcCentralNetworkPolicyApplyV3(string name, CcCentralNetworkPolicyApplyV3Args args, CustomResourceOptions? opts = null)
public CcCentralNetworkPolicyApplyV3(String name, CcCentralNetworkPolicyApplyV3Args args)
public CcCentralNetworkPolicyApplyV3(String name, CcCentralNetworkPolicyApplyV3Args args, CustomResourceOptions options)
type: opentelekomcloud:CcCentralNetworkPolicyApplyV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "opentelekomcloud_cc_central_network_policy_apply_v3" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CcCentralNetworkPolicyApplyV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CcCentralNetworkPolicyApplyV3Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CcCentralNetworkPolicyApplyV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CcCentralNetworkPolicyApplyV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CcCentralNetworkPolicyApplyV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ccCentralNetworkPolicyApplyV3Resource = new Opentelekomcloud.CcCentralNetworkPolicyApplyV3("ccCentralNetworkPolicyApplyV3Resource", new()
{
CentralNetworkId = "string",
PolicyId = "string",
CcCentralNetworkPolicyApplyV3Id = "string",
Timeouts = new Opentelekomcloud.Inputs.CcCentralNetworkPolicyApplyV3TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewCcCentralNetworkPolicyApplyV3(ctx, "ccCentralNetworkPolicyApplyV3Resource", &opentelekomcloud.CcCentralNetworkPolicyApplyV3Args{
CentralNetworkId: pulumi.String("string"),
PolicyId: pulumi.String("string"),
CcCentralNetworkPolicyApplyV3Id: pulumi.String("string"),
Timeouts: &opentelekomcloud.CcCentralNetworkPolicyApplyV3TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "opentelekomcloud_cc_central_network_policy_apply_v3" "ccCentralNetworkPolicyApplyV3Resource" {
lifecycle {
create_before_destroy = true
}
central_network_id = "string"
policy_id = "string"
cc_central_network_policy_apply_v3_id = "string"
timeouts = {
create = "string"
delete = "string"
update = "string"
}
}
var ccCentralNetworkPolicyApplyV3Resource = new CcCentralNetworkPolicyApplyV3("ccCentralNetworkPolicyApplyV3Resource", CcCentralNetworkPolicyApplyV3Args.builder()
.centralNetworkId("string")
.policyId("string")
.ccCentralNetworkPolicyApplyV3Id("string")
.timeouts(CcCentralNetworkPolicyApplyV3TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
cc_central_network_policy_apply_v3_resource = opentelekomcloud.CcCentralNetworkPolicyApplyV3("ccCentralNetworkPolicyApplyV3Resource",
central_network_id="string",
policy_id="string",
cc_central_network_policy_apply_v3_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const ccCentralNetworkPolicyApplyV3Resource = new opentelekomcloud.CcCentralNetworkPolicyApplyV3("ccCentralNetworkPolicyApplyV3Resource", {
centralNetworkId: "string",
policyId: "string",
ccCentralNetworkPolicyApplyV3Id: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:CcCentralNetworkPolicyApplyV3
properties:
ccCentralNetworkPolicyApplyV3Id: string
centralNetworkId: string
policyId: string
timeouts:
create: string
delete: string
update: string
CcCentralNetworkPolicyApplyV3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CcCentralNetworkPolicyApplyV3 resource accepts the following input properties:
- Central
Network stringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- Policy
Id string - The ID of the central network policy to apply.
- Cc
Central stringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- Timeouts
Cc
Central Network Policy Apply V3Timeouts
- Central
Network stringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- Policy
Id string - The ID of the central network policy to apply.
- Cc
Central stringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- Timeouts
Cc
Central Network Policy Apply V3Timeouts Args
- central_
network_ stringid - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy_
id string - The ID of the central network policy to apply.
- cc_
central_ stringnetwork_ policy_ apply_ v3_ id - The resource ID. Equal to the central network ID.
- timeouts object
- central
Network StringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy
Id String - The ID of the central network policy to apply.
- cc
Central StringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- timeouts
Cc
Central Network Policy Apply V3Timeouts
- central
Network stringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy
Id string - The ID of the central network policy to apply.
- cc
Central stringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- timeouts
Cc
Central Network Policy Apply V3Timeouts
- central_
network_ strid - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy_
id str - The ID of the central network policy to apply.
- cc_
central_ strnetwork_ policy_ apply_ v3_ id - The resource ID. Equal to the central network ID.
- timeouts
Cc
Central Network Policy Apply V3Timeouts Args
- central
Network StringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy
Id String - The ID of the central network policy to apply.
- cc
Central StringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CcCentralNetworkPolicyApplyV3 resource produces the following output properties:
Look up Existing CcCentralNetworkPolicyApplyV3 Resource
Get an existing CcCentralNetworkPolicyApplyV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CcCentralNetworkPolicyApplyV3State, opts?: CustomResourceOptions): CcCentralNetworkPolicyApplyV3@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cc_central_network_policy_apply_v3_id: Optional[str] = None,
central_network_id: Optional[str] = None,
policy_id: Optional[str] = None,
region: Optional[str] = None,
timeouts: Optional[CcCentralNetworkPolicyApplyV3TimeoutsArgs] = None) -> CcCentralNetworkPolicyApplyV3func GetCcCentralNetworkPolicyApplyV3(ctx *Context, name string, id IDInput, state *CcCentralNetworkPolicyApplyV3State, opts ...ResourceOption) (*CcCentralNetworkPolicyApplyV3, error)public static CcCentralNetworkPolicyApplyV3 Get(string name, Input<string> id, CcCentralNetworkPolicyApplyV3State? state, CustomResourceOptions? opts = null)public static CcCentralNetworkPolicyApplyV3 get(String name, Output<String> id, CcCentralNetworkPolicyApplyV3State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:CcCentralNetworkPolicyApplyV3 get: id: ${id}import {
to = opentelekomcloud_cc_central_network_policy_apply_v3.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cc
Central stringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- Central
Network stringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- Policy
Id string - The ID of the central network policy to apply.
- Region string
- The region in which the central network policy is applied.
- Timeouts
Cc
Central Network Policy Apply V3Timeouts
- Cc
Central stringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- Central
Network stringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- Policy
Id string - The ID of the central network policy to apply.
- Region string
- The region in which the central network policy is applied.
- Timeouts
Cc
Central Network Policy Apply V3Timeouts Args
- cc_
central_ stringnetwork_ policy_ apply_ v3_ id - The resource ID. Equal to the central network ID.
- central_
network_ stringid - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy_
id string - The ID of the central network policy to apply.
- region string
- The region in which the central network policy is applied.
- timeouts object
- cc
Central StringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- central
Network StringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy
Id String - The ID of the central network policy to apply.
- region String
- The region in which the central network policy is applied.
- timeouts
Cc
Central Network Policy Apply V3Timeouts
- cc
Central stringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- central
Network stringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy
Id string - The ID of the central network policy to apply.
- region string
- The region in which the central network policy is applied.
- timeouts
Cc
Central Network Policy Apply V3Timeouts
- cc_
central_ strnetwork_ policy_ apply_ v3_ id - The resource ID. Equal to the central network ID.
- central_
network_ strid - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy_
id str - The ID of the central network policy to apply.
- region str
- The region in which the central network policy is applied.
- timeouts
Cc
Central Network Policy Apply V3Timeouts Args
- cc
Central StringNetwork Policy Apply V3Id - The resource ID. Equal to the central network ID.
- central
Network StringId - The ID of the central network the policy is applied to. Changing this parameter will create a new resource.
- policy
Id String - The ID of the central network policy to apply.
- region String
- The region in which the central network policy is applied.
- timeouts Property Map
Supporting Types
CcCentralNetworkPolicyApplyV3Timeouts, CcCentralNetworkPolicyApplyV3TimeoutsArgs
Import
The applied central network policy can be imported using the central_network_id and policy_id, separated by
a slash, e.g.
$ pulumi import opentelekomcloud:index/ccCentralNetworkPolicyApplyV3:CcCentralNetworkPolicyApplyV3 test <central_network_id>/<policy_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
published on Thursday, Jul 23, 2026 by opentelekomcloud