Class TempUrl
Use this resource to generate an OpenStack Object Storage temporary URL.
The temporary URL will be valid for as long as TTL is set to (in seconds).
Once the URL has expired, it will no longer be valid, but the resource
will remain in place. If you wish to automatically regenerate a URL, set
the regenerate argument to true. This will create a new resource with
a new ID and URL.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var container1 = new OpenStack.ObjectStorage.Container("container1", new OpenStack.ObjectStorage.ContainerArgs
{
Metadata =
{
{ "Temp-URL-Key", "testkey" },
},
});
var object1 = new OpenStack.ObjectStorage.ContainerObject("object1", new OpenStack.ObjectStorage.ContainerObjectArgs
{
ContainerName = container1.Name,
Content = "Hello, world!",
});
var objTempurl = new OpenStack.ObjectStorage.TempUrl("objTempurl", new OpenStack.ObjectStorage.TempUrlArgs
{
Container = container1.Name,
Method = "post",
Object = object1.Name,
Ttl = 20,
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.ObjectStorage
Assembly: Pulumi.OpenStack.dll
Syntax
public class TempUrl : CustomResource
Constructors
View SourceTempUrl(String, TempUrlArgs, CustomResourceOptions)
Create a TempUrl resource with the given unique name, arguments, and options.
Declaration
public TempUrl(string name, TempUrlArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TempUrlArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceContainer
The container name the object belongs to.
Declaration
public Output<string> Container { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Method
The method allowed when accessing this URL.
Valid values are GET, and POST. Default is GET.
Declaration
public Output<string> Method { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Object
The object name the tempurl is for.
Declaration
public Output<string> Object { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Regenerate
Whether to automatically regenerate the URL when it has expired. If set to true, this will create a new resource with a new ID and new URL. Defaults to false.
Declaration
public Output<bool?> Regenerate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Region
The region the tempurl is located in.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Split
Declaration
public Output<string> Split { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Ttl
The TTL, in seconds, for the URL. For how long it should be valid.
Declaration
public Output<int> Ttl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Url
The URL
Declaration
public Output<string> Url { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, TempUrlState, CustomResourceOptions)
Get an existing TempUrl resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static TempUrl Get(string name, Input<string> id, TempUrlState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| TempUrlState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| TempUrl |