ObjectLockApi
All URIs are relative to https://s3.eu-central-3.ionoscloud.com
Method | HTTP request | Description |
---|---|---|
Get /{Bucket}/{Key}?legal-hold | GetObjectLegalHold | |
Get /{Bucket}?object-lock | GetObjectLockConfiguration | |
Get /{Bucket}/{Key}?retention | GetObjectRetention | |
Put /{Bucket}/{Key}?legal-hold | PutObjectLegalHold | |
Put /{Bucket}?object-lock | PutObjectLockConfiguration | |
Put /{Bucket}/{Key}?retention | PutObjectRetention |
GetObjectLegalHold
GetObjectLegalHold
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
bucket | string | ||
key | string | The key name of the object whose Legal Hold status you want to retrieve. |
Other Parameters
Other parameters are passed through a pointer to an apiGetObjectLegalHoldRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
versionId | string | The version ID of the object whose Legal Hold status you want to retrieve. |
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/xml
URLs Configuration per Operation
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectLockApiService.GetObjectLegalHold"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
GetObjectLockConfiguration
GetObjectLockConfiguration
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
bucket | string |
Other Parameters
Other parameters are passed through a pointer to an apiGetObjectLockConfigurationRequest struct via the builder pattern
Return type
GetObjectLockConfigurationOutput
HTTP request headers
Content-Type: Not defined
Accept: application/xml
URLs Configuration per Operation
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectLockApiService.GetObjectLockConfiguration"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
GetObjectRetention
GetObjectRetention
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
bucket | string | ||
key | string | The key name of the object whose retention settings you want to retrieve. |
Other Parameters
Other parameters are passed through a pointer to an apiGetObjectRetentionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
versionId | string | The version ID of the object whose retention settings you want to retrieve. |
Return type
HTTP request headers
Content-Type: Not defined
Accept: application/xml
URLs Configuration per Operation
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectLockApiService.GetObjectRetention"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
PutObjectLegalHold
PutObjectLegalHold
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
bucket | string | ||
key | string | The key name of the object on which you want to place a Legal Hold. |
Other Parameters
Other parameters are passed through a pointer to an apiPutObjectLegalHoldRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
objectLegalHoldConfiguration | |||
versionId | string | The version ID of the object on which you want to place a Legal Hold. | |
contentMD5 | string |
Return type
(empty response body)
HTTP request headers
Content-Type: application/xml
Accept: application/xml
URLs Configuration per Operation
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectLockApiService.PutObjectLegalHold"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
PutObjectLockConfiguration
PutObjectLockConfiguration
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
bucket | string |
Other Parameters
Other parameters are passed through a pointer to an apiPutObjectLockConfigurationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
contentMD5 | string | ||
putObjectLockConfigurationRequest |
Return type
(empty response body)
HTTP request headers
Content-Type: application/xml
Accept: application/xml
URLs Configuration per Operation
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectLockApiService.PutObjectLockConfiguration"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
PutObjectRetention
PutObjectRetention
Example
Path Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
bucket | string | ||
key | string | The key name of the object to which you want to apply the Object Retention configuration. |
Other Parameters
Other parameters are passed through a pointer to an apiPutObjectRetentionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
putObjectRetentionRequest | |||
versionId | string | The version ID of the object to which you want to apply the Object Retention configuration. | |
xAmzBypassGovernanceRetention | bool | Indicates whether this operation should bypass Governance mode's restrictions. | [default to false] |
contentMD5 | string |
Return type
(empty response body)
HTTP request headers
Content-Type: application/xml
Accept: application/xml
URLs Configuration per Operation
Each operation can use different server URL defined using OperationServers
map in the Configuration
. An operation is uniquely identified by "ObjectLockApiService.PutObjectRetention"
string. Similar rules for overriding default operation server index and variables apply by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
Last updated