akamai.GtmDatacenter
Explore with Pulumi AI
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:
- Domain string
- City string
- Clone
Of int - Cloud
Server boolHost Header Override - Cloud
Server boolTargeting - Continent string
- Country string
- Default
Load GtmObject Datacenter Default Load Object - Latitude double
- Longitude double
- Nickname string
- State
Or stringProvince - Wait
On boolComplete
- Domain string
- City string
- Clone
Of int - Cloud
Server boolHost Header Override - Cloud
Server boolTargeting - Continent string
- Country string
- Default
Load GtmObject Datacenter Default Load Object Args - Latitude float64
- Longitude float64
- Nickname string
- State
Or stringProvince - Wait
On boolComplete
- domain String
- city String
- clone
Of Integer - cloud
Server BooleanHost Header Override - cloud
Server BooleanTargeting - continent String
- country String
- default
Load GtmObject Datacenter Default Load Object - latitude Double
- longitude Double
- nickname String
- state
Or StringProvince - wait
On BooleanComplete
- domain string
- city string
- clone
Of number - cloud
Server booleanHost Header Override - cloud
Server booleanTargeting - continent string
- country string
- default
Load GtmObject Datacenter Default Load Object - latitude number
- longitude number
- nickname string
- state
Or stringProvince - wait
On booleanComplete
- domain str
- city str
- clone_
of int - cloud_
server_ boolhost_ header_ override - cloud_
server_ booltargeting - continent str
- country str
- default_
load_ Gtmobject Datacenter Default Load Object Args - latitude float
- longitude float
- nickname str
- state_
or_ strprovince - wait_
on_ boolcomplete
- domain String
- city String
- clone
Of Number - cloud
Server BooleanHost Header Override - cloud
Server BooleanTargeting - continent String
- country String
- default
Load Property MapObject - latitude Number
- longitude Number
- nickname String
- state
Or StringProvince - wait
On BooleanComplete
Outputs
All input properties are implicitly available as output properties. Additionally, the GtmDatacenter resource produces the following output properties:
- Datacenter
Id int - Id string
- The provider-assigned unique ID for this managed resource.
- Ping
Interval int - Ping
Packet intSize - Score
Penalty int - Servermonitor
Liveness intCount - Servermonitor
Load intCount - Servermonitor
Pool string - Virtual bool
- Datacenter
Id int - Id string
- The provider-assigned unique ID for this managed resource.
- Ping
Interval int - Ping
Packet intSize - Score
Penalty int - Servermonitor
Liveness intCount - Servermonitor
Load intCount - Servermonitor
Pool string - Virtual bool
- datacenter
Id Integer - id String
- The provider-assigned unique ID for this managed resource.
- ping
Interval Integer - ping
Packet IntegerSize - score
Penalty Integer - servermonitor
Liveness IntegerCount - servermonitor
Load IntegerCount - servermonitor
Pool String - virtual Boolean
- datacenter
Id number - id string
- The provider-assigned unique ID for this managed resource.
- ping
Interval number - ping
Packet numberSize - score
Penalty number - servermonitor
Liveness numberCount - servermonitor
Load numberCount - servermonitor
Pool string - virtual boolean
- datacenter_
id int - id str
- The provider-assigned unique ID for this managed resource.
- ping_
interval int - ping_
packet_ intsize - score_
penalty int - servermonitor_
liveness_ intcount - servermonitor_
load_ intcount - servermonitor_
pool str - virtual bool
- datacenter
Id Number - id String
- The provider-assigned unique ID for this managed resource.
- ping
Interval Number - ping
Packet NumberSize - score
Penalty Number - servermonitor
Liveness NumberCount - servermonitor
Load NumberCount - servermonitor
Pool 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.
- City string
- Clone
Of int - Cloud
Server boolHost Header Override - Cloud
Server boolTargeting - Continent string
- Country string
- Datacenter
Id int - Default
Load GtmObject Datacenter Default Load Object - Domain string
- Latitude double
- Longitude double
- Nickname string
- Ping
Interval int - Ping
Packet intSize - Score
Penalty int - Servermonitor
Liveness intCount - Servermonitor
Load intCount - Servermonitor
Pool string - State
Or stringProvince - Virtual bool
- Wait
On boolComplete
- City string
- Clone
Of int - Cloud
Server boolHost Header Override - Cloud
Server boolTargeting - Continent string
- Country string
- Datacenter
Id int - Default
Load GtmObject Datacenter Default Load Object Args - Domain string
- Latitude float64
- Longitude float64
- Nickname string
- Ping
Interval int - Ping
Packet intSize - Score
Penalty int - Servermonitor
Liveness intCount - Servermonitor
Load intCount - Servermonitor
Pool string - State
Or stringProvince - Virtual bool
- Wait
On boolComplete
- city String
- clone
Of Integer - cloud
Server BooleanHost Header Override - cloud
Server BooleanTargeting - continent String
- country String
- datacenter
Id Integer - default
Load GtmObject Datacenter Default Load Object - domain String
- latitude Double
- longitude Double
- nickname String
- ping
Interval Integer - ping
Packet IntegerSize - score
Penalty Integer - servermonitor
Liveness IntegerCount - servermonitor
Load IntegerCount - servermonitor
Pool String - state
Or StringProvince - virtual Boolean
- wait
On BooleanComplete
- city string
- clone
Of number - cloud
Server booleanHost Header Override - cloud
Server booleanTargeting - continent string
- country string
- datacenter
Id number - default
Load GtmObject Datacenter Default Load Object - domain string
- latitude number
- longitude number
- nickname string
- ping
Interval number - ping
Packet numberSize - score
Penalty number - servermonitor
Liveness numberCount - servermonitor
Load numberCount - servermonitor
Pool string - state
Or stringProvince - virtual boolean
- wait
On booleanComplete
- city str
- clone_
of int - cloud_
server_ boolhost_ header_ override - cloud_
server_ booltargeting - continent str
- country str
- datacenter_
id int - default_
load_ Gtmobject Datacenter Default Load Object Args - domain str
- latitude float
- longitude float
- nickname str
- ping_
interval int - ping_
packet_ intsize - score_
penalty int - servermonitor_
liveness_ intcount - servermonitor_
load_ intcount - servermonitor_
pool str - state_
or_ strprovince - virtual bool
- wait_
on_ boolcomplete
- city String
- clone
Of Number - cloud
Server BooleanHost Header Override - cloud
Server BooleanTargeting - continent String
- country String
- datacenter
Id Number - default
Load Property MapObject - domain String
- latitude Number
- longitude Number
- nickname String
- ping
Interval Number - ping
Packet NumberSize - score
Penalty Number - servermonitor
Liveness NumberCount - servermonitor
Load NumberCount - servermonitor
Pool String - state
Or StringProvince - virtual Boolean
- wait
On BooleanComplete
Supporting Types
GtmDatacenterDefaultLoadObject, GtmDatacenterDefaultLoadObjectArgs
- Load
Object string - Load
Object intPort - Load
Servers List<string>
- Load
Object string - Load
Object intPort - Load
Servers []string
- load
Object String - load
Object IntegerPort - load
Servers List<String>
- load
Object string - load
Object numberPort - load
Servers string[]
- load_
object str - load_
object_ intport - load_
servers Sequence[str]
- load
Object String - load
Object NumberPort - load
Servers List<String>
Package Details
- Repository
- Akamai pulumi/pulumi-akamai
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
akamai
Terraform Provider.