Connect-CloudStorageCmdlet

Parameters   Output Objects   Config Settings  

The Connect-CloudStorage cmdlet is used to create a persistent connection object.

Syntax

$cnn = Connect-CloudStorage [parameters]

Remarks

This cmdlet allows you to create a persistent connection object to be used with related cmdlets.

When executing the cmdlet a connection object is returned. Pass this object to the Connection parameter of related cmdlets to use the newly created connection object.

To disconnect call Disconnect-CloudStorage.

Parameter List


The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.

LogFileThe location of a file to which debug information is written.
AccessKeyA storage service provider access key.
AccountA storage service provider account string.
AuthMechanismThe HTTP authentication scheme to use (for storage service providers that support multiple).
CertPasswordThe password to the certificate store.
CertStoreThe name of the certificate store for the client certificate.
CertStoreTypeThe type of certificate store for the client certificate.
CertSubjectThe subject of the certificate used for client authentication.
ConfigSpecifies one or more configuration settings.
CredentialThe PSCredential object to use for user/password authentication.
ForceForces the component to accept the default behavior instead of querying the user.
HadoopURLThe URL of the Hadoop WebHDFS server.
LogFileThe location of a file to which debug information is written.
OAuthCacheDirThe directory where OAuth settings will be stored.
OAuthClientIdAccount credential for services that require OAuth authentication.
OAuthClientSecretAccount credential for services that require OAuth authentication.
OAuthWebServerPortThe port on the local machine where the OAuth web server will listen.
PasswordA storage service provider password.
ProjectIdA Google Cloud Platform project Id string.
SecretKeyA storage service provider access key.
ServiceProviderThe storage service provider.
TimeoutThe maximum time allowed for the operation.
UserA storage service provider user name.

Output Objects


The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.

CloudStorageConnectionThe connection object.

Config Settings


The following is a list of config settings for the cmdlet with short descriptions. Click on the links for further details.

AWSProfileThe name of the AWS CLI profile that the component should use to obtain authentication and region information.
AWSProfileDirThe location of the AWS CLI credentials and config files.
ContentDispositionThe Content-Disposition to send when uploading an file to an S3-like storage provider.
ContentTypeThe Content-Type to send when uploading an file to an S3-like storage provider.
DateFormatThe date format of the file time.
DocsExportFormatThe file format to export Google Docs files as when downloading.
DrawingsExportFormatThe file format to export Google Drawings files as when downloading.
EncryptionIVThe initialization vector to be used for encryption/decryption.
EncryptionKeyThe key to use during encryption/decryption.
EncryptionPasswordKDFThe KDF algorithm to use during password based encryption and decryption.
FragmentSizeThe fragment size that the component should use when uploading files in multiple fragments.
ListResourcesScopeControls the scope of the results when listing GoogleDrive resources.
NewVersionOnOverwriteWhether to upload new file versions instead of performing true overwrites.
NormalizedFileName[i]The normalized file name.
RegionFor applicable providers, specifies the region to use.
SharedDriveIdThe Id of the Google Drive shared drive to list resources for.
SheetsExportFormatThe file format to export Google Sheets files as when downloading.
SimpleUploadLimitThe threshold above which the component will choose to perform a multipart upload, for applicable storage service providers.
SlidesExportFormatThe file format to export Google Slides files as when downloading.
UseVirtualHostingDetermines which URL style S3-like storage service providers should use.
AcceptEncodingUsed to tell the server which types of content encodings the client supports.
AllowHTTPCompressionThis property enables HTTP compression for receiving data.
AllowHTTPFallbackWhether HTTP/2 connections are permitted to fallback to HTTP/1.1.
AppendWhether to append data to LocalFile.
AuthorizationThe Authorization string to be sent to the server.
BytesTransferredContains the number of bytes transferred in the response data.
ChunkSizeSpecifies the chunk size in bytes when using chunked encoding.
CompressHTTPRequestSet to true to compress the body of a PUT or POST request.
EncodeURLIf set to True the URL will be encoded by the component.
FollowRedirectsDetermines what happens when the server issues a redirect.
GetOn302RedirectIf set to True the component will perform a GET on the new location.
HTTP2HeadersWithoutIndexingHTTP2 headers that should not update the dynamic header table with incremental indexing.
HTTPVersionThe version of HTTP used by the component.
IfModifiedSinceA date determining the maximum age of the desired document.
KeepAliveDetermines whether the HTTP connection is closed after completion of the request.
KerberosSPNThe Service Principal Name for the Kerberos Domain Controller.
LogLevelThe level of detail that is logged.
MaxRedirectAttemptsLimits the number of redirects that are followed in a request.
NegotiatedHTTPVersionThe negotiated HTTP version.
OtherHeadersOther headers as determined by the user (optional).
ProxyAuthorizationThe authorization string to be sent to the proxy server.
ProxyAuthSchemeThe authorization scheme to be used for the proxy.
ProxyPasswordA password if authentication is to be used for the proxy.
ProxyPortPort for the proxy server (default 80).
ProxyServerName or IP address of a proxy server (optional).
ProxyUserA user name if authentication is to be used for the proxy.
SentHeadersThe full set of headers as sent by the client.
StatusCodeThe status code of the last response from the server.
StatusLineThe first line of the last response from the server.
TransferredDataThe contents of the last response from the server.
TransferredDataLimitThe maximum number of incoming bytes to be stored by the component.
TransferredHeadersThe full set of headers as received from the server.
TransferredRequestThe full request as sent by the client.
UseChunkedEncodingEnables or Disables HTTP chunked encoding for transfers.
UseIDNsWhether to encode hostnames to internationalized domain names.
UseProxyAutoConfigURLWhether to use a Proxy auto-config file when attempting a connection.
UserAgentInformation about the user agent (browser).
ConnectionTimeoutSets a separate timeout value for establishing a connection.
FirewallAutoDetectTells the component whether or not to automatically detect and use firewall system settings, if available.
FirewallHostName or IP address of firewall (optional).
FirewallPasswordPassword to be used if authentication is to be used when connecting through the firewall.
FirewallPortThe TCP port for the FirewallHost;.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
KeepAliveIntervalThe retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received.
KeepAliveTimeThe inactivity time in milliseconds before a TCP keep-alive packet is sent.
LingerWhen set to True, connections are terminated gracefully.
LingerTimeTime in seconds to have the connection linger.
LocalHostThe name of the local host through which connections are initiated or accepted.
LocalPortThe port in the local host where the component binds.
MaxLineLengthThe maximum amount of data to accumulate when no EOL is found.
MaxTransferRateThe transfer rate limit in bytes per second.
ProxyExceptionsListA semicolon separated list of hosts and IPs to bypass when using a proxy.
TCPKeepAliveDetermines whether or not the keep alive socket option is enabled.
TcpNoDelayWhether or not to delay when sending packets.
UseIPv6Whether to use IPv6.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
MaskSensitiveWhether sensitive data is masked in log messages.
UseInternalSecurityAPITells the component whether or not to use the system security libraries or an internal implementation.

