domain

delete

Delete a domain with the given id.

maas $PROFILE domain delete [--help] [-d] [-k] id

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

read

Read a domain with the given id.

maas $PROFILE domain read [--help] [-d] [-k] id

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

set-default

Set the specified domain to be the default.

maas $PROFILE domain set-default [--help] [-d] [-k] id

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

update

Update a domain with the given id.

maas $PROFILE domain update [--help] [-d] [-k] id [data ...]

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “name”

Optional String. Name of the domain.

Keyword “authoritative”

Optional String. True if we are authoritative for this domain.

Keyword “ttl”

Optional String. The default TTL for this domain.

Keyword “forward_dns_servers”

Optional String. List of IP addresses for forward DNS servers when MAAS is not authoritative for this domain.

Note: This command accepts JSON.

domains create

Create a domain.

maas $PROFILE domains create [--help] [-d] [-k] [data ...]

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “name”

Optional String. Name of the domain.

Keyword “authoritative”

Optional String. Class type of the domain.

Keyword “forward_dns_servers”

Optional String. List of forward dns server IP addresses when MAAS is not authoritative.

Note: This command accepts JSON.

domains read

List all domains.

maas $PROFILE domains read [--help] [-d] [-k]

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

domains set-serial

Set the SOA serial number for all DNS zones.

maas $PROFILE domains set-serial [--help] [-d] [-k] [data ...]

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “serial”

Optional Int. Serial number to use next.

Note: This command accepts JSON.