Get started with Pulumi in a free one hour introductory workshop. Register Now

GtmCidrmap

akamai.trafficmanagement.GtmCidrmap provides the resource for creating, configuring and importing a gtm Cidr Map to integrate easily with your existing GTM infrastructure to provide a secure, high performance, highly available and scalable solution for Global Traffic Management. Note: Import requires an ID of the format: existing_domain_name:existing_map_name

Example Usage

Basic usage:

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var demoCidrmap = new Akamai.Trafficmanagement.GtmCidrmap("demoCidrmap", new Akamai.Trafficmanagement.GtmCidrmapArgs
        {
            DefaultDatacenter = new Akamai.Trafficmanagement.Inputs.GtmCidrmapDefaultDatacenterArgs
            {
                DatacenterId = 5400,
                Nickname = "All Other CIDR Blocks",
            },
            Domain = "demo_domain.akadns.net",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-akamai/sdk/go/akamai/trafficmanagement"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := trafficmanagement.NewGtmCidrmap(ctx, "demoCidrmap", &trafficmanagement.GtmCidrmapArgs{
            DefaultDatacenter: &trafficmanagement.GtmCidrmapDefaultDatacenterArgs{
                DatacenterId: pulumi.Int(5400),
                Nickname:     pulumi.String("All Other CIDR Blocks"),
            },
            Domain: pulumi.String("demo_domain.akadns.net"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_akamai as akamai

demo_cidrmap = akamai.trafficmanagement.GtmCidrmap("demoCidrmap",
    default_datacenter={
        "datacenter_id": 5400,
        "nickname": "All Other CIDR Blocks",
    },
    domain="demo_domain.akadns.net")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const demoCidrmap = new akamai.trafficmanagement.GtmCidrmap("demo_cidrmap", {
    defaultDatacenter: {
        datacenterId: 5400,
        nickname: "All Other CIDR Blocks",
    },
    domain: "demo_domain.akadns.net",
});

Create a GtmCidrmap Resource

def GtmCidrmap(resource_name, opts=None, assignments=None, default_datacenter=None, domain=None, name=None, wait_on_complete=None, __props__=None)
func NewGtmCidrmap(ctx *Context, name string, args GtmCidrmapArgs, opts ...ResourceOption) (*GtmCidrmap, error)
public GtmCidrmap(string name, GtmCidrmapArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args GtmCidrmapArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GtmCidrmapArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GtmCidrmapArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

GtmCidrmap Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The GtmCidrmap resource accepts the following input properties:

DefaultDatacenter GtmCidrmapDefaultDatacenterArgs
Domain string

— Domain name

Assignments List<GtmCidrmapAssignmentArgs>

— (multiple allowed) * datacenter_id * nickname

Name string

— Resource name * default_datacenter * datacenter_id * nickname

WaitOnComplete bool

— (Boolean, Default: true) Wait for transaction to complete

DefaultDatacenter GtmCidrmapDefaultDatacenter
Domain string

— Domain name

Assignments []GtmCidrmapAssignment

— (multiple allowed) * datacenter_id * nickname

Name string

— Resource name * default_datacenter * datacenter_id * nickname

WaitOnComplete bool

— (Boolean, Default: true) Wait for transaction to complete

defaultDatacenter GtmCidrmapDefaultDatacenter
domain string

— Domain name

assignments GtmCidrmapAssignment[]

— (multiple allowed) * datacenter_id * nickname

name string

— Resource name * default_datacenter * datacenter_id * nickname

waitOnComplete boolean

— (Boolean, Default: true) Wait for transaction to complete

default_datacenter Dict[GtmCidrmapDefaultDatacenter]
domain str

— Domain name

assignments List[GtmCidrmapAssignment]

— (multiple allowed) * datacenter_id * nickname

name str

— Resource name * default_datacenter * datacenter_id * nickname

wait_on_complete bool

— (Boolean, Default: true) Wait for transaction to complete

Outputs

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

Look up an Existing GtmCidrmap Resource

Get an existing GtmCidrmap 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?: GtmCidrmapState, opts?: CustomResourceOptions): GtmCidrmap
static get(resource_name, id, opts=None, assignments=None, default_datacenter=None, domain=None, name=None, wait_on_complete=None, __props__=None)
func GetGtmCidrmap(ctx *Context, name string, id IDInput, state *GtmCidrmapState, opts ...ResourceOption) (*GtmCidrmap, error)
public static GtmCidrmap Get(string name, Input<string> id, GtmCidrmapState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Assignments List<GtmCidrmapAssignmentArgs>

— (multiple allowed) * datacenter_id * nickname

DefaultDatacenter GtmCidrmapDefaultDatacenterArgs
Domain string

— Domain name

Name string

— Resource name * default_datacenter * datacenter_id * nickname

WaitOnComplete bool

— (Boolean, Default: true) Wait for transaction to complete

Assignments []GtmCidrmapAssignment

— (multiple allowed) * datacenter_id * nickname

DefaultDatacenter GtmCidrmapDefaultDatacenter
Domain string

— Domain name

Name string

— Resource name * default_datacenter * datacenter_id * nickname

WaitOnComplete bool

— (Boolean, Default: true) Wait for transaction to complete

assignments GtmCidrmapAssignment[]

— (multiple allowed) * datacenter_id * nickname

defaultDatacenter GtmCidrmapDefaultDatacenter
domain string

— Domain name

name string

— Resource name * default_datacenter * datacenter_id * nickname

waitOnComplete boolean

— (Boolean, Default: true) Wait for transaction to complete

assignments List[GtmCidrmapAssignment]

— (multiple allowed) * datacenter_id * nickname

default_datacenter Dict[GtmCidrmapDefaultDatacenter]
domain str

— Domain name

name str

— Resource name * default_datacenter * datacenter_id * nickname

wait_on_complete bool

— (Boolean, Default: true) Wait for transaction to complete

Supporting Types

GtmCidrmapAssignment

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DatacenterId int
Nickname string
Blocks List<string>

— (List)

DatacenterId int
Nickname string
Blocks []string

— (List)

datacenterId number
nickname string
blocks string[]

— (List)

datacenter_id float
nickname str
blocks List[str]

— (List)

GtmCidrmapDefaultDatacenter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DatacenterId int
Nickname string
DatacenterId int
Nickname string
datacenterId number
nickname string
datacenter_id float
nickname str

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.