1. Packages
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. EnterpriseProjectActionV1
Viewing docs for opentelekomcloud 1.37.3
published on Friday, Jul 31, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.3
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
    EnterpriseProjectId string
    Specifies the ID of enterprise project to be operated.
    EnableForceNew string
    EnterpriseProjectActionV1Id string
    Action string
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    EnterpriseProjectId string
    Specifies the ID of enterprise project to be operated.
    EnableForceNew string
    EnterpriseProjectActionV1Id string
    action string
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    enterprise_project_id string
    Specifies the ID of enterprise project to be operated.
    enable_force_new string
    enterprise_project_action_v1_id string
    action String
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    enterpriseProjectId String
    Specifies the ID of enterprise project to be operated.
    enableForceNew String
    enterpriseProjectActionV1Id String
    action string
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    enterpriseProjectId string
    Specifies the ID of enterprise project to be operated.
    enableForceNew string
    enterpriseProjectActionV1Id string
    action str
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    enterprise_project_id str
    Specifies the ID of enterprise project to be operated.
    enable_force_new str
    enterprise_project_action_v1_id str
    action String
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    enterpriseProjectId String
    Specifies the ID of enterprise project to be operated.
    enableForceNew String
    enterpriseProjectActionV1Id String

    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) -> EnterpriseProjectActionV1
    func 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.
    The following state arguments are supported:
    Action string
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    EnableForceNew string
    EnterpriseProjectActionV1Id string
    EnterpriseProjectId string
    Specifies the ID of enterprise project to be operated.
    Action string
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    EnableForceNew string
    EnterpriseProjectActionV1Id string
    EnterpriseProjectId string
    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_new string
    enterprise_project_action_v1_id string
    enterprise_project_id string
    Specifies the ID of enterprise project to be operated.
    action String
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    enableForceNew String
    enterpriseProjectActionV1Id String
    enterpriseProjectId String
    Specifies the ID of enterprise project to be operated.
    action string
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    enableForceNew string
    enterpriseProjectActionV1Id string
    enterpriseProjectId string
    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_new str
    enterprise_project_action_v1_id str
    enterprise_project_id str
    Specifies the ID of enterprise project to be operated.
    action String
    Specifies the action type. The valid values are as follows:

    • enable
    • disable
    enableForceNew String
    enterpriseProjectActionV1Id String
    enterpriseProjectId String
    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 opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.37.3
    published on Friday, Jul 31, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial