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

tencentcloud.GaapRealserver

Explore with Pulumi AI

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

    Provides a resource to create a GAAP realserver.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.GaapRealserver("foo", {
        ip: "1.1.1.1",
        tags: {
            test: "test",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.GaapRealserver("foo",
        ip="1.1.1.1",
        tags={
            "test": "test",
        })
    
    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.NewGaapRealserver(ctx, "foo", &tencentcloud.GaapRealserverArgs{
    			Ip: pulumi.String("1.1.1.1"),
    			Tags: pulumi.StringMap{
    				"test": pulumi.String("test"),
    			},
    		})
    		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 foo = new Tencentcloud.GaapRealserver("foo", new()
        {
            Ip = "1.1.1.1",
            Tags = 
            {
                { "test", "test" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.GaapRealserver;
    import com.pulumi.tencentcloud.GaapRealserverArgs;
    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 foo = new GaapRealserver("foo", GaapRealserverArgs.builder()
                .ip("1.1.1.1")
                .tags(Map.of("test", "test"))
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:GaapRealserver
        properties:
          ip: 1.1.1.1
          tags:
            test: test
    

    Create GaapRealserver Resource

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

    Constructor syntax

    new GaapRealserver(name: string, args?: GaapRealserverArgs, opts?: CustomResourceOptions);
    @overload
    def GaapRealserver(resource_name: str,
                       args: Optional[GaapRealserverArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def GaapRealserver(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       domain: Optional[str] = None,
                       gaap_realserver_id: Optional[str] = None,
                       ip: Optional[str] = None,
                       name: Optional[str] = None,
                       project_id: Optional[float] = None,
                       tags: Optional[Mapping[str, str]] = None)
    func NewGaapRealserver(ctx *Context, name string, args *GaapRealserverArgs, opts ...ResourceOption) (*GaapRealserver, error)
    public GaapRealserver(string name, GaapRealserverArgs? args = null, CustomResourceOptions? opts = null)
    public GaapRealserver(String name, GaapRealserverArgs args)
    public GaapRealserver(String name, GaapRealserverArgs args, CustomResourceOptions options)
    
    type: tencentcloud:GaapRealserver
    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 GaapRealserverArgs
    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 GaapRealserverArgs
    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 GaapRealserverArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GaapRealserverArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GaapRealserverArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Domain string
    Domain of the GAAP realserver, conflict with ip.
    GaapRealserverId string
    ID of the resource.
    Ip string
    IP of the GAAP realserver, conflict with domain.
    Name string
    Name of the GAAP realserver, the maximum length is 30.
    ProjectId double
    ID of the project within the GAAP realserver, '0' means is default project.
    Tags Dictionary<string, string>
    Tags of the GAAP realserver.
    Domain string
    Domain of the GAAP realserver, conflict with ip.
    GaapRealserverId string
    ID of the resource.
    Ip string
    IP of the GAAP realserver, conflict with domain.
    Name string
    Name of the GAAP realserver, the maximum length is 30.
    ProjectId float64
    ID of the project within the GAAP realserver, '0' means is default project.
    Tags map[string]string
    Tags of the GAAP realserver.
    domain String
    Domain of the GAAP realserver, conflict with ip.
    gaapRealserverId String
    ID of the resource.
    ip String
    IP of the GAAP realserver, conflict with domain.
    name String
    Name of the GAAP realserver, the maximum length is 30.
    projectId Double
    ID of the project within the GAAP realserver, '0' means is default project.
    tags Map<String,String>
    Tags of the GAAP realserver.
    domain string
    Domain of the GAAP realserver, conflict with ip.
    gaapRealserverId string
    ID of the resource.
    ip string
    IP of the GAAP realserver, conflict with domain.
    name string
    Name of the GAAP realserver, the maximum length is 30.
    projectId number
    ID of the project within the GAAP realserver, '0' means is default project.
    tags {[key: string]: string}
    Tags of the GAAP realserver.
    domain str
    Domain of the GAAP realserver, conflict with ip.
    gaap_realserver_id str
    ID of the resource.
    ip str
    IP of the GAAP realserver, conflict with domain.
    name str
    Name of the GAAP realserver, the maximum length is 30.
    project_id float
    ID of the project within the GAAP realserver, '0' means is default project.
    tags Mapping[str, str]
    Tags of the GAAP realserver.
    domain String
    Domain of the GAAP realserver, conflict with ip.
    gaapRealserverId String
    ID of the resource.
    ip String
    IP of the GAAP realserver, conflict with domain.
    name String
    Name of the GAAP realserver, the maximum length is 30.
    projectId Number
    ID of the project within the GAAP realserver, '0' means is default project.
    tags Map<String>
    Tags of the GAAP realserver.

    Outputs

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

    Get an existing GaapRealserver 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?: GaapRealserverState, opts?: CustomResourceOptions): GaapRealserver
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain: Optional[str] = None,
            gaap_realserver_id: Optional[str] = None,
            ip: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[float] = None,
            tags: Optional[Mapping[str, str]] = None) -> GaapRealserver
    func GetGaapRealserver(ctx *Context, name string, id IDInput, state *GaapRealserverState, opts ...ResourceOption) (*GaapRealserver, error)
    public static GaapRealserver Get(string name, Input<string> id, GaapRealserverState? state, CustomResourceOptions? opts = null)
    public static GaapRealserver get(String name, Output<String> id, GaapRealserverState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:GaapRealserver    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:
    Domain string
    Domain of the GAAP realserver, conflict with ip.
    GaapRealserverId string
    ID of the resource.
    Ip string
    IP of the GAAP realserver, conflict with domain.
    Name string
    Name of the GAAP realserver, the maximum length is 30.
    ProjectId double
    ID of the project within the GAAP realserver, '0' means is default project.
    Tags Dictionary<string, string>
    Tags of the GAAP realserver.
    Domain string
    Domain of the GAAP realserver, conflict with ip.
    GaapRealserverId string
    ID of the resource.
    Ip string
    IP of the GAAP realserver, conflict with domain.
    Name string
    Name of the GAAP realserver, the maximum length is 30.
    ProjectId float64
    ID of the project within the GAAP realserver, '0' means is default project.
    Tags map[string]string
    Tags of the GAAP realserver.
    domain String
    Domain of the GAAP realserver, conflict with ip.
    gaapRealserverId String
    ID of the resource.
    ip String
    IP of the GAAP realserver, conflict with domain.
    name String
    Name of the GAAP realserver, the maximum length is 30.
    projectId Double
    ID of the project within the GAAP realserver, '0' means is default project.
    tags Map<String,String>
    Tags of the GAAP realserver.
    domain string
    Domain of the GAAP realserver, conflict with ip.
    gaapRealserverId string
    ID of the resource.
    ip string
    IP of the GAAP realserver, conflict with domain.
    name string
    Name of the GAAP realserver, the maximum length is 30.
    projectId number
    ID of the project within the GAAP realserver, '0' means is default project.
    tags {[key: string]: string}
    Tags of the GAAP realserver.
    domain str
    Domain of the GAAP realserver, conflict with ip.
    gaap_realserver_id str
    ID of the resource.
    ip str
    IP of the GAAP realserver, conflict with domain.
    name str
    Name of the GAAP realserver, the maximum length is 30.
    project_id float
    ID of the project within the GAAP realserver, '0' means is default project.
    tags Mapping[str, str]
    Tags of the GAAP realserver.
    domain String
    Domain of the GAAP realserver, conflict with ip.
    gaapRealserverId String
    ID of the resource.
    ip String
    IP of the GAAP realserver, conflict with domain.
    name String
    Name of the GAAP realserver, the maximum length is 30.
    projectId Number
    ID of the project within the GAAP realserver, '0' means is default project.
    tags Map<String>
    Tags of the GAAP realserver.

    Import

    GAAP realserver can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/gaapRealserver:GaapRealserver  tencentcloud_gaap_realserver.foo rs-4ftghy6
    

    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