cli-gtm

command module
v0.0.0-...-ff98274 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

README

Akamai CLI for Global Traffic Management (GTM)

Go Report Card FOSSA Status

An Akamai CLI package for managing GTM Domains and associated objects.

Getting Started

Installing

To install this package, use Akamai CLI:

$ akamai install gtm

You may also use this as a stand-alone command by downloading the latest release binary for your system, or by cloning this repository and compiling it yourself.

Compiling from Source

If you want to compile it from source, you will need Go 1.7 or later, and the Dep package manager installed:

  1. Fetch the package:
    go get github.com/akamai/cli-gtm
  2. Change to the package directory:
    cd $GOPATH/src/github.com/akamai/cli-gtm
  3. Install dependencies using dep:
    dep ensure
  4. Compile the binary:
  • Linux/macOS/*nix: go build -o akamai-gtm
  • Windows: go build -o akamai-gtm.exe
  1. Move the binary (akamai-gtm or akamai-gtm.exe) in to your PATH

Usage

  akamai-gtm [--edgerc] [--section] <command> [sub-command]

Description:
   Manage GTM Domains and assoc objects

Global Flags:
   --edgerc value  Location of the credentials file (default: "/home/elynes/.edgerc") [$AKAMAI_EDGERC]
   --section value     Section of the credentials file (default: "gtm") [$AKAMAI_EDGERC_SECTION]

Built-In Commands:
  update-datacenter
  update-property
  query-status
  list
  help
Enable datacenters in domain

To enable one or more datacenters:

$ akamai gtm update-datacenter example.akadns.net --datacenter 3131 --datacenter 3132 --enable
Update datacenters in property

To enable datacenters in a property:

$ akamai gtm update-property example.akadns.net testproperty --datacenter 3131 --disable

To modify a datacenter's weight:

$ akamai gtm update-property example.akadns.net testproperty --datacenter 3131 --weight 20

To midify a datacenter's servers:

$ akamai gtm update-property example.akadns.net testproperty --datacenter 3131 --server 1.2.3.6 --server 1.2.1.1
Query Status

Query a datacenter's status:

$ akamai gtm query-status example.akadns.net --datacenter 3132

To query a property's status:

$ akamai gtm query-status example.akadns.net --property testproperty

License

This package is licensed under the Apache 2.0 License. See LICENSE for details.

FOSSA Status

Documentation

Overview

Copyright 2019. Akamai Technologies, Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL