Skip to main content

preauthenticated_requests

Creates, updates, deletes, gets or lists a preauthenticated_requests resource.

Overview​

Namepreauthenticated_requests
TypeResource
Idoci.object_storage.preauthenticated_requests

Fields​

The following fields are returned by SELECT queries:

Fetches the metadata for the specified pre-authenticated request.

NameDatatypeDescription
idstringThe unique identifier to use when directly addressing the pre-authenticated request.
namestringThe user-provided name of the pre-authenticated request.
accessTypestringThe operation that can be performed on this resource. (ObjectRead, ObjectWrite, ObjectReadWrite, AnyObjectWrite, AnyObjectRead, AnyObjectReadWrite)
bucketListingActionstringSpecifies 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. (x-obmcs-enumref: #/definitions/PreauthenticatedRequest/bucketListingAction)
objectNamestringThe name of object that is being granted access to by the pre-authenticated request. This can be null and if it is, the pre-authenticated request grants access to the entire bucket.
timeCreatedstring (date-time)The date when the pre-authenticated request was created as per [RFC 3339](https:​//tools.ietf.org/html/rfc3339).
timeExpiresstring (date-time)The expiration date for the pre-authenticated request as per [RFC 3339](https:​//tools.ietf.org/html/rfc3339). After this date the pre-authenticated request will no longer be valid.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnamespaceName, bucketName, parId, regionopc-client-request-idGets the pre-authenticated request for the bucket.
listselectnamespaceName, bucketName, regionobjectNamePrefix, limit, page, opc-client-request-idLists pre-authenticated requests for the bucket.<br />
createinsertnamespaceName, bucketName, region, name, accessType, timeExpiresopc-client-request-idCreates a pre-authenticated request specific to the bucket.<br />
deletedeletenamespaceName, bucketName, parId, regionopc-client-request-idDeletes the pre-authenticated request for the bucket.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bucketNamestringThe name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
namespaceNamestringThe Object Storage namespace used for the request.
parIdstringThe unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitintegerFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
objectNamePrefixstringUser-specified object name prefixes can be used to query and return a list of pre-authenticated requests.
opc-client-request-idstringThe client request ID for tracing.
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).

SELECT examples​

Gets the pre-authenticated request for the bucket.

SELECT
id,
name,
accessType,
bucketListingAction,
objectName,
timeCreated,
timeExpires
FROM oci.object_storage.preauthenticated_requests
WHERE namespaceName = '{{ namespaceName }}' -- required
AND bucketName = '{{ bucketName }}' -- required
AND parId = '{{ parId }}' -- required
AND region = '{{ region }}' -- required
AND opc-client-request-id = '{{ opc-client-request-id }}'
;

INSERT examples​

Creates a pre-authenticated request specific to the bucket.<br />

INSERT INTO oci.object_storage.preauthenticated_requests (
accessType,
bucketListingAction,
name,
objectName,
timeExpires,
namespaceName,
bucketName,
region,
opc-client-request-id
)
SELECT
'{{ accessType }}' /* required */,
'{{ bucketListingAction }}',
'{{ name }}' /* required */,
'{{ objectName }}',
'{{ timeExpires }}' /* required */,
'{{ namespaceName }}',
'{{ bucketName }}',
'{{ region }}',
'{{ opc-client-request-id }}'
RETURNING
id,
name,
accessType,
accessUri,
bucketListingAction,
objectName,
timeCreated,
timeExpires
;

DELETE examples​

Deletes the pre-authenticated request for the bucket.

DELETE FROM oci.object_storage.preauthenticated_requests
WHERE namespaceName = '{{ namespaceName }}' --required
AND bucketName = '{{ bucketName }}' --required
AND parId = '{{ parId }}' --required
AND region = '{{ region }}' --required
AND opc-client-request-id = '{{ opc-client-request-id }}'
;