1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ObjectStorage
  5. getPreauthrequests
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.ObjectStorage.getPreauthrequests

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testPreauthenticatedRequests = oci.ObjectStorage.getPreauthrequests({
    bucket: preauthenticatedRequestBucket,
    namespace: preauthenticatedRequestNamespace,
    objectNamePrefix: preauthenticatedRequestObjectNamePrefix,
});
Copy
import pulumi
import pulumi_oci as oci

test_preauthenticated_requests = oci.ObjectStorage.get_preauthrequests(bucket=preauthenticated_request_bucket,
    namespace=preauthenticated_request_namespace,
    object_name_prefix=preauthenticated_request_object_name_prefix)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/objectstorage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := objectstorage.GetPreauthrequests(ctx, &objectstorage.GetPreauthrequestsArgs{
			Bucket:           preauthenticatedRequestBucket,
			Namespace:        preauthenticatedRequestNamespace,
			ObjectNamePrefix: pulumi.StringRef(preauthenticatedRequestObjectNamePrefix),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testPreauthenticatedRequests = Oci.ObjectStorage.GetPreauthrequests.Invoke(new()
    {
        Bucket = preauthenticatedRequestBucket,
        Namespace = preauthenticatedRequestNamespace,
        ObjectNamePrefix = preauthenticatedRequestObjectNamePrefix,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ObjectStorage.ObjectStorageFunctions;
import com.pulumi.oci.ObjectStorage.inputs.GetPreauthrequestsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testPreauthenticatedRequests = ObjectStorageFunctions.getPreauthrequests(GetPreauthrequestsArgs.builder()
            .bucket(preauthenticatedRequestBucket)
            .namespace(preauthenticatedRequestNamespace)
            .objectNamePrefix(preauthenticatedRequestObjectNamePrefix)
            .build());

    }
}
Copy
variables:
  testPreauthenticatedRequests:
    fn::invoke:
      function: oci:ObjectStorage:getPreauthrequests
      arguments:
        bucket: ${preauthenticatedRequestBucket}
        namespace: ${preauthenticatedRequestNamespace}
        objectNamePrefix: ${preauthenticatedRequestObjectNamePrefix}
Copy

Using getPreauthrequests

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPreauthrequests(args: GetPreauthrequestsArgs, opts?: InvokeOptions): Promise<GetPreauthrequestsResult>
function getPreauthrequestsOutput(args: GetPreauthrequestsOutputArgs, opts?: InvokeOptions): Output<GetPreauthrequestsResult>
Copy
def get_preauthrequests(bucket: Optional[str] = None,
                        filters: Optional[Sequence[_objectstorage.GetPreauthrequestsFilter]] = None,
                        namespace: Optional[str] = None,
                        object_name_prefix: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetPreauthrequestsResult
def get_preauthrequests_output(bucket: Optional[pulumi.Input[str]] = None,
                        filters: Optional[pulumi.Input[Sequence[pulumi.Input[_objectstorage.GetPreauthrequestsFilterArgs]]]] = None,
                        namespace: Optional[pulumi.Input[str]] = None,
                        object_name_prefix: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetPreauthrequestsResult]
Copy
func GetPreauthrequests(ctx *Context, args *GetPreauthrequestsArgs, opts ...InvokeOption) (*GetPreauthrequestsResult, error)
func GetPreauthrequestsOutput(ctx *Context, args *GetPreauthrequestsOutputArgs, opts ...InvokeOption) GetPreauthrequestsResultOutput
Copy

> Note: This function is named GetPreauthrequests in the Go SDK.

public static class GetPreauthrequests 
{
    public static Task<GetPreauthrequestsResult> InvokeAsync(GetPreauthrequestsArgs args, InvokeOptions? opts = null)
    public static Output<GetPreauthrequestsResult> Invoke(GetPreauthrequestsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPreauthrequestsResult> getPreauthrequests(GetPreauthrequestsArgs args, InvokeOptions options)
public static Output<GetPreauthrequestsResult> getPreauthrequests(GetPreauthrequestsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ObjectStorage/getPreauthrequests:getPreauthrequests
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Bucket This property is required. string
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
Namespace This property is required. string
The Object Storage namespace used for the request.
Filters Changes to this property will trigger replacement. List<GetPreauthrequestsFilter>
ObjectNamePrefix string
User-specified object name prefixes can be used to query and return a list of pre-authenticated requests.
Bucket This property is required. string
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
Namespace This property is required. string
The Object Storage namespace used for the request.
Filters Changes to this property will trigger replacement. []GetPreauthrequestsFilter
ObjectNamePrefix string
User-specified object name prefixes can be used to query and return a list of pre-authenticated requests.
bucket This property is required. String
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
namespace This property is required. String
The Object Storage namespace used for the request.
filters Changes to this property will trigger replacement. List<GetPreauthrequestsFilter>
objectNamePrefix String
User-specified object name prefixes can be used to query and return a list of pre-authenticated requests.
bucket This property is required. string
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
namespace This property is required. string
The Object Storage namespace used for the request.
filters Changes to this property will trigger replacement. GetPreauthrequestsFilter[]
objectNamePrefix string
User-specified object name prefixes can be used to query and return a list of pre-authenticated requests.
bucket This property is required. str
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
namespace This property is required. str
The Object Storage namespace used for the request.
filters Changes to this property will trigger replacement. Sequence[objectstorage.GetPreauthrequestsFilter]
object_name_prefix str
User-specified object name prefixes can be used to query and return a list of pre-authenticated requests.
bucket This property is required. String
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
namespace This property is required. String
The Object Storage namespace used for the request.
filters Changes to this property will trigger replacement. List<Property Map>
objectNamePrefix String
User-specified object name prefixes can be used to query and return a list of pre-authenticated requests.

getPreauthrequests Result

The following output properties are available:

Bucket string
The name of the bucket. Example: my-new-bucket1
Id string
The provider-assigned unique ID for this managed resource.
Namespace string
The Object Storage namespace used for the request.
PreauthenticatedRequests List<GetPreauthrequestsPreauthenticatedRequest>
The list of preauthenticated_requests.
Filters List<GetPreauthrequestsFilter>
ObjectNamePrefix string
Bucket string
The name of the bucket. Example: my-new-bucket1
Id string
The provider-assigned unique ID for this managed resource.
Namespace string
The Object Storage namespace used for the request.
PreauthenticatedRequests []GetPreauthrequestsPreauthenticatedRequest
The list of preauthenticated_requests.
Filters []GetPreauthrequestsFilter
ObjectNamePrefix string
bucket String
The name of the bucket. Example: my-new-bucket1
id String
The provider-assigned unique ID for this managed resource.
namespace String
The Object Storage namespace used for the request.
preauthenticatedRequests List<GetPreauthrequestsPreauthenticatedRequest>
The list of preauthenticated_requests.
filters List<GetPreauthrequestsFilter>
objectNamePrefix String
bucket string
The name of the bucket. Example: my-new-bucket1
id string
The provider-assigned unique ID for this managed resource.
namespace string
The Object Storage namespace used for the request.
preauthenticatedRequests GetPreauthrequestsPreauthenticatedRequest[]
The list of preauthenticated_requests.
filters GetPreauthrequestsFilter[]
objectNamePrefix string
bucket str
The name of the bucket. Example: my-new-bucket1
id str
The provider-assigned unique ID for this managed resource.
namespace str
The Object Storage namespace used for the request.
preauthenticated_requests Sequence[objectstorage.GetPreauthrequestsPreauthenticatedRequest]
The list of preauthenticated_requests.
filters Sequence[objectstorage.GetPreauthrequestsFilter]
object_name_prefix str
bucket String
The name of the bucket. Example: my-new-bucket1
id String
The provider-assigned unique ID for this managed resource.
namespace String
The Object Storage namespace used for the request.
preauthenticatedRequests List<Property Map>
The list of preauthenticated_requests.
filters List<Property Map>
objectNamePrefix String

Supporting Types

GetPreauthrequestsFilter

Name This property is required. string
The user-provided name of the pre-authenticated request.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The user-provided name of the pre-authenticated request.
Values This property is required. []string
Regex bool
name This property is required. String
The user-provided name of the pre-authenticated request.
values This property is required. List<String>
regex Boolean
name This property is required. string
The user-provided name of the pre-authenticated request.
values This property is required. string[]
regex boolean
name This property is required. str
The user-provided name of the pre-authenticated request.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The user-provided name of the pre-authenticated request.
values This property is required. List<String>
regex Boolean

GetPreauthrequestsPreauthenticatedRequest

AccessType This property is required. string
The operation that can be performed on this resource.
AccessUri This property is required. string
The URI to embed in the URL when using the pre-authenticated request.
Bucket This property is required. string
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
BucketListingAction This property is required. string
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 This property is required. string
Id This property is required. string
The unique identifier to use when directly addressing the pre-authenticated request.
Name This property is required. string
The user-provided name of the pre-authenticated request.
Namespace This property is required. string
The Object Storage namespace used for the request.
Object This property is required. string
Deprecated. Instead use object_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.log

Deprecated: The 'object' field has been deprecated. Please use 'object_name' instead.

ObjectName This property is required. 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
ParId This property is required. string
TimeCreated This property is required. string
The date when the pre-authenticated request was created as per specification RFC 3339.
TimeExpires This property is required. string
The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.
AccessType This property is required. string
The operation that can be performed on this resource.
AccessUri This property is required. string
The URI to embed in the URL when using the pre-authenticated request.
Bucket This property is required. string
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
BucketListingAction This property is required. string
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 This property is required. string
Id This property is required. string
The unique identifier to use when directly addressing the pre-authenticated request.
Name This property is required. string
The user-provided name of the pre-authenticated request.
Namespace This property is required. string
The Object Storage namespace used for the request.
Object This property is required. string
Deprecated. Instead use object_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.log

Deprecated: The 'object' field has been deprecated. Please use 'object_name' instead.

ObjectName This property is required. 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
ParId This property is required. string
TimeCreated This property is required. string
The date when the pre-authenticated request was created as per specification RFC 3339.
TimeExpires This property is required. string
The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.
accessType This property is required. String
The operation that can be performed on this resource.
accessUri This property is required. String
The URI to embed in the URL when using the pre-authenticated request.
bucket This property is required. String
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
bucketListingAction This property is required. String
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 This property is required. String
id This property is required. String
The unique identifier to use when directly addressing the pre-authenticated request.
name This property is required. String
The user-provided name of the pre-authenticated request.
namespace This property is required. String
The Object Storage namespace used for the request.
object This property is required. String
Deprecated. Instead use object_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.log

Deprecated: The 'object' field has been deprecated. Please use 'object_name' instead.

objectName This property is required. 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
parId This property is required. String
timeCreated This property is required. String
The date when the pre-authenticated request was created as per specification RFC 3339.
timeExpires This property is required. String
The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.
accessType This property is required. string
The operation that can be performed on this resource.
accessUri This property is required. string
The URI to embed in the URL when using the pre-authenticated request.
bucket This property is required. string
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
bucketListingAction This property is required. string
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 This property is required. string
id This property is required. string
The unique identifier to use when directly addressing the pre-authenticated request.
name This property is required. string
The user-provided name of the pre-authenticated request.
namespace This property is required. string
The Object Storage namespace used for the request.
object This property is required. string
Deprecated. Instead use object_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.log

Deprecated: The 'object' field has been deprecated. Please use 'object_name' instead.

objectName This property is required. 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
parId This property is required. string
timeCreated This property is required. string
The date when the pre-authenticated request was created as per specification RFC 3339.
timeExpires This property is required. string
The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.
access_type This property is required. str
The operation that can be performed on this resource.
access_uri This property is required. str
The URI to embed in the URL when using the pre-authenticated request.
bucket This property is required. str
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
bucket_listing_action This property is required. str
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.
full_path This property is required. str
id This property is required. str
The unique identifier to use when directly addressing the pre-authenticated request.
name This property is required. str
The user-provided name of the pre-authenticated request.
namespace This property is required. str
The Object Storage namespace used for the request.
object This property is required. str
Deprecated. Instead use object_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.log

Deprecated: The 'object' field has been deprecated. Please use 'object_name' instead.

object_name This property is required. str
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
par_id This property is required. str
time_created This property is required. str
The date when the pre-authenticated request was created as per specification RFC 3339.
time_expires This property is required. str
The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.
accessType This property is required. String
The operation that can be performed on this resource.
accessUri This property is required. String
The URI to embed in the URL when using the pre-authenticated request.
bucket This property is required. String
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
bucketListingAction This property is required. String
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 This property is required. String
id This property is required. String
The unique identifier to use when directly addressing the pre-authenticated request.
name This property is required. String
The user-provided name of the pre-authenticated request.
namespace This property is required. String
The Object Storage namespace used for the request.
object This property is required. String
Deprecated. Instead use object_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.log

Deprecated: The 'object' field has been deprecated. Please use 'object_name' instead.

objectName This property is required. 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
parId This property is required. String
timeCreated This property is required. String
The date when the pre-authenticated request was created as per specification RFC 3339.
timeExpires This property is required. String
The expiration date for the pre-authenticated request as per RFC 3339. After this date the pre-authenticated request will no longer be valid.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi