Show / Hide Table of Contents

Class CopyObjectRequest

Inheritance
object
CopyObjectRequest
Implements
IOciRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ObjectstorageService.Requests
Assembly: OCI.DotNetSDK.Objectstorage.dll
Syntax
public class CopyObjectRequest : IOciRequest
Examples

Click here to see an example of how to use CopyObject request.

Properties

BucketName

Declaration
[Required(ErrorMessage = "BucketName is required.")]
[HttpConverter(TargetEnum.Path, "bucketName")]
public string BucketName { get; set; }
Property Value
Type Description
string

The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1

Remarks

Required

CopyObjectDetails

Declaration
[Required(ErrorMessage = "CopyObjectDetails is required.")]
[HttpConverter(TargetEnum.Body)]
public CopyObjectDetails CopyObjectDetails { get; set; }
Property Value
Type Description
CopyObjectDetails

The source and destination of the object to be copied.

Remarks

Required

NamespaceName

Declaration
[Required(ErrorMessage = "NamespaceName is required.")]
[HttpConverter(TargetEnum.Path, "namespaceName")]
public string NamespaceName { get; set; }
Property Value
Type Description
string

The Object Storage namespace used for the request.

Remarks

Required

OpcClientRequestId

Declaration
[HttpConverter(TargetEnum.Header, "opc-client-request-id")]
public string OpcClientRequestId { get; set; }
Property Value
Type Description
string

The client request ID for tracing.

OpcSourceSseCustomerAlgorithm

Declaration
[HttpConverter(TargetEnum.Header, "opc-source-sse-customer-algorithm")]
public string OpcSourceSseCustomerAlgorithm { get; set; }
Property Value
Type Description
string

The optional header that specifies "AES256" as the encryption algorithm to use to decrypt the source object. For more information, see Using Your Own Keys for Server-Side Encryption.

OpcSourceSseCustomerKey

Declaration
[HttpConverter(TargetEnum.Header, "opc-source-sse-customer-key")]
public string OpcSourceSseCustomerKey { get; set; }
Property Value
Type Description
string

The optional header that specifies the base64-encoded 256-bit encryption key to use to decrypt the source object. For more information, see Using Your Own Keys for Server-Side Encryption.

OpcSourceSseCustomerKeySha256

Declaration
[HttpConverter(TargetEnum.Header, "opc-source-sse-customer-key-sha256")]
public string OpcSourceSseCustomerKeySha256 { get; set; }
Property Value
Type Description
string

The optional header that specifies the base64-encoded SHA256 hash of the encryption key used to decrypt the source object. This value is used to check the integrity of the encryption key. For more information, see Using Your Own Keys for Server-Side Encryption.

OpcSseCustomerAlgorithm

Declaration
[HttpConverter(TargetEnum.Header, "opc-sse-customer-algorithm")]
public string OpcSseCustomerAlgorithm { get; set; }
Property Value
Type Description
string

The optional header that specifies "AES256" as the encryption algorithm. For more information, see Using Your Own Keys for Server-Side Encryption.

OpcSseCustomerKey

Declaration
[HttpConverter(TargetEnum.Header, "opc-sse-customer-key")]
public string OpcSseCustomerKey { get; set; }
Property Value
Type Description
string

The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data. For more information, see Using Your Own Keys for Server-Side Encryption.

OpcSseCustomerKeySha256

Declaration
[HttpConverter(TargetEnum.Header, "opc-sse-customer-key-sha256")]
public string OpcSseCustomerKeySha256 { get; set; }
Property Value
Type Description
string

The optional header that specifies the base64-encoded SHA256 hash of the encryption key. This value is used to check the integrity of the encryption key. For more information, see Using Your Own Keys for Server-Side Encryption.

OpcSseKmsKeyId

Declaration
[HttpConverter(TargetEnum.Header, "opc-sse-kms-key-id")]
public string OpcSseKmsKeyId { get; set; }
Property Value
Type Description
string

The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.

Implements

IOciRequest
In this article
Back to top