prefect.cli.cloud.ip_allowlist

Functions

require_access_to_ip_allowlisting

require_access_to_ip_allowlisting(ctx: typer.Context) -> None
Enforce access to IP allowlisting for all subcommands.

enable

enable(ctx: typer.Context) -> None
Enable the IP allowlist for your account. When enabled, if the allowlist is non-empty, then access to your Prefect Cloud account will be restricted to only those IP addresses on the allowlist.

disable

disable()
Disable the IP allowlist for your account. When disabled, all IP addresses will be allowed to access your Prefect Cloud account.

ls

ls(ctx: typer.Context)
Fetch and list all IP allowlist entries in your account.

parse_ip_network_argument

parse_ip_network_argument(val: str) -> IPNetworkArg

add

add(ctx: typer.Context, ip_address_or_range: IP_ARGUMENT, description: Optional[str] = typer.Option(None, '--description', '-d', help='A short description to annotate the entry with.'))
Add a new IP entry to your account IP allowlist.

remove

remove(ctx: typer.Context, ip_address_or_range: IP_ARGUMENT)
Remove an IP entry from your account IP allowlist.

toggle

toggle(ctx: typer.Context, ip_address_or_range: IP_ARGUMENT)
Toggle the enabled status of an individual IP entry in your account IP allowlist.

Classes

IPNetworkArg