Show / Hide Table of Contents

Class PreauthenticatedRequest

Pre-authenticated requests provide a way to let users access a bucket or an object without having their own credentials. When you create a pre-authenticated request, a unique URL is generated. Users in your organization, partners, or third parties can use this URL to access the targets identified in the pre-authenticated request. See Using Pre-Authenticated Requests.
To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies.

Inheritance
object
PreauthenticatedRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ObjectstorageService.Models
Assembly: OCI.DotNetSDK.Objectstorage.dll
Syntax
public class PreauthenticatedRequest

Properties

AccessType

Declaration
[Required(ErrorMessage = "AccessType is required.")]
[JsonProperty(PropertyName = "accessType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public PreauthenticatedRequest.AccessTypeEnum? AccessType { get; set; }
Property Value
Type Description
PreauthenticatedRequest.AccessTypeEnum?

The operation that can be performed on this resource.

Remarks

Required

AccessUri

Declaration
[Required(ErrorMessage = "AccessUri is required.")]
[JsonProperty(PropertyName = "accessUri")]
public string AccessUri { get; set; }
Property Value
Type Description
string

The URI to embed in the URL when using the pre-authenticated request.

Remarks

Required

BucketListingAction

Declaration
[JsonProperty(PropertyName = "bucketListingAction")]
[JsonConverter(typeof(ResponseEnumConverter))]
public PreauthenticatedRequest.BucketListingActionEnum? BucketListingAction { get; set; }
Property Value
Type Description
PreauthenticatedRequest.BucketListingActionEnum?

Specifies whether a list operation is allowed on a PAR with accessType "AnyObjectRead" or "AnyObjectReadWrite". Deny: Prevents the user from performing a list operation. ListObjects: Authorizes the user to perform a list operation.

FullPath

Declaration
[JsonProperty(PropertyName = "fullPath")]
public string FullPath { get; set; }
Property Value
Type Description
string

The full Path for the object.

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The unique identifier to use when directly addressing the pre-authenticated request.

Remarks

Required

Name

Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type Description
string

The user-provided name of the pre-authenticated request.

Remarks

Required

ObjectName

Declaration
[JsonProperty(PropertyName = "objectName")]
public string ObjectName { get; set; }
Property Value
Type Description
string

The name of the object that is being granted access to by the pre-authenticated request. Avoid entering confidential information. The object name can be null and if so, the pre-authenticated request grants access to the entire bucket. Example: test/object1.log

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date when the pre-authenticated request was created as per specification RFC 3339.

Remarks

Required

TimeExpires

Declaration
[Required(ErrorMessage = "TimeExpires is required.")]
[JsonProperty(PropertyName = "timeExpires")]
public DateTime? TimeExpires { get; set; }
Property Value
Type Description
DateTime?

The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.

Remarks

Required

In this article
Back to top