1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoSecurityApiService
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Provides a resource to create a TEO API security service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TeoSecurityApiService("example", {
        zoneId: "zone-3fkff38fyw8s",
        apiServices: {
            name: "tf-example",
            basePath: "/api/v1",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TeoSecurityApiService("example",
        zone_id="zone-3fkff38fyw8s",
        api_services={
            "name": "tf-example",
            "base_path": "/api/v1",
        })
    
    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.NewTeoSecurityApiService(ctx, "example", &tencentcloud.TeoSecurityApiServiceArgs{
    			ZoneId: pulumi.String("zone-3fkff38fyw8s"),
    			ApiServices: &tencentcloud.TeoSecurityApiServiceApiServicesArgs{
    				Name:     pulumi.String("tf-example"),
    				BasePath: pulumi.String("/api/v1"),
    			},
    		})
    		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.TeoSecurityApiService("example", new()
        {
            ZoneId = "zone-3fkff38fyw8s",
            ApiServices = new Tencentcloud.Inputs.TeoSecurityApiServiceApiServicesArgs
            {
                Name = "tf-example",
                BasePath = "/api/v1",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoSecurityApiService;
    import com.pulumi.tencentcloud.TeoSecurityApiServiceArgs;
    import com.pulumi.tencentcloud.inputs.TeoSecurityApiServiceApiServicesArgs;
    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 TeoSecurityApiService("example", TeoSecurityApiServiceArgs.builder()
                .zoneId("zone-3fkff38fyw8s")
                .apiServices(TeoSecurityApiServiceApiServicesArgs.builder()
                    .name("tf-example")
                    .basePath("/api/v1")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TeoSecurityApiService
        properties:
          zoneId: zone-3fkff38fyw8s
          apiServices:
            name: tf-example
            basePath: /api/v1
    
    Example coming soon!
    

    Create TeoSecurityApiService Resource

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

    Constructor syntax

    new TeoSecurityApiService(name: string, args: TeoSecurityApiServiceArgs, opts?: CustomResourceOptions);
    @overload
    def TeoSecurityApiService(resource_name: str,
                              args: TeoSecurityApiServiceArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoSecurityApiService(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              api_services: Optional[TeoSecurityApiServiceApiServicesArgs] = None,
                              zone_id: Optional[str] = None,
                              teo_security_api_service_id: Optional[str] = None)
    func NewTeoSecurityApiService(ctx *Context, name string, args TeoSecurityApiServiceArgs, opts ...ResourceOption) (*TeoSecurityApiService, error)
    public TeoSecurityApiService(string name, TeoSecurityApiServiceArgs args, CustomResourceOptions? opts = null)
    public TeoSecurityApiService(String name, TeoSecurityApiServiceArgs args)
    public TeoSecurityApiService(String name, TeoSecurityApiServiceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoSecurityApiService
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_teosecurityapiservice" "name" {
        # resource properties
    }

    Parameters

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

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

    ApiServices TeoSecurityApiServiceApiServices
    API service configuration. Only one service is allowed per request.
    ZoneId string
    Site ID.
    TeoSecurityApiServiceId string
    ID of the resource.
    ApiServices TeoSecurityApiServiceApiServicesArgs
    API service configuration. Only one service is allowed per request.
    ZoneId string
    Site ID.
    TeoSecurityApiServiceId string
    ID of the resource.
    api_services object
    API service configuration. Only one service is allowed per request.
    zone_id string
    Site ID.
    teo_security_api_service_id string
    ID of the resource.
    apiServices TeoSecurityApiServiceApiServices
    API service configuration. Only one service is allowed per request.
    zoneId String
    Site ID.
    teoSecurityApiServiceId String
    ID of the resource.
    apiServices TeoSecurityApiServiceApiServices
    API service configuration. Only one service is allowed per request.
    zoneId string
    Site ID.
    teoSecurityApiServiceId string
    ID of the resource.
    api_services TeoSecurityApiServiceApiServicesArgs
    API service configuration. Only one service is allowed per request.
    zone_id str
    Site ID.
    teo_security_api_service_id str
    ID of the resource.
    apiServices Property Map
    API service configuration. Only one service is allowed per request.
    zoneId String
    Site ID.
    teoSecurityApiServiceId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeoSecurityApiService 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 TeoSecurityApiService Resource

    Get an existing TeoSecurityApiService 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?: TeoSecurityApiServiceState, opts?: CustomResourceOptions): TeoSecurityApiService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_services: Optional[TeoSecurityApiServiceApiServicesArgs] = None,
            teo_security_api_service_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoSecurityApiService
    func GetTeoSecurityApiService(ctx *Context, name string, id IDInput, state *TeoSecurityApiServiceState, opts ...ResourceOption) (*TeoSecurityApiService, error)
    public static TeoSecurityApiService Get(string name, Input<string> id, TeoSecurityApiServiceState? state, CustomResourceOptions? opts = null)
    public static TeoSecurityApiService get(String name, Output<String> id, TeoSecurityApiServiceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoSecurityApiService    get:      id: ${id}
    import {
      to = tencentcloud_teosecurityapiservice.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:
    ApiServices TeoSecurityApiServiceApiServices
    API service configuration. Only one service is allowed per request.
    TeoSecurityApiServiceId string
    ID of the resource.
    ZoneId string
    Site ID.
    ApiServices TeoSecurityApiServiceApiServicesArgs
    API service configuration. Only one service is allowed per request.
    TeoSecurityApiServiceId string
    ID of the resource.
    ZoneId string
    Site ID.
    api_services object
    API service configuration. Only one service is allowed per request.
    teo_security_api_service_id string
    ID of the resource.
    zone_id string
    Site ID.
    apiServices TeoSecurityApiServiceApiServices
    API service configuration. Only one service is allowed per request.
    teoSecurityApiServiceId String
    ID of the resource.
    zoneId String
    Site ID.
    apiServices TeoSecurityApiServiceApiServices
    API service configuration. Only one service is allowed per request.
    teoSecurityApiServiceId string
    ID of the resource.
    zoneId string
    Site ID.
    api_services TeoSecurityApiServiceApiServicesArgs
    API service configuration. Only one service is allowed per request.
    teo_security_api_service_id str
    ID of the resource.
    zone_id str
    Site ID.
    apiServices Property Map
    API service configuration. Only one service is allowed per request.
    teoSecurityApiServiceId String
    ID of the resource.
    zoneId String
    Site ID.

    Supporting Types

    TeoSecurityApiServiceApiServices, TeoSecurityApiServiceApiServicesArgs

    BasePath string
    API service base path, e.g. /tt.
    Name string
    API service name.
    Id string
    ID of the resource.
    BasePath string
    API service base path, e.g. /tt.
    Name string
    API service name.
    Id string
    ID of the resource.
    base_path string
    API service base path, e.g. /tt.
    name string
    API service name.
    id string
    ID of the resource.
    basePath String
    API service base path, e.g. /tt.
    name String
    API service name.
    id String
    ID of the resource.
    basePath string
    API service base path, e.g. /tt.
    name string
    API service name.
    id string
    ID of the resource.
    base_path str
    API service base path, e.g. /tt.
    name str
    API service name.
    id str
    ID of the resource.
    basePath String
    API service base path, e.g. /tt.
    name String
    API service name.
    id String
    ID of the resource.

    Import

    TEO security API service can be imported using the zoneId#apiServiceId, e.g.

    $ pulumi import tencentcloud:index/teoSecurityApiService:TeoSecurityApiService example zone-3fkff38fyw8s#apisrv-0000038524
    

    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.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.