published on Friday, Jul 31, 2026 by opentelekomcloud
published on Friday, Jul 31, 2026 by opentelekomcloud
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const enterpriseProjectId = config.requireObject<any>("enterpriseProjectId");
const test = new opentelekomcloud.EnterpriseProjectActionV1("test", {
enterpriseProjectId: enterpriseProjectId,
action: "disable",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
enterprise_project_id = config.require_object("enterpriseProjectId")
test = opentelekomcloud.EnterpriseProjectActionV1("test",
enterprise_project_id=enterprise_project_id,
action="disable")
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, "")
enterpriseProjectId := cfg.RequireObject("enterpriseProjectId")
_, err := opentelekomcloud.NewEnterpriseProjectActionV1(ctx, "test", &opentelekomcloud.EnterpriseProjectActionV1Args{
EnterpriseProjectId: pulumi.Any(enterpriseProjectId),
Action: pulumi.String("disable"),
})
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 enterpriseProjectId = config.RequireObject<dynamic>("enterpriseProjectId");
var test = new Opentelekomcloud.EnterpriseProjectActionV1("test", new()
{
EnterpriseProjectId = enterpriseProjectId,
Action = "disable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.EnterpriseProjectActionV1;
import com.pulumi.opentelekomcloud.EnterpriseProjectActionV1Args;
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 enterpriseProjectId = config.get("enterpriseProjectId");
var test = new EnterpriseProjectActionV1("test", EnterpriseProjectActionV1Args.builder()
.enterpriseProjectId(enterpriseProjectId)
.action("disable")
.build());
}
}
configuration:
enterpriseProjectId:
type: dynamic
resources:
test:
type: opentelekomcloud:EnterpriseProjectActionV1
properties:
enterpriseProjectId: ${enterpriseProjectId}
action: disable
Example coming soon!
Create EnterpriseProjectActionV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnterpriseProjectActionV1(name: string, args: EnterpriseProjectActionV1Args, opts?: CustomResourceOptions);@overload
def EnterpriseProjectActionV1(resource_name: str,
args: EnterpriseProjectActionV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def EnterpriseProjectActionV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
enable_force_new: Optional[str] = None,
enterprise_project_action_v1_id: Optional[str] = None)func NewEnterpriseProjectActionV1(ctx *Context, name string, args EnterpriseProjectActionV1Args, opts ...ResourceOption) (*EnterpriseProjectActionV1, error)public EnterpriseProjectActionV1(string name, EnterpriseProjectActionV1Args args, CustomResourceOptions? opts = null)
public EnterpriseProjectActionV1(String name, EnterpriseProjectActionV1Args args)
public EnterpriseProjectActionV1(String name, EnterpriseProjectActionV1Args args, CustomResourceOptions options)
type: opentelekomcloud:EnterpriseProjectActionV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "opentelekomcloud_enterprise_project_action_v1" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args EnterpriseProjectActionV1Args
- 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 EnterpriseProjectActionV1Args
- 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 EnterpriseProjectActionV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnterpriseProjectActionV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnterpriseProjectActionV1Args
- 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 enterpriseProjectActionV1Resource = new Opentelekomcloud.EnterpriseProjectActionV1("enterpriseProjectActionV1Resource", new()
{
Action = "string",
EnterpriseProjectId = "string",
EnableForceNew = "string",
EnterpriseProjectActionV1Id = "string",
});
example, err := opentelekomcloud.NewEnterpriseProjectActionV1(ctx, "enterpriseProjectActionV1Resource", &opentelekomcloud.EnterpriseProjectActionV1Args{
Action: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
EnableForceNew: pulumi.String("string"),
EnterpriseProjectActionV1Id: pulumi.String("string"),
})
resource "opentelekomcloud_enterprise_project_action_v1" "enterpriseProjectActionV1Resource" {
lifecycle {
create_before_destroy = true
}
action = "string"
enterprise_project_id = "string"
enable_force_new = "string"
enterprise_project_action_v1_id = "string"
}
var enterpriseProjectActionV1Resource = new EnterpriseProjectActionV1("enterpriseProjectActionV1Resource", EnterpriseProjectActionV1Args.builder()
.action("string")
.enterpriseProjectId("string")
.enableForceNew("string")
.enterpriseProjectActionV1Id("string")
.build());
enterprise_project_action_v1_resource = opentelekomcloud.EnterpriseProjectActionV1("enterpriseProjectActionV1Resource",
action="string",
enterprise_project_id="string",
enable_force_new="string",
enterprise_project_action_v1_id="string")
const enterpriseProjectActionV1Resource = new opentelekomcloud.EnterpriseProjectActionV1("enterpriseProjectActionV1Resource", {
action: "string",
enterpriseProjectId: "string",
enableForceNew: "string",
enterpriseProjectActionV1Id: "string",
});
type: opentelekomcloud:EnterpriseProjectActionV1
properties:
action: string
enableForceNew: string
enterpriseProjectActionV1Id: string
enterpriseProjectId: string
EnterpriseProjectActionV1 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 EnterpriseProjectActionV1 resource accepts the following input properties:
- Action string
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- Enterprise
Project stringId - Specifies the ID of enterprise project to be operated.
- Enable
Force stringNew - Enterprise
Project stringAction V1Id
- Action string
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- Enterprise
Project stringId - Specifies the ID of enterprise project to be operated.
- Enable
Force stringNew - Enterprise
Project stringAction V1Id
- action string
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enterprise_
project_ stringid - Specifies the ID of enterprise project to be operated.
- enable_
force_ stringnew - enterprise_
project_ stringaction_ v1_ id
- action String
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enterprise
Project StringId - Specifies the ID of enterprise project to be operated.
- enable
Force StringNew - enterprise
Project StringAction V1Id
- action string
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enterprise
Project stringId - Specifies the ID of enterprise project to be operated.
- enable
Force stringNew - enterprise
Project stringAction V1Id
- action str
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enterprise_
project_ strid - Specifies the ID of enterprise project to be operated.
- enable_
force_ strnew - enterprise_
project_ straction_ v1_ id
- action String
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enterprise
Project StringId - Specifies the ID of enterprise project to be operated.
- enable
Force StringNew - enterprise
Project StringAction V1Id
Outputs
All input properties are implicitly available as output properties. Additionally, the EnterpriseProjectActionV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EnterpriseProjectActionV1 Resource
Get an existing EnterpriseProjectActionV1 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?: EnterpriseProjectActionV1State, opts?: CustomResourceOptions): EnterpriseProjectActionV1@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
enable_force_new: Optional[str] = None,
enterprise_project_action_v1_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None) -> EnterpriseProjectActionV1func GetEnterpriseProjectActionV1(ctx *Context, name string, id IDInput, state *EnterpriseProjectActionV1State, opts ...ResourceOption) (*EnterpriseProjectActionV1, error)public static EnterpriseProjectActionV1 Get(string name, Input<string> id, EnterpriseProjectActionV1State? state, CustomResourceOptions? opts = null)public static EnterpriseProjectActionV1 get(String name, Output<String> id, EnterpriseProjectActionV1State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:EnterpriseProjectActionV1 get: id: ${id}import {
to = opentelekomcloud_enterprise_project_action_v1.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.
- Action string
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- Enable
Force stringNew - Enterprise
Project stringAction V1Id - Enterprise
Project stringId - Specifies the ID of enterprise project to be operated.
- Action string
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- Enable
Force stringNew - Enterprise
Project stringAction V1Id - Enterprise
Project stringId - Specifies the ID of enterprise project to be operated.
- action string
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enable_
force_ stringnew - enterprise_
project_ stringaction_ v1_ id - enterprise_
project_ stringid - Specifies the ID of enterprise project to be operated.
- action String
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enable
Force StringNew - enterprise
Project StringAction V1Id - enterprise
Project StringId - Specifies the ID of enterprise project to be operated.
- action string
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enable
Force stringNew - enterprise
Project stringAction V1Id - enterprise
Project stringId - Specifies the ID of enterprise project to be operated.
- action str
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enable_
force_ strnew - enterprise_
project_ straction_ v1_ id - enterprise_
project_ strid - Specifies the ID of enterprise project to be operated.
- action String
- Specifies the action type.
The valid values are as follows:
- enable
- disable
- enable
Force StringNew - enterprise
Project StringAction V1Id - enterprise
Project StringId - Specifies the ID of enterprise project to be operated.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
published on Friday, Jul 31, 2026 by opentelekomcloud