S3 or IBM Cloud Object Storage resource information formats
You can use these formats to specify S3 or IBM Cloud Object Storage resource information when calling the create, update, and get resource APIs.
There are two formats that contain S3 and IBM Cloud Object Storage resource information: The QICC0300 format does not include compression and encryption parameters that were introduced in Cloud Storage Solutions version 1.2. It is intended for backward compatibility with applications that were built to use the version 1.1 APIs. QICC0310 includes compression and encryption parameters.
If you are creating a resource, you must provide all field values except resource_id. The resource ID is created by Cloud Storage Solutions when you create the resource.
If you are updating a resource, you must provide a name in the resource_name field to identify the resource to update. Then in fields that you want to update, provide new values. In fields that you do not want to update, provide the current value or the value *SAME. You cannot update a resource ID.
If you are getting a resource, provide no format values. The format returns all of the information for the resource specified in the get API.
The QICC0300 and QICC0310 formats contain the following resource information:
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | INT | resource_id |
4 | 4 | INT | resource_type |
8 | 8 | CHAR(10) | resource_name |
18 | 12 | CHAR(100) | resource_desc |
108 | 6C | CHAR(1024) | directory_name |
1132 | 46C | CHAR(2046) | resource_uri |
3178 | C6A | CHAR(126) | bucket_name |
3304 | CE8 | CHAR(40) | key_id |
3344 | D10 | CHAR(80) | secret_key |
3424 | D60 | CHAR | compress_data (QICC0310 only) |
3425 | D61 | CHAR | encrypt_data (QICC0310 only) |
3426 | D62 | CHAR(20) | keystore (QICC0310 only) |
3446 | D76 | CHAR(32) | keylabel (QICC0310 only) |
Fields
- resource_id
- The unique ID that is assigned to the resource by Cloud Storage Solutions when the resource is created. You cannot update resource IDs.
- resource_type
- The cloud service provider. The following are possible values:
- 0: AWSS3, Google Cloud Storage, and IBM Cloud Object Storage
- 4: FTP
- resource_name
- The unique resource name. Names are a maximum of ten characters, and are IBM i basic names that must adhere to the *NAME type restrictions. Every basic name can begin with the characters A-Z, $, #, or @ and can be followed by up to nine characters. The remaining characters can include the same characters as the first but can also include numbers 0-9, underscores (_), and periods (.). Lowercase letters are changed to uppercase letters by the system. Basic names used in IBM-supplied commands can be no longer than 10 characters. However, in your own commands you can define parameters of type *NAME (specified on the TYPE parameter of the PARM or ELEM statements) with up to 256 characters. For more information, and information on names in quoted form, see the topic Names (*NAME) in the IBM Documentation.
- resource_desc
- The resource description. Passed in values must have a CCSID of 1200 (UTF16); returned values have a CCSID of 1200 (UTF16). Values can include uppercase and lowercase letters.
- directory_name
- The name of the IFS directory to keep synchronized with the resource. Passed in values must have a CCSID of 1200 (UTF16); returned values have a CCSID of 1200 (UTF16). Values can include uppercase and lowercase letters. [This field is not currently supported.]
- resource_uri
- The Uniform Resource Identifier (URI) of the bucket. Passed in values must have a CCSID of 1200 (UTF16); returned values have a CCSID of 1200 (UTF16). Values can include uppercase and lowercase letters.
- bucket_name
- The name of the bucket, which is the root directory location on the cloud server. This directory must exist before you can copy files to it. Bucket names are case-sensitive; when specifying the name you must use the correct case. Passed in values must have a CCSID of 1200 (UTF16); returned values have a CCSID of 1200 (UTF16). Values can include uppercase and lowercase letters.
- key_id
- The name of a user authorized to access the bucket. Passed in values must have a CCSID of 1200 (UTF16); returned values have a CCSID of 1200 (UTF16). Values can include uppercase and lowercase letters.
- secret_key
- The authorization key required to access the bucket. Passed in values must have a CCSID of 1200 (UTF16); returned values have a CCSID of 1200 (UTF16). Values can include uppercase and lowercase letters.
- compress_data
- Switch enabling or disabling file compression. A value of 0 means compression is disabled; a value of 1 means compression is enabled. This field is only available in QICC0200 and QICC0300 formats.
- encrypt_data
- Switch enabling or disabling file encryption. A value of 0 means encryption is disabled; a value of 1 means encryption is enabled. When enabled, Cloud Storage Solutions uses the Advanced Encryption Standard (AES) encryption algorithm to encrypt files before they are copied to the cloud. The files remain encrypted "at rest" in the cloud, and are decrypted when copied back to the host IBM i computer. This field is only available in QICC0200 and QICC0300 formats.
- keystore
- The name of the keystore file that contains the certificates that Cloud Storage Solutions should use to "at rest" encrypt files the cloud using the resource. This field is only available in QICC0200 and QICC0300 formats.
- keylabel
- The label of the certificate that Cloud Storage Solutions should use to "at rest" encrypt files using the resource. This certificate must be in the keystore file specified in the keystore field. This field is only available in QICC0200 and QICC0300 formats. Values can include uppercase and lowercase letters.