Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.ObjectStorage.getPreauthrequest
Explore with Pulumi AI
This data source provides details about a specific Preauthenticated Request resource in Oracle Cloud Infrastructure Object Storage service.
Gets the pre-authenticated request for the bucket.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPreauthenticatedRequest = oci.ObjectStorage.getPreauthrequest({
bucket: preauthenticatedRequestBucket,
namespace: preauthenticatedRequestNamespace,
parId: testPar.id,
});
import pulumi
import pulumi_oci as oci
test_preauthenticated_request = oci.ObjectStorage.get_preauthrequest(bucket=preauthenticated_request_bucket,
namespace=preauthenticated_request_namespace,
par_id=test_par["id"])
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.GetPreauthrequest(ctx, &objectstorage.GetPreauthrequestArgs{
Bucket: preauthenticatedRequestBucket,
Namespace: preauthenticatedRequestNamespace,
ParId: testPar.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testPreauthenticatedRequest = Oci.ObjectStorage.GetPreauthrequest.Invoke(new()
{
Bucket = preauthenticatedRequestBucket,
Namespace = preauthenticatedRequestNamespace,
ParId = testPar.Id,
});
});
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.GetPreauthrequestArgs;
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 testPreauthenticatedRequest = ObjectStorageFunctions.getPreauthrequest(GetPreauthrequestArgs.builder()
.bucket(preauthenticatedRequestBucket)
.namespace(preauthenticatedRequestNamespace)
.parId(testPar.id())
.build());
}
}
variables:
testPreauthenticatedRequest:
fn::invoke:
Function: oci:ObjectStorage:getPreauthrequest
Arguments:
bucket: ${preauthenticatedRequestBucket}
namespace: ${preauthenticatedRequestNamespace}
parId: ${testPar.id}
Using getPreauthrequest
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 getPreauthrequest(args: GetPreauthrequestArgs, opts?: InvokeOptions): Promise<GetPreauthrequestResult>
function getPreauthrequestOutput(args: GetPreauthrequestOutputArgs, opts?: InvokeOptions): Output<GetPreauthrequestResult>
def get_preauthrequest(bucket: Optional[str] = None,
namespace: Optional[str] = None,
par_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPreauthrequestResult
def get_preauthrequest_output(bucket: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
par_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPreauthrequestResult]
func GetPreauthrequest(ctx *Context, args *GetPreauthrequestArgs, opts ...InvokeOption) (*GetPreauthrequestResult, error)
func GetPreauthrequestOutput(ctx *Context, args *GetPreauthrequestOutputArgs, opts ...InvokeOption) GetPreauthrequestResultOutput
> Note: This function is named GetPreauthrequest
in the Go SDK.
public static class GetPreauthrequest
{
public static Task<GetPreauthrequestResult> InvokeAsync(GetPreauthrequestArgs args, InvokeOptions? opts = null)
public static Output<GetPreauthrequestResult> Invoke(GetPreauthrequestInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPreauthrequestResult> getPreauthrequest(GetPreauthrequestArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ObjectStorage/getPreauthrequest:getPreauthrequest
arguments:
# arguments dictionary
The following arguments are supported:
- Bucket string
- The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- Namespace string
- The Object Storage namespace used for the request.
- Par
Id string - The unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE.
- Bucket string
- The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- Namespace string
- The Object Storage namespace used for the request.
- Par
Id string - The unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE.
- bucket String
- The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- namespace String
- The Object Storage namespace used for the request.
- par
Id String - The unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE.
- bucket string
- The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- namespace string
- The Object Storage namespace used for the request.
- par
Id string - The unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE.
- bucket str
- The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- namespace str
- The Object Storage namespace used for the request.
- par_
id str - The unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE.
- bucket String
- The name of the bucket. Avoid entering confidential information. Example:
my-new-bucket1
- namespace String
- The Object Storage namespace used for the request.
- par
Id String - The unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE.
getPreauthrequest Result
The following output properties are available:
- Access
Type string - The operation that can be performed on this resource.
- Access
Uri string - The URI to embed in the URL when using the pre-authenticated request.
- Bucket string
- The name of the bucket. Example:
my-new-bucket1
- Bucket
Listing stringAction - 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 string - Id string
- The unique identifier to use when directly addressing the pre-authenticated request.
- Name string
- The user-provided name of the pre-authenticated request.
- Namespace string
- The Object Storage namespace used for the request.
- Object 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 - Object
Name 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
- Par
Id string - Time
Created string - The date when the pre-authenticated request was created as per specification RFC 3339.
- Time
Expires 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 string - The operation that can be performed on this resource.
- Access
Uri string - The URI to embed in the URL when using the pre-authenticated request.
- Bucket string
- The name of the bucket. Example:
my-new-bucket1
- Bucket
Listing stringAction - 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 string - Id string
- The unique identifier to use when directly addressing the pre-authenticated request.
- Name string
- The user-provided name of the pre-authenticated request.
- Namespace string
- The Object Storage namespace used for the request.
- Object 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 - Object
Name 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
- Par
Id string - Time
Created string - The date when the pre-authenticated request was created as per specification RFC 3339.
- Time
Expires 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 String - The operation that can be performed on this resource.
- access
Uri String - The URI to embed in the URL when using the pre-authenticated request.
- bucket String
- The name of the bucket. Example:
my-new-bucket1
- bucket
Listing StringAction - 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 String - id String
- The unique identifier to use when directly addressing the pre-authenticated request.
- name String
- The user-provided name of the pre-authenticated request.
- namespace String
- The Object Storage namespace used for the request.
- object 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 - object
Name 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
- par
Id String - time
Created String - The date when the pre-authenticated request was created as per specification RFC 3339.
- time
Expires 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 string - The operation that can be performed on this resource.
- access
Uri string - The URI to embed in the URL when using the pre-authenticated request.
- bucket string
- The name of the bucket. Example:
my-new-bucket1
- bucket
Listing stringAction - 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 string - id string
- The unique identifier to use when directly addressing the pre-authenticated request.
- name string
- The user-provided name of the pre-authenticated request.
- namespace string
- The Object Storage namespace used for the request.
- object 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 - object
Name 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
- par
Id string - time
Created string - The date when the pre-authenticated request was created as per specification RFC 3339.
- time
Expires 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 str - The operation that can be performed on this resource.
- access_
uri str - The URI to embed in the URL when using the pre-authenticated request.
- bucket str
- The name of the bucket. Example:
my-new-bucket1
- bucket_
listing_ straction - 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 str - id str
- The unique identifier to use when directly addressing the pre-authenticated request.
- name str
- The user-provided name of the pre-authenticated request.
- namespace str
- The Object Storage namespace used for the request.
- object 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 - object_
name 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 str - time_
created str - The date when the pre-authenticated request was created as per specification RFC 3339.
- time_
expires 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.
- access
Type String - The operation that can be performed on this resource.
- access
Uri String - The URI to embed in the URL when using the pre-authenticated request.
- bucket String
- The name of the bucket. Example:
my-new-bucket1
- bucket
Listing StringAction - 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 String - id String
- The unique identifier to use when directly addressing the pre-authenticated request.
- name String
- The user-provided name of the pre-authenticated request.
- namespace String
- The Object Storage namespace used for the request.
- object 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 - object
Name 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
- par
Id String - time
Created String - The date when the pre-authenticated request was created as per specification RFC 3339.
- time
Expires 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.