LogFile Parameter (Connect-CloudStorage Cmdlet)

The location of a file to which debug information is written.

Syntax

Connect-CloudStorage -LogFile string

Remarks

When specified, the cmdlet will log debug information to the file. If the file exists, the information will be appended.

Default Value

null

AccessKey Parameter (Connect-CloudStorage Cmdlet)

A storage service provider access key.

Syntax

Connect-CloudStorage -AccessKey string

Remarks

Default Value

""

Account Parameter (Connect-CloudStorage Cmdlet)

A storage service provider account string.

Syntax

Connect-CloudStorage -Account string

Remarks

Default Value

""

AuthMechanism Parameter (Connect-CloudStorage Cmdlet)

The HTTP authentication scheme to use (for storage service providers that support multiple).

Syntax

Connect-CloudStorage -AuthMechanism string

Remarks

Default Value

0

CertPassword Parameter (Connect-CloudStorage Cmdlet)

The password to the certificate store.

Syntax

Connect-CloudStorage -CertPassword string

Remarks

Default Value

""

Parameter Alias

CertificatePassword

CertStore Parameter (Connect-CloudStorage Cmdlet)

The name of the certificate store for the client certificate.

Syntax

Connect-CloudStorage -CertStore string

Remarks

Default Value

"MY"

Parameter Alias

CertificateStore

CertStoreType Parameter (Connect-CloudStorage Cmdlet)

The type of certificate store for the client certificate.

Syntax

Connect-CloudStorage -CertStoreType string

Remarks

Default Value

0

CertSubject Parameter (Connect-CloudStorage Cmdlet)

The subject of the certificate used for client authentication.

Syntax

Connect-CloudStorage -CertSubject string

Remarks

Default Value

"*"

Config Parameter (Connect-CloudStorage Cmdlet)

Specifies one or more configuration settings.

Syntax

Connect-CloudStorage -Config string[]

Remarks

Default Value

null

Credential Parameter (Connect-CloudStorage Cmdlet)

The PSCredential object to use for user/password authentication.

Syntax

Connect-CloudStorage -Credential PSCredential

Remarks

Default Value

null

Parameter Position

1

Parameter Alias

auth

EncryptionAlgorithm Parameter (Connect-CloudStorage Cmdlet)

The encryption algorithm.

Syntax

Connect-CloudStorage -EncryptionAlgorithm string

Remarks

Default Value

0

EncryptionPassword Parameter (Connect-CloudStorage Cmdlet)

The encryption password.

Syntax

Connect-CloudStorage -EncryptionPassword string

Remarks

Default Value

""

Force Parameter (Connect-CloudStorage Cmdlet)

Forces the component to accept the default behavior instead of querying the user.

Syntax

Connect-CloudStorage -Force SwitchParameter

Remarks

Default Value

false

HadoopURL Parameter (Connect-CloudStorage Cmdlet)

The URL of the Hadoop WebHDFS server.

Syntax

Connect-CloudStorage -HadoopURL string

Remarks

Default Value

""

List Parameter (Connect-CloudStorage Cmdlet)

Get a directory listing for the path and file mask specified.

Syntax

Connect-CloudStorage -List string

Remarks

Default Value

""

Parameter Alias

Path

LocalFile Parameter (Connect-CloudStorage Cmdlet)

The local file to download to.

Syntax

Connect-CloudStorage -LocalFile string

Remarks

Default Value

""

LogFile Parameter (Connect-CloudStorage Cmdlet)

The location of a file to which debug information is written.

Syntax

Connect-CloudStorage -LogFile string

Remarks

Default Value

""

OAuthCacheDir Parameter (Connect-CloudStorage Cmdlet)

The directory where OAuth settings will be stored.

Syntax

Connect-CloudStorage -OAuthCacheDir string

Remarks

Default Value

"%APPDATA%/nsoftware/NetCmdlets/OAuth/"

OAuthClientId Parameter (Connect-CloudStorage Cmdlet)

Account credential for services that require OAuth authentication.

Syntax

Connect-CloudStorage -OAuthClientId string

Remarks

Default Value

""

OAuthClientSecret Parameter (Connect-CloudStorage Cmdlet)

Account credential for services that require OAuth authentication.

Syntax

Connect-CloudStorage -OAuthClientSecret string

Remarks

Default Value

""

OAuthWebServerPort Parameter (Connect-CloudStorage Cmdlet)

The port on the local machine where the OAuth web server will listen.

Syntax

Connect-CloudStorage -OAuthWebServerPort int

Remarks

Default Value

0

Parameter Alias

RedirectPort

Overwrite Parameter (Connect-CloudStorage Cmdlet)

Indicates whether the LocalFile may be overwritten.

Syntax

Connect-CloudStorage -Overwrite SwitchParameter

Remarks

Default Value

false

Password Parameter (Connect-CloudStorage Cmdlet)

A storage service provider password.

Syntax

Connect-CloudStorage -Password string

Remarks

Default Value

""

ProjectId Parameter (Connect-CloudStorage Cmdlet)

A Google Cloud Platform project Id string.

Syntax

Connect-CloudStorage -ProjectId string

Remarks

Default Value

""

RemoteFile Parameter (Connect-CloudStorage Cmdlet)

The name of the remote file(s)/directory to download.

Syntax

Connect-CloudStorage -RemoteFile string

Remarks

Default Value

""

Parameter Position

1

Parameter Alias

Download

RemotePath Parameter (Connect-CloudStorage Cmdlet)

The path on the server.

Syntax

Connect-CloudStorage -RemotePath string

Remarks

Default Value

""

SecretKey Parameter (Connect-CloudStorage Cmdlet)

A storage service provider access key.

Syntax

Connect-CloudStorage -SecretKey string

Remarks

Default Value

""

ServiceProvider Parameter (Connect-CloudStorage Cmdlet)

The storage service provider.

Syntax

Connect-CloudStorage -ServiceProvider string

Remarks

Default Value

0

Parameter Alias

Provider

Timeout Parameter (Connect-CloudStorage Cmdlet)

The maximum time allowed for the operation.

Syntax

Connect-CloudStorage -Timeout int

Remarks

Default Value

10

User Parameter (Connect-CloudStorage Cmdlet)

A storage service provider user name.

Syntax

Connect-CloudStorage -User string

Remarks

Default Value

""

CloudStorageConnection Output Object (Connect-CloudStorage Cmdlet)

The connection object.

Syntax

Object CloudStorageConnection {
   string AccessKey;
   string Account;
   string AuthMechanism;
   string CertPassword;
   string CertStore;
   string CertStoreType;
   string CertSubject;
   string[] Config;
   PSCredential Credential;
   SwitchParameter Force;
   string HadoopURL;
   string LogFile;
   string OAuthCacheDir;
   string OAuthClientId;
   string OAuthClientSecret;
   int OAuthWebServerPort;
   string Password;
   string ProjectId;
   string SecretKey;
   string ServiceProvider;
   int Timeout;
   string User;
}

Remarks

This object holds the connection. It may be passed to the Connection parameter of related cmdlets.

Config Settings (Connect-CloudStorage Cmdlet)

Get-CloudStorage Config Settings

Region:  

HTTP Config Settings

Append:  
ChunkSize:  
EncodeURL:  
KeepAlive:  
LogLevel:  
ProxyPort:  
ProxyUser:  
UseIDNs:  
UserAgent:  

TCPClient Config Settings

ConnectionTimeout:  
FirewallAutoDetect:  
FirewallHost:  
FirewallPassword:  
FirewallPort:  
FirewallType:  
FirewallUser:  
KeepAliveInterval:  
KeepAliveTime:  
Linger:  
LingerTime:  
LocalHost:  
LocalPort:  
MaxLineLength:  
MaxTransferRate:  
ProxyExceptionsList:  
TCPKeepAlive:  
TcpNoDelay:  
UseIPv6:  

Socket Config Settings

AbsoluteTimeout:  
FirewallData:  
InBufferSize:  
OutBufferSize:  

Base Config Settings

BuildInfo:  
CodePage:  
LicenseInfo:  
MaskSensitive:  
UseInternalSecurityAPI: