Subcommands
Legal

ResourceGet

Get all Resources of a Type or a specific Resource Type

Usage

ionosctl resource get [flags]

Aliases

For resource command:

[res]

For get command:

[g]

Description

Use this command to get all Resources of a Type or a specific Resource Type using its Type and ID.

Required values to run command:

  • Type

Options

-u, --api-url string Override default host url (default "https://api.ionos.com")
--cols strings Set of columns to be printed on output
Available columns: [ResourceId Name SecAuthProtection Type State] (default [ResourceId,Name,SecAuthProtection,Type,State])
-c, --config string Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.json")
-f, --force Force command to execute without user input
-h, --help Print usage
-o, --output string Desired output format [text|json] (default "text")
-q, --quiet Quiet output
-i, --resource-id string The ID of the specific Resource to retrieve information about
--type string The specific Type of Resources to retrieve information about (required)
-v, --verbose Print step-by-step process when running command

Examples

ionosctl resource get --resource-type ipblock