1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WedataRunSqlScriptOperation
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.WedataRunSqlScriptOperation

Get Started
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

    Provides a resource to create a WeData run sql script operation

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WedataRunSqlScriptOperation("example", {
        scriptId: "195a5f49-8e43-4e05-8b42-cecdfb6349f8",
        projectId: "2983848457986924544",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WedataRunSqlScriptOperation("example",
        script_id="195a5f49-8e43-4e05-8b42-cecdfb6349f8",
        project_id="2983848457986924544")
    
    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.NewWedataRunSqlScriptOperation(ctx, "example", &tencentcloud.WedataRunSqlScriptOperationArgs{
    			ScriptId:  pulumi.String("195a5f49-8e43-4e05-8b42-cecdfb6349f8"),
    			ProjectId: pulumi.String("2983848457986924544"),
    		})
    		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.WedataRunSqlScriptOperation("example", new()
        {
            ScriptId = "195a5f49-8e43-4e05-8b42-cecdfb6349f8",
            ProjectId = "2983848457986924544",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WedataRunSqlScriptOperation;
    import com.pulumi.tencentcloud.WedataRunSqlScriptOperationArgs;
    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 WedataRunSqlScriptOperation("example", WedataRunSqlScriptOperationArgs.builder()
                .scriptId("195a5f49-8e43-4e05-8b42-cecdfb6349f8")
                .projectId("2983848457986924544")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WedataRunSqlScriptOperation
        properties:
          scriptId: 195a5f49-8e43-4e05-8b42-cecdfb6349f8
          projectId: '2983848457986924544'
    

    Or

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WedataRunSqlScriptOperation("example", {
        scriptId: "195a5f49-8e43-4e05-8b42-cecdfb6349f8",
        projectId: "2983848457986924544",
        scriptContent: "SHOW DATABASES;",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WedataRunSqlScriptOperation("example",
        script_id="195a5f49-8e43-4e05-8b42-cecdfb6349f8",
        project_id="2983848457986924544",
        script_content="SHOW DATABASES;")
    
    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.NewWedataRunSqlScriptOperation(ctx, "example", &tencentcloud.WedataRunSqlScriptOperationArgs{
    			ScriptId:      pulumi.String("195a5f49-8e43-4e05-8b42-cecdfb6349f8"),
    			ProjectId:     pulumi.String("2983848457986924544"),
    			ScriptContent: pulumi.String("SHOW DATABASES;"),
    		})
    		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.WedataRunSqlScriptOperation("example", new()
        {
            ScriptId = "195a5f49-8e43-4e05-8b42-cecdfb6349f8",
            ProjectId = "2983848457986924544",
            ScriptContent = "SHOW DATABASES;",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WedataRunSqlScriptOperation;
    import com.pulumi.tencentcloud.WedataRunSqlScriptOperationArgs;
    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 WedataRunSqlScriptOperation("example", WedataRunSqlScriptOperationArgs.builder()
                .scriptId("195a5f49-8e43-4e05-8b42-cecdfb6349f8")
                .projectId("2983848457986924544")
                .scriptContent("SHOW DATABASES;")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WedataRunSqlScriptOperation
        properties:
          scriptId: 195a5f49-8e43-4e05-8b42-cecdfb6349f8
          projectId: '2983848457986924544'
          scriptContent: SHOW DATABASES;
    

    Create WedataRunSqlScriptOperation Resource

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

    Constructor syntax

    new WedataRunSqlScriptOperation(name: string, args: WedataRunSqlScriptOperationArgs, opts?: CustomResourceOptions);
    @overload
    def WedataRunSqlScriptOperation(resource_name: str,
                                    args: WedataRunSqlScriptOperationArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def WedataRunSqlScriptOperation(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    project_id: Optional[str] = None,
                                    script_id: Optional[str] = None,
                                    params: Optional[str] = None,
                                    script_content: Optional[str] = None,
                                    wedata_run_sql_script_operation_id: Optional[str] = None)
    func NewWedataRunSqlScriptOperation(ctx *Context, name string, args WedataRunSqlScriptOperationArgs, opts ...ResourceOption) (*WedataRunSqlScriptOperation, error)
    public WedataRunSqlScriptOperation(string name, WedataRunSqlScriptOperationArgs args, CustomResourceOptions? opts = null)
    public WedataRunSqlScriptOperation(String name, WedataRunSqlScriptOperationArgs args)
    public WedataRunSqlScriptOperation(String name, WedataRunSqlScriptOperationArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WedataRunSqlScriptOperation
    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 WedataRunSqlScriptOperationArgs
    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 WedataRunSqlScriptOperationArgs
    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 WedataRunSqlScriptOperationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WedataRunSqlScriptOperationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WedataRunSqlScriptOperationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ProjectId string
    Project ID.
    ScriptId string
    Script id.
    Params string
    Advanced running parameter.
    ScriptContent string
    Script content. executed by default if not transmitted.
    WedataRunSqlScriptOperationId string
    ID of the resource.
    ProjectId string
    Project ID.
    ScriptId string
    Script id.
    Params string
    Advanced running parameter.
    ScriptContent string
    Script content. executed by default if not transmitted.
    WedataRunSqlScriptOperationId string
    ID of the resource.
    projectId String
    Project ID.
    scriptId String
    Script id.
    params String
    Advanced running parameter.
    scriptContent String
    Script content. executed by default if not transmitted.
    wedataRunSqlScriptOperationId String
    ID of the resource.
    projectId string
    Project ID.
    scriptId string
    Script id.
    params string
    Advanced running parameter.
    scriptContent string
    Script content. executed by default if not transmitted.
    wedataRunSqlScriptOperationId string
    ID of the resource.
    project_id str
    Project ID.
    script_id str
    Script id.
    params str
    Advanced running parameter.
    script_content str
    Script content. executed by default if not transmitted.
    wedata_run_sql_script_operation_id str
    ID of the resource.
    projectId String
    Project ID.
    scriptId String
    Script id.
    params String
    Advanced running parameter.
    scriptContent String
    Script content. executed by default if not transmitted.
    wedataRunSqlScriptOperationId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    Job ID of the SQL script operation.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    Job ID of the SQL script operation.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    Job ID of the SQL script operation.
    id string
    The provider-assigned unique ID for this managed resource.
    jobId string
    Job ID of the SQL script operation.
    id str
    The provider-assigned unique ID for this managed resource.
    job_id str
    Job ID of the SQL script operation.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    Job ID of the SQL script operation.

    Look up Existing WedataRunSqlScriptOperation Resource

    Get an existing WedataRunSqlScriptOperation 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?: WedataRunSqlScriptOperationState, opts?: CustomResourceOptions): WedataRunSqlScriptOperation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            job_id: Optional[str] = None,
            params: Optional[str] = None,
            project_id: Optional[str] = None,
            script_content: Optional[str] = None,
            script_id: Optional[str] = None,
            wedata_run_sql_script_operation_id: Optional[str] = None) -> WedataRunSqlScriptOperation
    func GetWedataRunSqlScriptOperation(ctx *Context, name string, id IDInput, state *WedataRunSqlScriptOperationState, opts ...ResourceOption) (*WedataRunSqlScriptOperation, error)
    public static WedataRunSqlScriptOperation Get(string name, Input<string> id, WedataRunSqlScriptOperationState? state, CustomResourceOptions? opts = null)
    public static WedataRunSqlScriptOperation get(String name, Output<String> id, WedataRunSqlScriptOperationState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WedataRunSqlScriptOperation    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:
    JobId string
    Job ID of the SQL script operation.
    Params string
    Advanced running parameter.
    ProjectId string
    Project ID.
    ScriptContent string
    Script content. executed by default if not transmitted.
    ScriptId string
    Script id.
    WedataRunSqlScriptOperationId string
    ID of the resource.
    JobId string
    Job ID of the SQL script operation.
    Params string
    Advanced running parameter.
    ProjectId string
    Project ID.
    ScriptContent string
    Script content. executed by default if not transmitted.
    ScriptId string
    Script id.
    WedataRunSqlScriptOperationId string
    ID of the resource.
    jobId String
    Job ID of the SQL script operation.
    params String
    Advanced running parameter.
    projectId String
    Project ID.
    scriptContent String
    Script content. executed by default if not transmitted.
    scriptId String
    Script id.
    wedataRunSqlScriptOperationId String
    ID of the resource.
    jobId string
    Job ID of the SQL script operation.
    params string
    Advanced running parameter.
    projectId string
    Project ID.
    scriptContent string
    Script content. executed by default if not transmitted.
    scriptId string
    Script id.
    wedataRunSqlScriptOperationId string
    ID of the resource.
    job_id str
    Job ID of the SQL script operation.
    params str
    Advanced running parameter.
    project_id str
    Project ID.
    script_content str
    Script content. executed by default if not transmitted.
    script_id str
    Script id.
    wedata_run_sql_script_operation_id str
    ID of the resource.
    jobId String
    Job ID of the SQL script operation.
    params String
    Advanced running parameter.
    projectId String
    Project ID.
    scriptContent String
    Script content. executed by default if not transmitted.
    scriptId String
    Script id.
    wedataRunSqlScriptOperationId String
    ID of the resource.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate