SAGA 9.14.0 | Tool Documentation

Create Cloud Storage Connection

Author(s) J. Spitzmueller (c) 2026
Library IDio_cloud_storage
Tool ID 0
Version 1.0
Menu File | Cloud Storage

Description

Create a connection to a cloud storage provider (S3, GCS, Azure, etc.) using GDAL virtual filesystem.

Parameters

 NameTypeIdentifierDescriptionConstraints
OptionsConnection NametextNAMEA descriptive name for this connection. This name must be uniqueDefault: connection
ProviderchoicePROVIDERCloud storage provider.Available Choices: [0] Amazon S3 [1] Google Cloud Storage [2] Microsoft Azure Blob [3] Microsoft Azure Data Lake Storage Gen2 Default: 0
PathtextBUCKET--
Authentication MethodchoiceS3_AUTHENTICATION-Available Choices: [0] Public Access (No Sign Request) [1] Credential File [2] Access Key ID/Secret [3] Web Identity, Session Tokens, etc. [4] Environment / External Default: 2
Authentication MethodchoiceGS_AUTHENTICATION-Available Choices: [0] Public Access (No Sign Request) [1] Access Key ID/Secret [2] OAuth2 Refresh Token [3] OAuth2 Private Key (Inline) [4] OAuth2 Private Key (File) [5] Application Credentials [6] Credentials File [7] Environment / External Default: 1
Authentication MethodchoiceAZ_AUTHENTICATION-Available Choices: [0] Credential String [1] Account Name/Secret [2] Account Name/Token [3] Account Name/SAS Token [4] Account Name/Public Access (No Singn Request) [5] Azure Instance Metadata Service (IMDS) [6] Environment / External Default: 1
More SettingstextSETTINGS--
Validation SettingstextVAL_SETTINGS--
No Sing RequestbooleanAWS_NO_SIGN_REQUESTSets AWS_NO_SIGN_REQUEST. Determines whether to disable request signing.Default: 0
AWS Credentials Filefile pathCPL_AWS_CREDENTIALS_FILESets CPL_AWS_CREDENTIALS_FILE. Location of an AWS credentials file. If not specified, the standard location of ~/.aws/credentials will be checked.Default: C:\Users\oconrad\.aws\credentials
Access Key IDtextAWS_ACCESS_KEY_IDSets AWS_ACCESS_KEY_ID. Access key ID used for authentication. If using temporary credentials, AWS_SESSION_TOKEN must be set.-
Secret Access KeytextAWS_SECRET_ACCESS_KEYSets AWS_SECRET_ACCESS_KEY. Secret access key associated with AWS_ACCESS_KEY_ID.-
Session TokentextAWS_SESSION_TOKENSets AWS_SESSION_TOKEN. Session token used for validation of temporary credentials (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY)-
S3 Expres Session TokentextAWS_S3SESSION_TOKENSets AWS_S3SESSION_TOKEN. S3 Express session token (for directory buckets). Can be used by applications handling themselves the CreateSession S3 Express request, in which case they must supply the temporary credentials with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY-
Amazon Resource NametextAWS_ROLE_ARNSets AWS_ROLE_ARN. Amazon Resource Name (ARN) specifying the role to use for authentication via the AssumeRoleWithWebIdentity API.-
Web Identity Token Filefile pathAWS_WEB_IDENTITY_TOKEN_FILESets AWS_WEB_IDENTITY_TOKEN_FILE. Duplicate explicit target name: "assumerolewithwebidentity api". Path to file with identity token for use for authentication via the AssumeRoleWithWebIdentity API.-
AWS ProfiletextAWS_PROFILESets AWS_PROFILE. Name of AWS profile.Default: default
AWS Config Filefile pathAWS_CONFIG_FILESets AWS_CONFIG_FILE. Location of a config file that may provide credentials and the AWS region. if not specified the standard location of ~/.aws/config will be checked.Default: C:\Users\oconrad\.aws\config
RegiontextAWS_REGIONSets AWS_REGION. Defaults to us-east-1. Set the AWS region to which requests should be sent. Overridden by AWS_DEFAULT_REGION.Default: us-east-1
S3 EndpointtextAWS_S3_ENDPOINTSets AWS_S3_ENDPOINT. Defaults to s3.amazonaws.com. Allows the use of /vsis3/ with non-AWS remote object stores that use the AWS S3 protocol. Starting with GDAL 3.11, this can be a URL starting with http:// or https://.Default: s3.amazonaws.com
Request PayerchoiceAWS_REQUEST_PAYERSets AWS_REQUEST_PAYER. Set to requester to access a Requester Pays bucket and acknowledge associated charges.Available Choices: [0] Bucket Owner [1] Requester Default: 0
Virtual HostingbooleanAWS_VIRTUAL_HOSTINGSets AWS_VIRTUAL_HOSTING. Defaults to TRUE. Select the method of accessing a bucket. If TRUE, identifies the bucket via a virtual bucket host name, e.g.: mybucket.cname.domain.com. If FALSE, identifies the bucket as the top-level directory in the URI, e.g.: cname.domain.com/mybucketDefault: 1
Recursive DeletionbooleanCPL_VSIS3_USE_BASE_RMDIR_RECURSIVESets CPL_VSIS3_USE_BASE_RMDIR_RECURSIVE. Defaults to NO. If YES, recursively delete objects to avoid using batch deletion.Default: 0
Allow Directory CreationbooleanCPL_VSIS3_CREATE_DIR_OBJECTSets CPL_VSIS3_CREATE_DIR_OBJECT. Defaults to YES. Determines whether to allow VSIMkdir() to create an empty object to model an empty directory.Default: 1
S3 on HTTPSbooleanAWS_HTTPSSets AWS_HTTPS. Defaults to YES. If YES, AWS resources will be accessed using HTTPS. If NO, HTTP will be used. No longer needed starting with GDAL 3.11, because AWS_S3_ENDPOINT can include the protocol, and when doing so, this option is ignored.Default: 1
Chunk Sizeinteger numberVSIS3_CHUNK_SIZESets VSIS3_CHUNK_SIZE. Defaults to 50. Set the chunk size for multipart uploads.Default: 50
Ignore GlacierbooleanCPL_VSIL_CURL_IGNORE_GLACIER_STORAGESets CPL_VSIL_CURL_IGNORE_GLACIER_STORAGE. Defaults to YES. When listing a directory, ignore files with GLACIER storage class. Superseded by CPL_VSIL_CURL_IGNORE_STORAGE_CLASSES.Default: 1
Ignore ClassestextCPL_VSIL_CURL_IGNORE_STORAGE_CLASSESSets CPL_VSIL_CURL_IGNORE_STORAGE_CLASSES. Defaults to GLACIER,DEEP_ARCHIVE. Comma-separated list of storage class names that should be ignored when listing a directory. If set to empty, objects of all storage classes are retrieved).Default: GLACIER,DEEP_ARCHIVE
No Sign RequestbooleanGS_NO_SIGN_REQUESTSets GS_NO_SIGN_REQUEST. If YES, request signing is disabled.Default: 0
Access Key IDtextGS_ACCESS_KEY_IDSets GS_ACCESS_KEY_ID. Access ID for AWS-style authentication (HMAC keys).-
Secret Access KeytextGS_SECRET_ACCESS_KEYSets GS_SECRET_ACCESS_KEY. Secret for AWS-style authentication (HMAC keys).-
Refresh TokentextGS_OAUTH2_REFRESH_TOKENSets GS_OAUTH2_REFRESH_TOKEN. OAuth2 refresh token. This refresh token can be obtained with the gdal_auth.py script (gdal_auth.py -s storage or gdal_auth.py -s storage-rw).-
Client IDtextGS_OAUTH2_CLIENT_IDSets GS_OAUTH2_CLIENT_ID. Client ID to be used when requesting GS_OAUTH2_REFRESH_TOKEN.-
Client SecrettextGS_OAUTH2_CLIENT_SECRETSets GS_OAUTH2_CLIENT_SECRET. Client secret to be used when requesting GS_OAUTH2_REFRESH_TOKEN.-
Client EmailtextGS_OAUTH2_CLIENT_EMAILSets GS_OAUTH2_CLIENT_EMAIL Client email for OAuth2 authentication, to be used with GS_OAUTH2_PRIVATE_KEY or GS_OAUTH2_PRIVATE_KEY_FILE.-
Private KeytextGS_OAUTH2_PRIVATE_KEYSets GS_OAUTH2_PRIVATE_KEY. Private key for OAuth2 authentication. Alternatively, the key may be saved in a file and referenced with GS_OAUTH2_PRIVATE_KEY_FILE.-
Privat Key Filefile pathGS_OAUTH2_PRIVATE_KEY_FILESets GS_OAUTH2_PRIVATE_KEY_FILE. Location of private key file for OAuth2 authentication.-
OAuth2 ScopetextGS_OAUTH2_SCOPESets GS_OAUTH2_SCOPE. Permission scope associated with OAuth2 authentication using GOOGLE_APPLICATION_CREDENTIALS.-
Application Credentialfile pathGOOGLE_APPLICATION_CREDENTIALSSets GOOGLE_APPLICATION_CREDENTIALS. The GOOGLE_APPLICATION_CREDENTIALS configuration option can be set to point to a JSON file containing OAuth2 service account credentials (type: service_account), in particular a private key and a client email.-
Credentials Filefile pathCPL_GS_CREDENTIALS_FILESets CPL_GS_CREDENTIALS_FILE. Defaults to ~/.boto. Location of configuration file providing gs_secret_access_key and gs_access_key_id.Default: C:\Users\oconrad\.boto
Google Project IDtextGS_USER_PROJECTSets GS_USER_PROJECT. Google Project id (see https://cloud.google.com/storage/docs/xml-api/reference-headers#xgooguserproject) to charge for requests against Requester Pays buckets.-
Google Compute EnginebooleanCPL_MACHINE_IS_GCESets CPL_MACHINE_IS_GCE. Check if the current machine is a Google Compute Engine instance, and if so will use the permissions associated to it (using the default service account associated with the VM). To force a machine to be detected as a GCE instance (for example for code running in a container with no access to the boot logs) you can set CPL_MACHINE_IS_GCE to YES.Default: 0
Azure Credential StringtextAZURE_STORAGE_CONNECTION_STRINGSets AZURE_STORAGE_CONNECTION_STRING. Credential string provided in the Access Key section of the administrative interface, containing both the account name and a secret key.-
Storage Account NametextAZURE_STORAGE_ACCOUNTSets AZURE_STORAGE_ACCOUNT Specifies storage account name.-
Access TokentextAZURE_STORAGE_ACCESS_TOKENSets AZURE_STORAGE_ACCESS_TOKEN. Access token typically obtained using Microsoft Authentication Library (MSAL).-
Secret Access KeytextAZURE_STORAGE_ACCESS_KEYSets AZURE_STORAGE_ACCESS_KEY. Specifies secret key associated with AZURE_STORAGE_ACCOUNT.-
Shared Access SignaturetextAZURE_STORAGE_SAS_TOKENSets AZURE_STORAGE_SAS_TOKEN. Shared Access Signature.-
No Sign RequestbooleanAZURE_NO_SIGN_REQUESTSets AZURE_NO_SIGN_REQUEST. Controls whether requests are signed.Default: 0
IMDS Object IDtextAZURE_IMDS_OBJECT_IDSets AZURE_IMDS_OBJECT_ID. object_id of the managed identity you would like the token for, when using Azure Instance Metadata Service (IMDS) authentication in a Azure Virtual Machine. Required if your VM has multiple user-assigned managed identities.-
IMDS Client IDtextAZURE_IMDS_CLIENT_IDSets AZURE_IMDS_CLIENT_ID. client_id of the managed identity you would like the token for, when using Azure Instance Metadata Service (IMDS) authentication in a Azure Virtual Machine. Required if your VM has multiple user-assigned managed identities.-
IMDS Resource IDtextAZURE_IMDS_MSI_RES_IDSets AZURE_IMDS_MSI_RES_ID. msi_res_id (Azure Resource ID) of the managed identity you would like the token for, when using Azure Instance Metadata Service (IMDS) authentication in a Azure Virtual Machine. Required if your VM has multiple user-assigned managed identities.-
Use Temp FilebooleanCPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITESets CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE. Use a local temporary file to support random writes in certain virtual file systems. The temporary file will be located in CPL_TMPDIRDefault: 1
Temp Directoryfile pathCPL_TMPDIRSets, CPL_TMPDIR. By default, temporary files are written into current working directory. Sometimes this is not optimal and it would be better to write temporary files on bigger or faster drives (SSD).Default: C:\_tmp\user

Command Line


Usage: saga_cmd io_cloud_storage 0 [-NAME ] [-PROVIDER ] [-BUCKET ] [-S3_AUTHENTICATION ] [-GS_AUTHENTICATION ] [-AZ_AUTHENTICATION ] [-SETTINGS ] [-VAL_SETTINGS ] [-AWS_NO_SIGN_REQUEST ] [-CPL_AWS_CREDENTIALS_FILE ] [-AWS_ACCESS_KEY_ID ] [-AWS_SECRET_ACCESS_KEY ] [-AWS_SESSION_TOKEN ] [-AWS_S3SESSION_TOKEN ] [-AWS_ROLE_ARN ] [-AWS_WEB_IDENTITY_TOKEN_FILE ] [-AWS_PROFILE ] [-AWS_CONFIG_FILE ] [-AWS_REGION ] [-AWS_S3_ENDPOINT ] [-AWS_REQUEST_PAYER ] [-AWS_VIRTUAL_HOSTING ] [-CPL_VSIS3_USE_BASE_RMDIR_RECURSIVE ] [-CPL_VSIS3_CREATE_DIR_OBJECT ] [-AWS_HTTPS ] [-VSIS3_CHUNK_SIZE ] [-CPL_VSIL_CURL_IGNORE_GLACIER_STORAGE ] [-CPL_VSIL_CURL_IGNORE_STORAGE_CLASSES ] [-GS_NO_SIGN_REQUEST ] [-GS_ACCESS_KEY_ID ] [-GS_SECRET_ACCESS_KEY ] [-GS_OAUTH2_REFRESH_TOKEN ] [-GS_OAUTH2_CLIENT_ID ] [-GS_OAUTH2_CLIENT_SECRET ] [-GS_OAUTH2_CLIENT_EMAIL ] [-GS_OAUTH2_PRIVATE_KEY ] [-GS_OAUTH2_PRIVATE_KEY_FILE ] [-GS_OAUTH2_SCOPE ] [-GOOGLE_APPLICATION_CREDENTIALS ] [-CPL_GS_CREDENTIALS_FILE ] [-GS_USER_PROJECT ] [-CPL_MACHINE_IS_GCE ] [-AZURE_STORAGE_CONNECTION_STRING ] [-AZURE_STORAGE_ACCOUNT ] [-AZURE_STORAGE_ACCESS_TOKEN ] [-AZURE_STORAGE_ACCESS_KEY ] [-AZURE_STORAGE_SAS_TOKEN ] [-AZURE_NO_SIGN_REQUEST ] [-AZURE_IMDS_OBJECT_ID ] [-AZURE_IMDS_CLIENT_ID ] [-AZURE_IMDS_MSI_RES_ID ] [-CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE ] [-CPL_TMPDIR ]
  -NAME:                                      Connection Name
	text
	Default: connection
  -PROVIDER:                                  Provider
	choice
	Available Choices:
	[0] Amazon S3
	[1] Google Cloud Storage
	[2] Microsoft Azure Blob
	[3] Microsoft Azure Data Lake Storage Gen2
	Default: 0
  -BUCKET:                                    Path
	text
  -S3_AUTHENTICATION:                         Authentication Method
	choice
	Available Choices:
	[0] Public Access (No Sign Request)
	[1] Credential File
	[2] Access Key ID/Secret
	[3] Web Identity, Session Tokens, etc.
	[4] Environment / External
	Default: 2
  -GS_AUTHENTICATION:                         Authentication Method
	choice
	Available Choices:
	[0] Public Access (No Sign Request)
	[1] Access Key ID/Secret
	[2] OAuth2 Refresh Token
	[3] OAuth2 Private Key (Inline)
	[4] OAuth2 Private Key (File)
	[5] Application Credentials
	[6] Credentials File
	[7] Environment / External
	Default: 1
  -AZ_AUTHENTICATION:                         Authentication Method
	choice
	Available Choices:
	[0] Credential String
	[1] Account Name/Secret
	[2] Account Name/Token
	[3] Account Name/SAS Token
	[4] Account Name/Public Access (No Singn Request)
	[5] Azure Instance Metadata Service (IMDS)
	[6] Environment / External
	Default: 1
  -SETTINGS:                                  More Settings
	text
  -VAL_SETTINGS:                              Validation Settings
	text
  -AWS_NO_SIGN_REQUEST:                       No Sing Request
	boolean
	Default: 0
  -CPL_AWS_CREDENTIALS_FILE:                  AWS Credentials File
	file path
	Default: C:\Users\oconrad\.aws\credentials
  -AWS_ACCESS_KEY_ID:                         Access Key ID
	text
  -AWS_SECRET_ACCESS_KEY:                     Secret Access Key
	text
  -AWS_SESSION_TOKEN:                         Session Token
	text
  -AWS_S3SESSION_TOKEN:                       S3 Expres Session Token
	text
  -AWS_ROLE_ARN:                              Amazon Resource Name
	text
  -AWS_WEB_IDENTITY_TOKEN_FILE:               Web Identity Token File
	file path
  -AWS_PROFILE:                               AWS Profile
	text
	Default: default
  -AWS_CONFIG_FILE:                           AWS Config File
	file path
	Default: C:\Users\oconrad\.aws\config
  -AWS_REGION:                                Region
	text
	Default: us-east-1
  -AWS_S3_ENDPOINT:                           S3 Endpoint
	text
	Default: s3.amazonaws.com
  -AWS_REQUEST_PAYER:                         Request Payer
	choice
	Available Choices:
	[0] Bucket Owner
	[1] Requester
	Default: 0
  -AWS_VIRTUAL_HOSTING:                       Virtual Hosting
	boolean
	Default: 1
  -CPL_VSIS3_USE_BASE_RMDIR_RECURSIVE:        Recursive Deletion
	boolean
	Default: 0
  -CPL_VSIS3_CREATE_DIR_OBJECT:               Allow Directory Creation
	boolean
	Default: 1
  -AWS_HTTPS:                                 S3 on HTTPS
	boolean
	Default: 1
  -VSIS3_CHUNK_SIZE:                          Chunk Size
	integer number
	Default: 50
  -CPL_VSIL_CURL_IGNORE_GLACIER_STORAGE:      Ignore Glacier
	boolean
	Default: 1
  -CPL_VSIL_CURL_IGNORE_STORAGE_CLASSES:      Ignore Classes
	text
	Default: GLACIER,DEEP_ARCHIVE
  -GS_NO_SIGN_REQUEST:                        No Sign Request
	boolean
	Default: 0
  -GS_ACCESS_KEY_ID:                          Access Key ID
	text
  -GS_SECRET_ACCESS_KEY:                      Secret Access Key
	text
  -GS_OAUTH2_REFRESH_TOKEN:                   Refresh Token
	text
  -GS_OAUTH2_CLIENT_ID:                       Client ID
	text
  -GS_OAUTH2_CLIENT_SECRET:                   Client Secret
	text
  -GS_OAUTH2_CLIENT_EMAIL:                    Client Email
	text
  -GS_OAUTH2_PRIVATE_KEY:                     Private Key
	text
  -GS_OAUTH2_PRIVATE_KEY_FILE:                Privat Key File
	file path
  -GS_OAUTH2_SCOPE:                           OAuth2 Scope
	text
  -GOOGLE_APPLICATION_CREDENTIALS:            Application Credential
	file path
  -CPL_GS_CREDENTIALS_FILE:                   Credentials File
	file path
	Default: C:\Users\oconrad\.boto
  -GS_USER_PROJECT:                           Google Project ID
	text
  -CPL_MACHINE_IS_GCE:                        Google Compute Engine
	boolean
	Default: 0
  -AZURE_STORAGE_CONNECTION_STRING:           Azure Credential String
	text
  -AZURE_STORAGE_ACCOUNT:                     Storage Account Name
	text
  -AZURE_STORAGE_ACCESS_TOKEN:                Access Token
	text
  -AZURE_STORAGE_ACCESS_KEY:                  Secret Access Key
	text
  -AZURE_STORAGE_SAS_TOKEN:                   Shared Access Signature
	text
  -AZURE_NO_SIGN_REQUEST:                     No Sign Request
	boolean
	Default: 0
  -AZURE_IMDS_OBJECT_ID:                      IMDS Object ID
	text
  -AZURE_IMDS_CLIENT_ID:                      IMDS Client ID
	text
  -AZURE_IMDS_MSI_RES_ID:                     IMDS Resource ID
	text
  -CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE:   Use Temp File
	boolean
	Default: 1
  -CPL_TMPDIR:                                Temp Directory
	file path
	Default: C:\_tmp\user