package-repository

package-repositories create

Create a new package repository.

maas $PROFILE package-repositories 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. The name of the package repository.

Keyword “url”

Optional String. The url of the package repository.

Keyword “distributions”

Optional String. Which package distributions to include.

Keyword “disabled_pockets”

Optional String. The list of pockets to disable.

Keyword “components”

Optional String. The list of components to enable. Only applicable to custom repositories.

Keyword “arches”

Optional String. The list of supported architectures.

Keyword “key”

Optional String. The authentication key to use with the repository.

Keyword “disable_sources”

Optional Boolean. Disable deb-src lines.

Keyword “enabled”

Optional Boolean. Whether or not the repository is enabled.

Note: This command accepts JSON.

package-repositories read

List all available package repositories.

maas $PROFILE package-repositories 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.

delete

Delete a package repository with the given id.

maas $PROFILE package-repository 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 package repository with the given id.

maas $PROFILE package-repository 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.

update

Update the package repository with the given id.

maas $PROFILE package-repository 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. The name of the package repository.

Keyword “url”

Optional String. The url of the package repository.

Keyword “distributions”

Optional String. Which package distributions to include.

Keyword “disabled_pockets”

Optional String. The list of pockets to disable.

Keyword “disabled_components”

Optional String. The list of components to disable. Only applicable to the default Ubuntu repositories.

Keyword “components”

Optional String. The list of components to enable. Only applicable to custom repositories.

Keyword “arches”

Optional String. The list of supported architectures.

Keyword “key”

Optional String. The authentication key to use with the repository.

Keyword “disable_sources”

Optional Boolean. Disable deb-src lines.

Keyword “enabled”

Optional Boolean. Whether or not the repository is enabled.

Note: This command accepts JSON.