Class RestoreVaultFromFileRequest
Implements
Inherited Members
Namespace: Oci.KeymanagementService.Requests
Assembly: OCI.DotNetSDK.Keymanagement.dll
Syntax
public class RestoreVaultFromFileRequest : IOciRequest
Examples
Click here to see an example of how to use RestoreVaultFromFile request.
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[HttpConverter(TargetEnum.Query, "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment. |
Remarks
Required
ContentLength
Declaration
[HttpConverter(TargetEnum.Header, "content-length")]
public long? ContentLength { get; set; }
Property Value
Type | Description |
---|---|
long? | The content length of the body. |
ContentMd5
Declaration
[HttpConverter(TargetEnum.Header, "content-md5")]
public string ContentMd5 { get; set; }
Property Value
Type | Description |
---|---|
string | The base64-encoded MD5 hash value of the body, as described in RFC 2616, section 14.15. If the Content-MD5 header is present, Key Management performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes don't match, the object is rejected and a response with 400 Unmatched Content MD5 error is returned, along with the message: "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)." |
IfMatch
Declaration
[HttpConverter(TargetEnum.Header, "if-match")]
public string IfMatch { get; set; }
Property Value
Type | Description |
---|---|
string | For optimistic concurrency control. In the PUT or DELETE call for a
resource, set the |
OpcRequestId
Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
Type | Description |
---|---|
string | Unique identifier for the request. If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. |
OpcRetryToken
Declaration
[HttpConverter(TargetEnum.Header, "opc-retry-token")]
public string OpcRetryToken { get; set; }
Property Value
Type | Description |
---|---|
string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (e.g., if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected). |
RestoreVaultFromFileDetails
Declaration
[Required(ErrorMessage = "RestoreVaultFromFileDetails is required.")]
[HttpConverter(TargetEnum.Body)]
public Stream RestoreVaultFromFileDetails { get; set; }
Property Value
Type | Description |
---|---|
Stream | The encrypted backup file to upload to restore the vault. |
Remarks
Required