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

tencentcloud.ApiGatewayPluginAttachment

Explore with Pulumi AI

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

    Provides a resource to create a apiGateway plugin_attachment

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleApiGatewayPlugin = new tencentcloud.ApiGatewayPlugin("exampleApiGatewayPlugin", {
        pluginName: "tf-example",
        pluginType: "IPControl",
        pluginData: JSON.stringify({
            type: "white_list",
            blocks: "1.1.1.1",
        }),
        description: "desc.",
    });
    const exampleApiGatewayService = new tencentcloud.ApiGatewayService("exampleApiGatewayService", {
        serviceName: "tf_example_service",
        protocol: "http&https",
        serviceDesc: "your nice service",
        netTypes: [
            "INNER",
            "OUTER",
        ],
        ipVersion: "IPv4",
    });
    const exampleApiGatewayApi = new tencentcloud.ApiGatewayApi("exampleApiGatewayApi", {
        serviceId: exampleApiGatewayService.apiGatewayServiceId,
        apiName: "tf_example_api",
        apiDesc: "desc.",
        authType: "APP",
        protocol: "HTTP",
        enableCors: true,
        requestConfigPath: "/user/info",
        requestConfigMethod: "GET",
        requestParameters: [{
            name: "name",
            position: "QUERY",
            type: "string",
            desc: "desc.",
            defaultValue: "terraform",
            required: true,
        }],
        serviceConfigType: "HTTP",
        serviceConfigTimeout: 15,
        serviceConfigUrl: "https://www.qq.com",
        serviceConfigPath: "/user",
        serviceConfigMethod: "GET",
        responseType: "HTML",
        responseSuccessExample: "success",
        responseFailExample: "fail",
        responseErrorCodes: [{
            code: 400,
            msg: "system error msg.",
            desc: "system error desc.",
            convertedCode: 407,
            needConvert: true,
        }],
    });
    const exampleApiGatewayServiceRelease = new tencentcloud.ApiGatewayServiceRelease("exampleApiGatewayServiceRelease", {
        serviceId: exampleApiGatewayApi.serviceId,
        environmentName: "release",
        releaseDesc: "desc.",
    });
    const exampleApiGatewayPluginAttachment = new tencentcloud.ApiGatewayPluginAttachment("exampleApiGatewayPluginAttachment", {
        pluginId: exampleApiGatewayPlugin.apiGatewayPluginId,
        serviceId: exampleApiGatewayServiceRelease.serviceId,
        apiId: exampleApiGatewayApi.apiGatewayApiId,
        environmentName: "release",
    });
    
    import pulumi
    import json
    import pulumi_tencentcloud as tencentcloud
    
    example_api_gateway_plugin = tencentcloud.ApiGatewayPlugin("exampleApiGatewayPlugin",
        plugin_name="tf-example",
        plugin_type="IPControl",
        plugin_data=json.dumps({
            "type": "white_list",
            "blocks": "1.1.1.1",
        }),
        description="desc.")
    example_api_gateway_service = tencentcloud.ApiGatewayService("exampleApiGatewayService",
        service_name="tf_example_service",
        protocol="http&https",
        service_desc="your nice service",
        net_types=[
            "INNER",
            "OUTER",
        ],
        ip_version="IPv4")
    example_api_gateway_api = tencentcloud.ApiGatewayApi("exampleApiGatewayApi",
        service_id=example_api_gateway_service.api_gateway_service_id,
        api_name="tf_example_api",
        api_desc="desc.",
        auth_type="APP",
        protocol="HTTP",
        enable_cors=True,
        request_config_path="/user/info",
        request_config_method="GET",
        request_parameters=[{
            "name": "name",
            "position": "QUERY",
            "type": "string",
            "desc": "desc.",
            "default_value": "terraform",
            "required": True,
        }],
        service_config_type="HTTP",
        service_config_timeout=15,
        service_config_url="https://www.qq.com",
        service_config_path="/user",
        service_config_method="GET",
        response_type="HTML",
        response_success_example="success",
        response_fail_example="fail",
        response_error_codes=[{
            "code": 400,
            "msg": "system error msg.",
            "desc": "system error desc.",
            "converted_code": 407,
            "need_convert": True,
        }])
    example_api_gateway_service_release = tencentcloud.ApiGatewayServiceRelease("exampleApiGatewayServiceRelease",
        service_id=example_api_gateway_api.service_id,
        environment_name="release",
        release_desc="desc.")
    example_api_gateway_plugin_attachment = tencentcloud.ApiGatewayPluginAttachment("exampleApiGatewayPluginAttachment",
        plugin_id=example_api_gateway_plugin.api_gateway_plugin_id,
        service_id=example_api_gateway_service_release.service_id,
        api_id=example_api_gateway_api.api_gateway_api_id,
        environment_name="release")
    
    package main
    
    import (
    	"encoding/json"
    
    	"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 {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"type":   "white_list",
    			"blocks": "1.1.1.1",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		exampleApiGatewayPlugin, err := tencentcloud.NewApiGatewayPlugin(ctx, "exampleApiGatewayPlugin", &tencentcloud.ApiGatewayPluginArgs{
    			PluginName:  pulumi.String("tf-example"),
    			PluginType:  pulumi.String("IPControl"),
    			PluginData:  pulumi.String(json0),
    			Description: pulumi.String("desc."),
    		})
    		if err != nil {
    			return err
    		}
    		exampleApiGatewayService, err := tencentcloud.NewApiGatewayService(ctx, "exampleApiGatewayService", &tencentcloud.ApiGatewayServiceArgs{
    			ServiceName: pulumi.String("tf_example_service"),
    			Protocol:    pulumi.String("http&https"),
    			ServiceDesc: pulumi.String("your nice service"),
    			NetTypes: pulumi.StringArray{
    				pulumi.String("INNER"),
    				pulumi.String("OUTER"),
    			},
    			IpVersion: pulumi.String("IPv4"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleApiGatewayApi, err := tencentcloud.NewApiGatewayApi(ctx, "exampleApiGatewayApi", &tencentcloud.ApiGatewayApiArgs{
    			ServiceId:           exampleApiGatewayService.ApiGatewayServiceId,
    			ApiName:             pulumi.String("tf_example_api"),
    			ApiDesc:             pulumi.String("desc."),
    			AuthType:            pulumi.String("APP"),
    			Protocol:            pulumi.String("HTTP"),
    			EnableCors:          pulumi.Bool(true),
    			RequestConfigPath:   pulumi.String("/user/info"),
    			RequestConfigMethod: pulumi.String("GET"),
    			RequestParameters: tencentcloud.ApiGatewayApiRequestParameterArray{
    				&tencentcloud.ApiGatewayApiRequestParameterArgs{
    					Name:         pulumi.String("name"),
    					Position:     pulumi.String("QUERY"),
    					Type:         pulumi.String("string"),
    					Desc:         pulumi.String("desc."),
    					DefaultValue: pulumi.String("terraform"),
    					Required:     pulumi.Bool(true),
    				},
    			},
    			ServiceConfigType:      pulumi.String("HTTP"),
    			ServiceConfigTimeout:   pulumi.Float64(15),
    			ServiceConfigUrl:       pulumi.String("https://www.qq.com"),
    			ServiceConfigPath:      pulumi.String("/user"),
    			ServiceConfigMethod:    pulumi.String("GET"),
    			ResponseType:           pulumi.String("HTML"),
    			ResponseSuccessExample: pulumi.String("success"),
    			ResponseFailExample:    pulumi.String("fail"),
    			ResponseErrorCodes: tencentcloud.ApiGatewayApiResponseErrorCodeArray{
    				&tencentcloud.ApiGatewayApiResponseErrorCodeArgs{
    					Code:          pulumi.Float64(400),
    					Msg:           pulumi.String("system error msg."),
    					Desc:          pulumi.String("system error desc."),
    					ConvertedCode: pulumi.Float64(407),
    					NeedConvert:   pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleApiGatewayServiceRelease, err := tencentcloud.NewApiGatewayServiceRelease(ctx, "exampleApiGatewayServiceRelease", &tencentcloud.ApiGatewayServiceReleaseArgs{
    			ServiceId:       exampleApiGatewayApi.ServiceId,
    			EnvironmentName: pulumi.String("release"),
    			ReleaseDesc:     pulumi.String("desc."),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewApiGatewayPluginAttachment(ctx, "exampleApiGatewayPluginAttachment", &tencentcloud.ApiGatewayPluginAttachmentArgs{
    			PluginId:        exampleApiGatewayPlugin.ApiGatewayPluginId,
    			ServiceId:       exampleApiGatewayServiceRelease.ServiceId,
    			ApiId:           exampleApiGatewayApi.ApiGatewayApiId,
    			EnvironmentName: pulumi.String("release"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleApiGatewayPlugin = new Tencentcloud.ApiGatewayPlugin("exampleApiGatewayPlugin", new()
        {
            PluginName = "tf-example",
            PluginType = "IPControl",
            PluginData = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["type"] = "white_list",
                ["blocks"] = "1.1.1.1",
            }),
            Description = "desc.",
        });
    
        var exampleApiGatewayService = new Tencentcloud.ApiGatewayService("exampleApiGatewayService", new()
        {
            ServiceName = "tf_example_service",
            Protocol = "http&https",
            ServiceDesc = "your nice service",
            NetTypes = new[]
            {
                "INNER",
                "OUTER",
            },
            IpVersion = "IPv4",
        });
    
        var exampleApiGatewayApi = new Tencentcloud.ApiGatewayApi("exampleApiGatewayApi", new()
        {
            ServiceId = exampleApiGatewayService.ApiGatewayServiceId,
            ApiName = "tf_example_api",
            ApiDesc = "desc.",
            AuthType = "APP",
            Protocol = "HTTP",
            EnableCors = true,
            RequestConfigPath = "/user/info",
            RequestConfigMethod = "GET",
            RequestParameters = new[]
            {
                new Tencentcloud.Inputs.ApiGatewayApiRequestParameterArgs
                {
                    Name = "name",
                    Position = "QUERY",
                    Type = "string",
                    Desc = "desc.",
                    DefaultValue = "terraform",
                    Required = true,
                },
            },
            ServiceConfigType = "HTTP",
            ServiceConfigTimeout = 15,
            ServiceConfigUrl = "https://www.qq.com",
            ServiceConfigPath = "/user",
            ServiceConfigMethod = "GET",
            ResponseType = "HTML",
            ResponseSuccessExample = "success",
            ResponseFailExample = "fail",
            ResponseErrorCodes = new[]
            {
                new Tencentcloud.Inputs.ApiGatewayApiResponseErrorCodeArgs
                {
                    Code = 400,
                    Msg = "system error msg.",
                    Desc = "system error desc.",
                    ConvertedCode = 407,
                    NeedConvert = true,
                },
            },
        });
    
        var exampleApiGatewayServiceRelease = new Tencentcloud.ApiGatewayServiceRelease("exampleApiGatewayServiceRelease", new()
        {
            ServiceId = exampleApiGatewayApi.ServiceId,
            EnvironmentName = "release",
            ReleaseDesc = "desc.",
        });
    
        var exampleApiGatewayPluginAttachment = new Tencentcloud.ApiGatewayPluginAttachment("exampleApiGatewayPluginAttachment", new()
        {
            PluginId = exampleApiGatewayPlugin.ApiGatewayPluginId,
            ServiceId = exampleApiGatewayServiceRelease.ServiceId,
            ApiId = exampleApiGatewayApi.ApiGatewayApiId,
            EnvironmentName = "release",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ApiGatewayPlugin;
    import com.pulumi.tencentcloud.ApiGatewayPluginArgs;
    import com.pulumi.tencentcloud.ApiGatewayService;
    import com.pulumi.tencentcloud.ApiGatewayServiceArgs;
    import com.pulumi.tencentcloud.ApiGatewayApi;
    import com.pulumi.tencentcloud.ApiGatewayApiArgs;
    import com.pulumi.tencentcloud.inputs.ApiGatewayApiRequestParameterArgs;
    import com.pulumi.tencentcloud.inputs.ApiGatewayApiResponseErrorCodeArgs;
    import com.pulumi.tencentcloud.ApiGatewayServiceRelease;
    import com.pulumi.tencentcloud.ApiGatewayServiceReleaseArgs;
    import com.pulumi.tencentcloud.ApiGatewayPluginAttachment;
    import com.pulumi.tencentcloud.ApiGatewayPluginAttachmentArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 exampleApiGatewayPlugin = new ApiGatewayPlugin("exampleApiGatewayPlugin", ApiGatewayPluginArgs.builder()
                .pluginName("tf-example")
                .pluginType("IPControl")
                .pluginData(serializeJson(
                    jsonObject(
                        jsonProperty("type", "white_list"),
                        jsonProperty("blocks", "1.1.1.1")
                    )))
                .description("desc.")
                .build());
    
            var exampleApiGatewayService = new ApiGatewayService("exampleApiGatewayService", ApiGatewayServiceArgs.builder()
                .serviceName("tf_example_service")
                .protocol("http&https")
                .serviceDesc("your nice service")
                .netTypes(            
                    "INNER",
                    "OUTER")
                .ipVersion("IPv4")
                .build());
    
            var exampleApiGatewayApi = new ApiGatewayApi("exampleApiGatewayApi", ApiGatewayApiArgs.builder()
                .serviceId(exampleApiGatewayService.apiGatewayServiceId())
                .apiName("tf_example_api")
                .apiDesc("desc.")
                .authType("APP")
                .protocol("HTTP")
                .enableCors(true)
                .requestConfigPath("/user/info")
                .requestConfigMethod("GET")
                .requestParameters(ApiGatewayApiRequestParameterArgs.builder()
                    .name("name")
                    .position("QUERY")
                    .type("string")
                    .desc("desc.")
                    .defaultValue("terraform")
                    .required(true)
                    .build())
                .serviceConfigType("HTTP")
                .serviceConfigTimeout(15)
                .serviceConfigUrl("https://www.qq.com")
                .serviceConfigPath("/user")
                .serviceConfigMethod("GET")
                .responseType("HTML")
                .responseSuccessExample("success")
                .responseFailExample("fail")
                .responseErrorCodes(ApiGatewayApiResponseErrorCodeArgs.builder()
                    .code(400)
                    .msg("system error msg.")
                    .desc("system error desc.")
                    .convertedCode(407)
                    .needConvert(true)
                    .build())
                .build());
    
            var exampleApiGatewayServiceRelease = new ApiGatewayServiceRelease("exampleApiGatewayServiceRelease", ApiGatewayServiceReleaseArgs.builder()
                .serviceId(exampleApiGatewayApi.serviceId())
                .environmentName("release")
                .releaseDesc("desc.")
                .build());
    
            var exampleApiGatewayPluginAttachment = new ApiGatewayPluginAttachment("exampleApiGatewayPluginAttachment", ApiGatewayPluginAttachmentArgs.builder()
                .pluginId(exampleApiGatewayPlugin.apiGatewayPluginId())
                .serviceId(exampleApiGatewayServiceRelease.serviceId())
                .apiId(exampleApiGatewayApi.apiGatewayApiId())
                .environmentName("release")
                .build());
    
        }
    }
    
    resources:
      exampleApiGatewayPlugin:
        type: tencentcloud:ApiGatewayPlugin
        properties:
          pluginName: tf-example
          pluginType: IPControl
          pluginData:
            fn::toJSON:
              type: white_list
              blocks: 1.1.1.1
          description: desc.
      exampleApiGatewayService:
        type: tencentcloud:ApiGatewayService
        properties:
          serviceName: tf_example_service
          protocol: http&https
          serviceDesc: your nice service
          netTypes:
            - INNER
            - OUTER
          ipVersion: IPv4
      exampleApiGatewayApi:
        type: tencentcloud:ApiGatewayApi
        properties:
          serviceId: ${exampleApiGatewayService.apiGatewayServiceId}
          apiName: tf_example_api
          apiDesc: desc.
          authType: APP
          protocol: HTTP
          enableCors: true
          requestConfigPath: /user/info
          requestConfigMethod: GET
          requestParameters:
            - name: name
              position: QUERY
              type: string
              desc: desc.
              defaultValue: terraform
              required: true
          serviceConfigType: HTTP
          serviceConfigTimeout: 15
          serviceConfigUrl: https://www.qq.com
          serviceConfigPath: /user
          serviceConfigMethod: GET
          responseType: HTML
          responseSuccessExample: success
          responseFailExample: fail
          responseErrorCodes:
            - code: 400
              msg: system error msg.
              desc: system error desc.
              convertedCode: 407
              needConvert: true
      exampleApiGatewayServiceRelease:
        type: tencentcloud:ApiGatewayServiceRelease
        properties:
          serviceId: ${exampleApiGatewayApi.serviceId}
          environmentName: release
          releaseDesc: desc.
      exampleApiGatewayPluginAttachment:
        type: tencentcloud:ApiGatewayPluginAttachment
        properties:
          pluginId: ${exampleApiGatewayPlugin.apiGatewayPluginId}
          serviceId: ${exampleApiGatewayServiceRelease.serviceId}
          apiId: ${exampleApiGatewayApi.apiGatewayApiId}
          environmentName: release
    

    Create ApiGatewayPluginAttachment Resource

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

    Constructor syntax

    new ApiGatewayPluginAttachment(name: string, args: ApiGatewayPluginAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def ApiGatewayPluginAttachment(resource_name: str,
                                   args: ApiGatewayPluginAttachmentArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApiGatewayPluginAttachment(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   api_id: Optional[str] = None,
                                   environment_name: Optional[str] = None,
                                   plugin_id: Optional[str] = None,
                                   service_id: Optional[str] = None,
                                   api_gateway_plugin_attachment_id: Optional[str] = None)
    func NewApiGatewayPluginAttachment(ctx *Context, name string, args ApiGatewayPluginAttachmentArgs, opts ...ResourceOption) (*ApiGatewayPluginAttachment, error)
    public ApiGatewayPluginAttachment(string name, ApiGatewayPluginAttachmentArgs args, CustomResourceOptions? opts = null)
    public ApiGatewayPluginAttachment(String name, ApiGatewayPluginAttachmentArgs args)
    public ApiGatewayPluginAttachment(String name, ApiGatewayPluginAttachmentArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ApiGatewayPluginAttachment
    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 ApiGatewayPluginAttachmentArgs
    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 ApiGatewayPluginAttachmentArgs
    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 ApiGatewayPluginAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApiGatewayPluginAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApiGatewayPluginAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ApiId string
    Id of API.
    EnvironmentName string
    Name of Environment.
    PluginId string
    Id of Plugin.
    ServiceId string
    Id of Service.
    ApiGatewayPluginAttachmentId string
    ID of the resource.
    ApiId string
    Id of API.
    EnvironmentName string
    Name of Environment.
    PluginId string
    Id of Plugin.
    ServiceId string
    Id of Service.
    ApiGatewayPluginAttachmentId string
    ID of the resource.
    apiId String
    Id of API.
    environmentName String
    Name of Environment.
    pluginId String
    Id of Plugin.
    serviceId String
    Id of Service.
    apiGatewayPluginAttachmentId String
    ID of the resource.
    apiId string
    Id of API.
    environmentName string
    Name of Environment.
    pluginId string
    Id of Plugin.
    serviceId string
    Id of Service.
    apiGatewayPluginAttachmentId string
    ID of the resource.
    api_id str
    Id of API.
    environment_name str
    Name of Environment.
    plugin_id str
    Id of Plugin.
    service_id str
    Id of Service.
    api_gateway_plugin_attachment_id str
    ID of the resource.
    apiId String
    Id of API.
    environmentName String
    Name of Environment.
    pluginId String
    Id of Plugin.
    serviceId String
    Id of Service.
    apiGatewayPluginAttachmentId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApiGatewayPluginAttachment 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ApiGatewayPluginAttachment Resource

    Get an existing ApiGatewayPluginAttachment 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?: ApiGatewayPluginAttachmentState, opts?: CustomResourceOptions): ApiGatewayPluginAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_gateway_plugin_attachment_id: Optional[str] = None,
            api_id: Optional[str] = None,
            environment_name: Optional[str] = None,
            plugin_id: Optional[str] = None,
            service_id: Optional[str] = None) -> ApiGatewayPluginAttachment
    func GetApiGatewayPluginAttachment(ctx *Context, name string, id IDInput, state *ApiGatewayPluginAttachmentState, opts ...ResourceOption) (*ApiGatewayPluginAttachment, error)
    public static ApiGatewayPluginAttachment Get(string name, Input<string> id, ApiGatewayPluginAttachmentState? state, CustomResourceOptions? opts = null)
    public static ApiGatewayPluginAttachment get(String name, Output<String> id, ApiGatewayPluginAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ApiGatewayPluginAttachment    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:
    ApiGatewayPluginAttachmentId string
    ID of the resource.
    ApiId string
    Id of API.
    EnvironmentName string
    Name of Environment.
    PluginId string
    Id of Plugin.
    ServiceId string
    Id of Service.
    ApiGatewayPluginAttachmentId string
    ID of the resource.
    ApiId string
    Id of API.
    EnvironmentName string
    Name of Environment.
    PluginId string
    Id of Plugin.
    ServiceId string
    Id of Service.
    apiGatewayPluginAttachmentId String
    ID of the resource.
    apiId String
    Id of API.
    environmentName String
    Name of Environment.
    pluginId String
    Id of Plugin.
    serviceId String
    Id of Service.
    apiGatewayPluginAttachmentId string
    ID of the resource.
    apiId string
    Id of API.
    environmentName string
    Name of Environment.
    pluginId string
    Id of Plugin.
    serviceId string
    Id of Service.
    api_gateway_plugin_attachment_id str
    ID of the resource.
    api_id str
    Id of API.
    environment_name str
    Name of Environment.
    plugin_id str
    Id of Plugin.
    service_id str
    Id of Service.
    apiGatewayPluginAttachmentId String
    ID of the resource.
    apiId String
    Id of API.
    environmentName String
    Name of Environment.
    pluginId String
    Id of Plugin.
    serviceId String
    Id of Service.

    Import

    apiGateway plugin_attachment can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/apiGatewayPluginAttachment:ApiGatewayPluginAttachment example plugin-hnqntalp#service-q3f533ja#release#api-62ud9woa
    

    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