Data Source: oci_objectstorage_preauthrequests
This data source provides the list of Preauthenticated Requests in Oracle Cloud Infrastructure Object Storage service.
Lists pre-authenticated requests for the bucket.
Example Usage
data "oci_objectstorage_preauthrequests" "test_preauthenticated_requests" {
#Required
bucket = var.preauthenticated_request_bucket
namespace = var.preauthenticated_request_namespace
#Optional
object_name_prefix = var.preauthenticated_request_object_name_prefix
}
Argument Reference
The following arguments are supported:
bucket- (Required) The name of the bucket. Avoid entering confidential information. Example:my-new-bucket1namespace- (Required) The Object Storage namespace used for the request.object_name_prefix- (Optional) User-specified object name prefixes can be used to query and return a list of pre-authenticated requests.
Attributes Reference
The following attributes are exported:
preauthenticated_requests- The list of preauthenticated_requests.
PreauthenticatedRequest Reference
The following attributes are exported:
access_type- The operation that can be performed on this resource.bucket_listing_action- 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.access_uri- The URI to embed in the URL when using the pre-authenticated request.bucket- The name of the bucket. Example:my-new-bucket1id- The unique identifier to use when directly addressing the pre-authenticated request.name- The user-provided name of the pre-authenticated request.namespace- The Object Storage namespace used for the request.object- Deprecated. Instead useobject_name.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.logobject_name- 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.logtime_created- The date when the pre-authenticated request was created as per specification RFC 3339.time_expires- The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.