Get-CloudStorage¶
SYNOPSIS¶
Gets storage resources from a selected cloud provider.
SYNTAX¶
Azure (Default)¶
Get-CloudStorage -ResourceGroup <string> [-Provider <string>] [-Name <string>]
[-Status <CloudStorageStatus>] [-Tag <hashtable>] [-Detailed] [<CommonParameters>]
GCP¶
Get-CloudStorage -Project <string> [-Provider <string>] [-Name <string>]
[-Status <CloudStorageStatus>] [-Tag <hashtable>] [-Detailed] [<CommonParameters>]
AWS¶
Get-CloudStorage -Region <string> [-Provider <string>] [-Name <string>]
[-Status <CloudStorageStatus>] [-Tag <hashtable>] [-Detailed] [<CommonParameters>]
All¶
Get-CloudStorage -All [-Name <string>] [-Status <CloudStorageStatus>] [-Tag <hashtable>] [-Detailed]
[<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, None
DESCRIPTION¶
Routes storage inventory requests to the matching provider backend and returns normalized cloud record objects for the storage surface.
Use -All to query every provider that has an established session context, returning storage resources from all connected clouds in one pipeline.
EXAMPLES¶
EXAMPLE 1¶
Get-CloudStorage -Provider Azure -ResourceGroup 'prod-rg'
Gets Azure storage resources in a resource group.
EXAMPLE 2¶
Get-CloudStorage -Provider AWS -Region 'us-east-1'
Gets AWS storage resources in a region.
EXAMPLE 3¶
Get-CloudStorage -Provider GCP -Project 'my-project'
Gets GCP storage resources for a project.
EXAMPLE 4¶
Get-CloudStorage -All
Gets storage resources from all providers with an established session context. Use after Connect-Cloud -Provider AWS, Azure, GCP.
EXAMPLE 5¶
Get-CloudStorage -All -Status Available -Tag @{ environment = 'production' }
Gets all available storage with the production environment tag across all connected clouds.
EXAMPLE 6¶
Get-CloudStorage -Provider Azure -ResourceGroup 'prod-rg' -Name 'staccount01'
Gets Azure storage resources matching the specified name.
EXAMPLE 7¶
Get-CloudStorage -Provider AWS -Region 'us-east-1' -Detailed
Gets AWS storage resources with detailed view enabled.
PARAMETERS¶
-All¶
Query all providers with an established session context.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Detailed¶
Emit detailed view records.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name¶
Filter results by name.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Project¶
The GCP project to query for storage resources.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: GCP
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Provider¶
The cloud provider to query.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Region¶
The AWS region to query for storage resources.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: AWS
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ResourceGroup¶
The Azure resource group containing the target storage resources.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Azure
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Status¶
Filter results by storage status.
Type: CloudStorageStatus
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Tag¶
Filter results by tag key-value pairs. All specified tags must match.
Type: System.Collections.Hashtable
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
System.Management.Automation.PSObject¶
See the command description and examples above.
NOTES¶
RELATED LINKS¶
None.