1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OceanusWorkSpace
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.OceanusWorkSpace

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a oceanus work_space

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.OceanusWorkSpace("example", {
        description: "example description.",
        workSpaceName: "tf_example",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.OceanusWorkSpace("example",
        description="example description.",
        work_space_name="tf_example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewOceanusWorkSpace(ctx, "example", &tencentcloud.OceanusWorkSpaceArgs{
    			Description:   pulumi.String("example description."),
    			WorkSpaceName: pulumi.String("tf_example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.OceanusWorkSpace("example", new()
        {
            Description = "example description.",
            WorkSpaceName = "tf_example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OceanusWorkSpace;
    import com.pulumi.tencentcloud.OceanusWorkSpaceArgs;
    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) {
            var example = new OceanusWorkSpace("example", OceanusWorkSpaceArgs.builder()
                .description("example description.")
                .workSpaceName("tf_example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:OceanusWorkSpace
        properties:
          description: example description.
          workSpaceName: tf_example
    

    Create OceanusWorkSpace Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OceanusWorkSpace(name: string, args: OceanusWorkSpaceArgs, opts?: CustomResourceOptions);
    @overload
    def OceanusWorkSpace(resource_name: str,
                         args: OceanusWorkSpaceArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def OceanusWorkSpace(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         work_space_name: Optional[str] = None,
                         description: Optional[str] = None,
                         oceanus_work_space_id: Optional[str] = None)
    func NewOceanusWorkSpace(ctx *Context, name string, args OceanusWorkSpaceArgs, opts ...ResourceOption) (*OceanusWorkSpace, error)
    public OceanusWorkSpace(string name, OceanusWorkSpaceArgs args, CustomResourceOptions? opts = null)
    public OceanusWorkSpace(String name, OceanusWorkSpaceArgs args)
    public OceanusWorkSpace(String name, OceanusWorkSpaceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OceanusWorkSpace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args OceanusWorkSpaceArgs
    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 OceanusWorkSpaceArgs
    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 OceanusWorkSpaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OceanusWorkSpaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OceanusWorkSpaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    OceanusWorkSpace 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 OceanusWorkSpace resource accepts the following input properties:

    WorkSpaceName string
    Workspace name.
    Description string
    Workspace description.
    OceanusWorkSpaceId string
    ID of the resource.
    WorkSpaceName string
    Workspace name.
    Description string
    Workspace description.
    OceanusWorkSpaceId string
    ID of the resource.
    workSpaceName String
    Workspace name.
    description String
    Workspace description.
    oceanusWorkSpaceId String
    ID of the resource.
    workSpaceName string
    Workspace name.
    description string
    Workspace description.
    oceanusWorkSpaceId string
    ID of the resource.
    work_space_name str
    Workspace name.
    description str
    Workspace description.
    oceanus_work_space_id str
    ID of the resource.
    workSpaceName String
    Workspace name.
    description String
    Workspace description.
    oceanusWorkSpaceId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OceanusWorkSpace resource produces the following output properties:

    AppId double
    User APPID.
    CreateTime string
    Create time.
    CreatorUin string
    Creator UIN.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobsCount double
    Number of Jobs.
    OwnerUin string
    Owner UIN.
    RoleAuthCount double
    Number of workspace members.
    SerialId string
    Serial ID.
    Status double
    Workspace status.
    UpdateTime string
    Update time.
    WorkSpaceId string
    Workspace ID.
    AppId float64
    User APPID.
    CreateTime string
    Create time.
    CreatorUin string
    Creator UIN.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobsCount float64
    Number of Jobs.
    OwnerUin string
    Owner UIN.
    RoleAuthCount float64
    Number of workspace members.
    SerialId string
    Serial ID.
    Status float64
    Workspace status.
    UpdateTime string
    Update time.
    WorkSpaceId string
    Workspace ID.
    appId Double
    User APPID.
    createTime String
    Create time.
    creatorUin String
    Creator UIN.
    id String
    The provider-assigned unique ID for this managed resource.
    jobsCount Double
    Number of Jobs.
    ownerUin String
    Owner UIN.
    roleAuthCount Double
    Number of workspace members.
    serialId String
    Serial ID.
    status Double
    Workspace status.
    updateTime String
    Update time.
    workSpaceId String
    Workspace ID.
    appId number
    User APPID.
    createTime string
    Create time.
    creatorUin string
    Creator UIN.
    id string
    The provider-assigned unique ID for this managed resource.
    jobsCount number
    Number of Jobs.
    ownerUin string
    Owner UIN.
    roleAuthCount number
    Number of workspace members.
    serialId string
    Serial ID.
    status number
    Workspace status.
    updateTime string
    Update time.
    workSpaceId string
    Workspace ID.
    app_id float
    User APPID.
    create_time str
    Create time.
    creator_uin str
    Creator UIN.
    id str
    The provider-assigned unique ID for this managed resource.
    jobs_count float
    Number of Jobs.
    owner_uin str
    Owner UIN.
    role_auth_count float
    Number of workspace members.
    serial_id str
    Serial ID.
    status float
    Workspace status.
    update_time str
    Update time.
    work_space_id str
    Workspace ID.
    appId Number
    User APPID.
    createTime String
    Create time.
    creatorUin String
    Creator UIN.
    id String
    The provider-assigned unique ID for this managed resource.
    jobsCount Number
    Number of Jobs.
    ownerUin String
    Owner UIN.
    roleAuthCount Number
    Number of workspace members.
    serialId String
    Serial ID.
    status Number
    Workspace status.
    updateTime String
    Update time.
    workSpaceId String
    Workspace ID.

    Look up Existing OceanusWorkSpace Resource

    Get an existing OceanusWorkSpace 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?: OceanusWorkSpaceState, opts?: CustomResourceOptions): OceanusWorkSpace
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[float] = None,
            create_time: Optional[str] = None,
            creator_uin: Optional[str] = None,
            description: Optional[str] = None,
            jobs_count: Optional[float] = None,
            oceanus_work_space_id: Optional[str] = None,
            owner_uin: Optional[str] = None,
            role_auth_count: Optional[float] = None,
            serial_id: Optional[str] = None,
            status: Optional[float] = None,
            update_time: Optional[str] = None,
            work_space_id: Optional[str] = None,
            work_space_name: Optional[str] = None) -> OceanusWorkSpace
    func GetOceanusWorkSpace(ctx *Context, name string, id IDInput, state *OceanusWorkSpaceState, opts ...ResourceOption) (*OceanusWorkSpace, error)
    public static OceanusWorkSpace Get(string name, Input<string> id, OceanusWorkSpaceState? state, CustomResourceOptions? opts = null)
    public static OceanusWorkSpace get(String name, Output<String> id, OceanusWorkSpaceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OceanusWorkSpace    get:      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:
    AppId double
    User APPID.
    CreateTime string
    Create time.
    CreatorUin string
    Creator UIN.
    Description string
    Workspace description.
    JobsCount double
    Number of Jobs.
    OceanusWorkSpaceId string
    ID of the resource.
    OwnerUin string
    Owner UIN.
    RoleAuthCount double
    Number of workspace members.
    SerialId string
    Serial ID.
    Status double
    Workspace status.
    UpdateTime string
    Update time.
    WorkSpaceId string
    Workspace ID.
    WorkSpaceName string
    Workspace name.
    AppId float64
    User APPID.
    CreateTime string
    Create time.
    CreatorUin string
    Creator UIN.
    Description string
    Workspace description.
    JobsCount float64
    Number of Jobs.
    OceanusWorkSpaceId string
    ID of the resource.
    OwnerUin string
    Owner UIN.
    RoleAuthCount float64
    Number of workspace members.
    SerialId string
    Serial ID.
    Status float64
    Workspace status.
    UpdateTime string
    Update time.
    WorkSpaceId string
    Workspace ID.
    WorkSpaceName string
    Workspace name.
    appId Double
    User APPID.
    createTime String
    Create time.
    creatorUin String
    Creator UIN.
    description String
    Workspace description.
    jobsCount Double
    Number of Jobs.
    oceanusWorkSpaceId String
    ID of the resource.
    ownerUin String
    Owner UIN.
    roleAuthCount Double
    Number of workspace members.
    serialId String
    Serial ID.
    status Double
    Workspace status.
    updateTime String
    Update time.
    workSpaceId String
    Workspace ID.
    workSpaceName String
    Workspace name.
    appId number
    User APPID.
    createTime string
    Create time.
    creatorUin string
    Creator UIN.
    description string
    Workspace description.
    jobsCount number
    Number of Jobs.
    oceanusWorkSpaceId string
    ID of the resource.
    ownerUin string
    Owner UIN.
    roleAuthCount number
    Number of workspace members.
    serialId string
    Serial ID.
    status number
    Workspace status.
    updateTime string
    Update time.
    workSpaceId string
    Workspace ID.
    workSpaceName string
    Workspace name.
    app_id float
    User APPID.
    create_time str
    Create time.
    creator_uin str
    Creator UIN.
    description str
    Workspace description.
    jobs_count float
    Number of Jobs.
    oceanus_work_space_id str
    ID of the resource.
    owner_uin str
    Owner UIN.
    role_auth_count float
    Number of workspace members.
    serial_id str
    Serial ID.
    status float
    Workspace status.
    update_time str
    Update time.
    work_space_id str
    Workspace ID.
    work_space_name str
    Workspace name.
    appId Number
    User APPID.
    createTime String
    Create time.
    creatorUin String
    Creator UIN.
    description String
    Workspace description.
    jobsCount Number
    Number of Jobs.
    oceanusWorkSpaceId String
    ID of the resource.
    ownerUin String
    Owner UIN.
    roleAuthCount Number
    Number of workspace members.
    serialId String
    Serial ID.
    status Number
    Workspace status.
    updateTime String
    Update time.
    workSpaceId String
    Workspace ID.
    workSpaceName String
    Workspace name.

    Import

    oceanus work_space can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/oceanusWorkSpace:OceanusWorkSpace example space-0dan3yux#tf_example
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack