1. Packages
  2. Akamai
  3. API Docs
  4. GtmDatacenter
Akamai v7.5.0 published on Friday, Oct 11, 2024 by Pulumi

akamai.GtmDatacenter

Explore with Pulumi AI

akamai logo
Akamai v7.5.0 published on Friday, Oct 11, 2024 by Pulumi

    Create GtmDatacenter Resource

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

    Constructor syntax

    new GtmDatacenter(name: string, args: GtmDatacenterArgs, opts?: CustomResourceOptions);
    @overload
    def GtmDatacenter(resource_name: str,
                      args: GtmDatacenterArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def GtmDatacenter(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      domain: Optional[str] = None,
                      default_load_object: Optional[GtmDatacenterDefaultLoadObjectArgs] = None,
                      cloud_server_host_header_override: Optional[bool] = None,
                      cloud_server_targeting: Optional[bool] = None,
                      continent: Optional[str] = None,
                      country: Optional[str] = None,
                      city: Optional[str] = None,
                      clone_of: Optional[int] = None,
                      latitude: Optional[float] = None,
                      longitude: Optional[float] = None,
                      nickname: Optional[str] = None,
                      state_or_province: Optional[str] = None,
                      wait_on_complete: Optional[bool] = None)
    func NewGtmDatacenter(ctx *Context, name string, args GtmDatacenterArgs, opts ...ResourceOption) (*GtmDatacenter, error)
    public GtmDatacenter(string name, GtmDatacenterArgs args, CustomResourceOptions? opts = null)
    public GtmDatacenter(String name, GtmDatacenterArgs args)
    public GtmDatacenter(String name, GtmDatacenterArgs args, CustomResourceOptions options)
    
    type: akamai:GtmDatacenter
    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 GtmDatacenterArgs
    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 GtmDatacenterArgs
    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 GtmDatacenterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GtmDatacenterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GtmDatacenterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var gtmDatacenterResource = new Akamai.GtmDatacenter("gtmDatacenterResource", new()
    {
        Domain = "string",
        DefaultLoadObject = new Akamai.Inputs.GtmDatacenterDefaultLoadObjectArgs
        {
            LoadObject = "string",
            LoadObjectPort = 0,
            LoadServers = new[]
            {
                "string",
            },
        },
        CloudServerHostHeaderOverride = false,
        CloudServerTargeting = false,
        Continent = "string",
        Country = "string",
        City = "string",
        CloneOf = 0,
        Latitude = 0,
        Longitude = 0,
        Nickname = "string",
        StateOrProvince = "string",
        WaitOnComplete = false,
    });
    
    example, err := akamai.NewGtmDatacenter(ctx, "gtmDatacenterResource", &akamai.GtmDatacenterArgs{
    	Domain: pulumi.String("string"),
    	DefaultLoadObject: &akamai.GtmDatacenterDefaultLoadObjectArgs{
    		LoadObject:     pulumi.String("string"),
    		LoadObjectPort: pulumi.Int(0),
    		LoadServers: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	CloudServerHostHeaderOverride: pulumi.Bool(false),
    	CloudServerTargeting:          pulumi.Bool(false),
    	Continent:                     pulumi.String("string"),
    	Country:                       pulumi.String("string"),
    	City:                          pulumi.String("string"),
    	CloneOf:                       pulumi.Int(0),
    	Latitude:                      pulumi.Float64(0),
    	Longitude:                     pulumi.Float64(0),
    	Nickname:                      pulumi.String("string"),
    	StateOrProvince:               pulumi.String("string"),
    	WaitOnComplete:                pulumi.Bool(false),
    })
    
    var gtmDatacenterResource = new GtmDatacenter("gtmDatacenterResource", GtmDatacenterArgs.builder()
        .domain("string")
        .defaultLoadObject(GtmDatacenterDefaultLoadObjectArgs.builder()
            .loadObject("string")
            .loadObjectPort(0)
            .loadServers("string")
            .build())
        .cloudServerHostHeaderOverride(false)
        .cloudServerTargeting(false)
        .continent("string")
        .country("string")
        .city("string")
        .cloneOf(0)
        .latitude(0)
        .longitude(0)
        .nickname("string")
        .stateOrProvince("string")
        .waitOnComplete(false)
        .build());
    
    gtm_datacenter_resource = akamai.GtmDatacenter("gtmDatacenterResource",
        domain="string",
        default_load_object={
            "load_object": "string",
            "load_object_port": 0,
            "load_servers": ["string"],
        },
        cloud_server_host_header_override=False,
        cloud_server_targeting=False,
        continent="string",
        country="string",
        city="string",
        clone_of=0,
        latitude=0,
        longitude=0,
        nickname="string",
        state_or_province="string",
        wait_on_complete=False)
    
    const gtmDatacenterResource = new akamai.GtmDatacenter("gtmDatacenterResource", {
        domain: "string",
        defaultLoadObject: {
            loadObject: "string",
            loadObjectPort: 0,
            loadServers: ["string"],
        },
        cloudServerHostHeaderOverride: false,
        cloudServerTargeting: false,
        continent: "string",
        country: "string",
        city: "string",
        cloneOf: 0,
        latitude: 0,
        longitude: 0,
        nickname: "string",
        stateOrProvince: "string",
        waitOnComplete: false,
    });
    
    type: akamai:GtmDatacenter
    properties:
        city: string
        cloneOf: 0
        cloudServerHostHeaderOverride: false
        cloudServerTargeting: false
        continent: string
        country: string
        defaultLoadObject:
            loadObject: string
            loadObjectPort: 0
            loadServers:
                - string
        domain: string
        latitude: 0
        longitude: 0
        nickname: string
        stateOrProvince: string
        waitOnComplete: false
    

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

    Outputs

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

    DatacenterId int
    Id string
    The provider-assigned unique ID for this managed resource.
    PingInterval int
    PingPacketSize int
    ScorePenalty int
    ServermonitorLivenessCount int
    ServermonitorLoadCount int
    ServermonitorPool string
    Virtual bool
    DatacenterId int
    Id string
    The provider-assigned unique ID for this managed resource.
    PingInterval int
    PingPacketSize int
    ScorePenalty int
    ServermonitorLivenessCount int
    ServermonitorLoadCount int
    ServermonitorPool string
    Virtual bool
    datacenterId Integer
    id String
    The provider-assigned unique ID for this managed resource.
    pingInterval Integer
    pingPacketSize Integer
    scorePenalty Integer
    servermonitorLivenessCount Integer
    servermonitorLoadCount Integer
    servermonitorPool String
    virtual Boolean
    datacenterId number
    id string
    The provider-assigned unique ID for this managed resource.
    pingInterval number
    pingPacketSize number
    scorePenalty number
    servermonitorLivenessCount number
    servermonitorLoadCount number
    servermonitorPool string
    virtual boolean
    datacenter_id int
    id str
    The provider-assigned unique ID for this managed resource.
    ping_interval int
    ping_packet_size int
    score_penalty int
    servermonitor_liveness_count int
    servermonitor_load_count int
    servermonitor_pool str
    virtual bool
    datacenterId Number
    id String
    The provider-assigned unique ID for this managed resource.
    pingInterval Number
    pingPacketSize Number
    scorePenalty Number
    servermonitorLivenessCount Number
    servermonitorLoadCount Number
    servermonitorPool String
    virtual Boolean

    Look up Existing GtmDatacenter Resource

    Get an existing GtmDatacenter 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?: GtmDatacenterState, opts?: CustomResourceOptions): GtmDatacenter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            city: Optional[str] = None,
            clone_of: Optional[int] = None,
            cloud_server_host_header_override: Optional[bool] = None,
            cloud_server_targeting: Optional[bool] = None,
            continent: Optional[str] = None,
            country: Optional[str] = None,
            datacenter_id: Optional[int] = None,
            default_load_object: Optional[GtmDatacenterDefaultLoadObjectArgs] = None,
            domain: Optional[str] = None,
            latitude: Optional[float] = None,
            longitude: Optional[float] = None,
            nickname: Optional[str] = None,
            ping_interval: Optional[int] = None,
            ping_packet_size: Optional[int] = None,
            score_penalty: Optional[int] = None,
            servermonitor_liveness_count: Optional[int] = None,
            servermonitor_load_count: Optional[int] = None,
            servermonitor_pool: Optional[str] = None,
            state_or_province: Optional[str] = None,
            virtual: Optional[bool] = None,
            wait_on_complete: Optional[bool] = None) -> GtmDatacenter
    func GetGtmDatacenter(ctx *Context, name string, id IDInput, state *GtmDatacenterState, opts ...ResourceOption) (*GtmDatacenter, error)
    public static GtmDatacenter Get(string name, Input<string> id, GtmDatacenterState? state, CustomResourceOptions? opts = null)
    public static GtmDatacenter get(String name, Output<String> id, GtmDatacenterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:

    Supporting Types

    GtmDatacenterDefaultLoadObject, GtmDatacenterDefaultLoadObjectArgs

    LoadObject string
    LoadObjectPort int
    LoadServers List<string>
    loadObject String
    loadObjectPort Integer
    loadServers List<String>
    loadObject String
    loadObjectPort Number
    loadServers List<String>

    Package Details

    Repository
    Akamai pulumi/pulumi-akamai
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the akamai Terraform Provider.
    akamai logo
    Akamai v7.5.0 published on Friday, Oct 11, 2024 by Pulumi