netapp-storagegrid / storagegrid-powershell-module Goto Github PK
View Code? Open in Web Editor NEWStorageGRID S3 Management PowerShell Cmdlets
License: MIT License
StorageGRID S3 Management PowerShell Cmdlets
License: MIT License
The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again
I managed to kinda fix it by using the -UseBasicParsing on every Invoke-WebRequest
Alias are not working on mac os. Running the cmdlet "Connect-SGWServer -Name $servername -Credential $credential -Insecure" produces the following error.
Sort : The term 'Sort' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At /usr/local/microsoft/powershell/6.0.0-beta.2/Modules/StorageGRID-Webscale/4.0.1/StorageGRID-Webscale.psm1:159 char:59
+ ... $APIVersion = (Get-SGWVersions -Uri "https://$Name" | Sort | selec ...
+ CategoryInfo : ObjectNotFound: (Sort:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
This is a known issue, see: PowerShell/vscode-powershell#714
Replacing with the long form sort-object or select-object should fix the problem.
Version information:
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
BuildVersion 3.0.0.0
CLRVersion
GitCommitId v6.0.0-beta.2
OS Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
-AccountID
without $AccountId passed to itPS C:\>
is included before what are sentences (not commands) from online help(Also in https://github.com/ffeldhaus/StorageGRID-Webscale/blob/master/StorageGRID-Webscale-Tutorial.md#objects it appears Get-S3Objects was replaced by Get-S3Bucket -Bucket $Bucket)
https://github.com/ffeldhaus/StorageGRID-Webscale#usage refers to S3-Client which was moved to own repo
When I try to add a new Group when connected as a Tenant via GUI I can create a Group with the "ManageOwnS3Credentials" Permission. When I try the same with Powershell (New-SgwGroup -DisplayName $Group -UniqueName $Group -Type local -S3Policy $policy -ManageOwnS3Credentials $true) I keep getting this Error: "Permissions for a tenant group specified, but connected as grid user. Only the following parameters are allowed for grid administration groups: RootAccess,
OtherGridConfiguration, GridTopologyPageConfiguration, TenantAccounts, ChangeTenantRootPassword, Maintenance, MetricsQuery, ActivateFeatures, Ilm"
I need help with this. a totall newbie with PS.
PS C:\Users\khoosc> Connect-SGWServer -Name $Server -Credential $Credential -SkipCertificateCheck
Method invocation failed because [Microsoft.PowerShell.Commands.WebRequestSession] does not contain a method named
'new'.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\StorageGRID-Webscale\StorageGRID-Webscale.psm1:1031 char:9
+ $Server = [PSCustomObject]@{SkipCertificateCheck=$SkipCertificateCheck.I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
WARNING: Certificate of the server may not be trusted. Use -SkipCertificateCheck switch if you want to skip certificate
verification.
Get-SgwVersion : GET to /versions failed with Exception Invalid URI: The hostname could not be parsed.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\StorageGRID-Webscale\StorageGRID-Webscale.psm1:1074 char:24
+ $APIVersion = (Get-SgwVersion -Server $Server -ErrorAction Stop | Sort-O ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-SgwVersion
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.