published on Monday, May 11, 2026 by tencentcloudstack
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:
- Api
Services TeoSecurity Api Service Api Services - API service configuration. Only one service is allowed per request.
- Zone
Id string - Site ID.
- Teo
Security stringApi Service Id - ID of the resource.
- Api
Services TeoSecurity Api Service Api Services Args - API service configuration. Only one service is allowed per request.
- Zone
Id string - Site ID.
- Teo
Security stringApi Service Id - ID of the resource.
- api_
services object - API service configuration. Only one service is allowed per request.
- zone_
id string - Site ID.
- teo_
security_ stringapi_ service_ id - ID of the resource.
- api
Services TeoSecurity Api Service Api Services - API service configuration. Only one service is allowed per request.
- zone
Id String - Site ID.
- teo
Security StringApi Service Id - ID of the resource.
- api
Services TeoSecurity Api Service Api Services - API service configuration. Only one service is allowed per request.
- zone
Id string - Site ID.
- teo
Security stringApi Service Id - ID of the resource.
- api_
services TeoSecurity Api Service Api Services Args - API service configuration. Only one service is allowed per request.
- zone_
id str - Site ID.
- teo_
security_ strapi_ service_ id - ID of the resource.
- api
Services Property Map - API service configuration. Only one service is allowed per request.
- zone
Id String - Site ID.
- teo
Security StringApi Service Id - 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) -> TeoSecurityApiServicefunc 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.
- Api
Services TeoSecurity Api Service Api Services - API service configuration. Only one service is allowed per request.
- Teo
Security stringApi Service Id - ID of the resource.
- Zone
Id string - Site ID.
- Api
Services TeoSecurity Api Service Api Services Args - API service configuration. Only one service is allowed per request.
- Teo
Security stringApi Service Id - ID of the resource.
- Zone
Id string - Site ID.
- api_
services object - API service configuration. Only one service is allowed per request.
- teo_
security_ stringapi_ service_ id - ID of the resource.
- zone_
id string - Site ID.
- api
Services TeoSecurity Api Service Api Services - API service configuration. Only one service is allowed per request.
- teo
Security StringApi Service Id - ID of the resource.
- zone
Id String - Site ID.
- api
Services TeoSecurity Api Service Api Services - API service configuration. Only one service is allowed per request.
- teo
Security stringApi Service Id - ID of the resource.
- zone
Id string - Site ID.
- api_
services TeoSecurity Api Service Api Services Args - API service configuration. Only one service is allowed per request.
- teo_
security_ strapi_ service_ id - ID of the resource.
- zone_
id str - Site ID.
- api
Services Property Map - API service configuration. Only one service is allowed per request.
- teo
Security StringApi Service Id - ID of the resource.
- zone
Id String - Site ID.
Supporting Types
TeoSecurityApiServiceApiServices, TeoSecurityApiServiceApiServicesArgs
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
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
