openstack.objectstorage.ContainerObject

Explore with Pulumi AI

Manages a V1 container object resource within OpenStack.

Example Usage

Example with simple content

using System.Collections.Generic;
using Pulumi;
using OpenStack = Pulumi.OpenStack;

return await Deployment.RunAsync(() => 
{
    var container1 = new OpenStack.ObjectStorage.Container("container1", new()
    {
        ContentType = "application/json",
        Metadata = 
        {
            { "test", "true" },
        },
        Region = "RegionOne",
    });

    var doc1 = new OpenStack.ObjectStorage.ContainerObject("doc1", new()
    {
        ContainerName = container1.Name,
        Content = @"               {
                 ""foo"" : ""bar""
               }

",
        ContentType = "application/json",
        Metadata = 
        {
            { "test", "true" },
        },
        Region = "RegionOne",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		container1, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{
			ContentType: pulumi.String("application/json"),
			Metadata: pulumi.AnyMap{
				"test": pulumi.Any("true"),
			},
			Region: pulumi.String("RegionOne"),
		})
		if err != nil {
			return err
		}
		_, err = objectstorage.NewContainerObject(ctx, "doc1", &objectstorage.ContainerObjectArgs{
			ContainerName: container1.Name,
			Content:       pulumi.String("               {\n                 \"foo\" : \"bar\"\n               }\n\n"),
			ContentType:   pulumi.String("application/json"),
			Metadata: pulumi.AnyMap{
				"test": pulumi.Any("true"),
			},
			Region: pulumi.String("RegionOne"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.objectstorage.Container;
import com.pulumi.openstack.objectstorage.ContainerArgs;
import com.pulumi.openstack.objectstorage.ContainerObject;
import com.pulumi.openstack.objectstorage.ContainerObjectArgs;
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) {
        var container1 = new Container("container1", ContainerArgs.builder()        
            .contentType("application/json")
            .metadata(Map.of("test", "true"))
            .region("RegionOne")
            .build());

        var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder()        
            .containerName(container1.name())
            .content("""
               {
                 "foo" : "bar"
               }

            """)
            .contentType("application/json")
            .metadata(Map.of("test", "true"))
            .region("RegionOne")
            .build());

    }
}
import pulumi
import pulumi_openstack as openstack

container1 = openstack.objectstorage.Container("container1",
    content_type="application/json",
    metadata={
        "test": "true",
    },
    region="RegionOne")
doc1 = openstack.objectstorage.ContainerObject("doc1",
    container_name=container1.name,
    content="""               {
                 "foo" : "bar"
               }

""",
    content_type="application/json",
    metadata={
        "test": "true",
    },
    region="RegionOne")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const container1 = new openstack.objectstorage.Container("container1", {
    contentType: "application/json",
    metadata: {
        test: "true",
    },
    region: "RegionOne",
});
const doc1 = new openstack.objectstorage.ContainerObject("doc1", {
    containerName: container1.name,
    content: `               {
                 "foo" : "bar"
               }

`,
    contentType: "application/json",
    metadata: {
        test: "true",
    },
    region: "RegionOne",
});
resources:
  container1:
    type: openstack:objectstorage:Container
    properties:
      contentType: application/json
      metadata:
        test: 'true'
      region: RegionOne
  doc1:
    type: openstack:objectstorage:ContainerObject
    properties:
      containerName: ${container1.name}
      content: |2+
                       {
                         "foo" : "bar"
                       }

      contentType: application/json
      metadata:
        test: 'true'
      region: RegionOne

Example with content from file

using System.Collections.Generic;
using Pulumi;
using OpenStack = Pulumi.OpenStack;

return await Deployment.RunAsync(() => 
{
    var container1 = new OpenStack.ObjectStorage.Container("container1", new()
    {
        ContentType = "application/json",
        Metadata = 
        {
            { "test", "true" },
        },
        Region = "RegionOne",
    });

    var doc1 = new OpenStack.ObjectStorage.ContainerObject("doc1", new()
    {
        ContainerName = container1.Name,
        ContentType = "application/json",
        Metadata = 
        {
            { "test", "true" },
        },
        Region = "RegionOne",
        Source = "./default.json",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		container1, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{
			ContentType: pulumi.String("application/json"),
			Metadata: pulumi.AnyMap{
				"test": pulumi.Any("true"),
			},
			Region: pulumi.String("RegionOne"),
		})
		if err != nil {
			return err
		}
		_, err = objectstorage.NewContainerObject(ctx, "doc1", &objectstorage.ContainerObjectArgs{
			ContainerName: container1.Name,
			ContentType:   pulumi.String("application/json"),
			Metadata: pulumi.AnyMap{
				"test": pulumi.Any("true"),
			},
			Region: pulumi.String("RegionOne"),
			Source: pulumi.String("./default.json"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.objectstorage.Container;
import com.pulumi.openstack.objectstorage.ContainerArgs;
import com.pulumi.openstack.objectstorage.ContainerObject;
import com.pulumi.openstack.objectstorage.ContainerObjectArgs;
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) {
        var container1 = new Container("container1", ContainerArgs.builder()        
            .contentType("application/json")
            .metadata(Map.of("test", "true"))
            .region("RegionOne")
            .build());

        var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder()        
            .containerName(container1.name())
            .contentType("application/json")
            .metadata(Map.of("test", "true"))
            .region("RegionOne")
            .source("./default.json")
            .build());

    }
}
import pulumi
import pulumi_openstack as openstack

container1 = openstack.objectstorage.Container("container1",
    content_type="application/json",
    metadata={
        "test": "true",
    },
    region="RegionOne")
doc1 = openstack.objectstorage.ContainerObject("doc1",
    container_name=container1.name,
    content_type="application/json",
    metadata={
        "test": "true",
    },
    region="RegionOne",
    source="./default.json")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const container1 = new openstack.objectstorage.Container("container1", {
    contentType: "application/json",
    metadata: {
        test: "true",
    },
    region: "RegionOne",
});
const doc1 = new openstack.objectstorage.ContainerObject("doc1", {
    containerName: container1.name,
    contentType: "application/json",
    metadata: {
        test: "true",
    },
    region: "RegionOne",
    source: "./default.json",
});
resources:
  container1:
    type: openstack:objectstorage:Container
    properties:
      contentType: application/json
      metadata:
        test: 'true'
      region: RegionOne
  doc1:
    type: openstack:objectstorage:ContainerObject
    properties:
      containerName: ${container1.name}
      contentType: application/json
      metadata:
        test: 'true'
      region: RegionOne
      source: ./default.json

Create ContainerObject Resource

new ContainerObject(name: string, args: ContainerObjectArgs, opts?: CustomResourceOptions);
@overload
def ContainerObject(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    container_name: Optional[str] = None,
                    content: Optional[str] = None,
                    content_disposition: Optional[str] = None,
                    content_encoding: Optional[str] = None,
                    content_type: Optional[str] = None,
                    copy_from: Optional[str] = None,
                    delete_after: Optional[int] = None,
                    delete_at: Optional[str] = None,
                    detect_content_type: Optional[bool] = None,
                    etag: Optional[str] = None,
                    metadata: Optional[Mapping[str, Any]] = None,
                    name: Optional[str] = None,
                    object_manifest: Optional[str] = None,
                    region: Optional[str] = None,
                    source: Optional[str] = None)
@overload
def ContainerObject(resource_name: str,
                    args: ContainerObjectArgs,
                    opts: Optional[ResourceOptions] = None)
func NewContainerObject(ctx *Context, name string, args ContainerObjectArgs, opts ...ResourceOption) (*ContainerObject, error)
public ContainerObject(string name, ContainerObjectArgs args, CustomResourceOptions? opts = null)
public ContainerObject(String name, ContainerObjectArgs args)
public ContainerObject(String name, ContainerObjectArgs args, CustomResourceOptions options)
type: openstack:objectstorage:ContainerObject
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ContainerObjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ContainerObjectArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ContainerObjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ContainerObjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ContainerObjectArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ContainerObject Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ContainerObject resource accepts the following input properties:

ContainerName string

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

Content string

A string representing the content of the object. Conflicts with source and copy_from.

ContentDisposition string

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

ContentEncoding string

A string representing the value of the Content-Encoding metadata.

ContentType string

A string which sets the MIME type for the object.

CopyFrom string

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

DeleteAfter int

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

DeleteAt string

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

DetectContentType bool

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

Etag string

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

Metadata Dictionary<string, object>
Name string

A unique name for the object.

ObjectManifest string

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

Region string

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

Source string

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

ContainerName string

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

Content string

A string representing the content of the object. Conflicts with source and copy_from.

ContentDisposition string

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

ContentEncoding string

A string representing the value of the Content-Encoding metadata.

ContentType string

A string which sets the MIME type for the object.

CopyFrom string

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

DeleteAfter int

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

DeleteAt string

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

DetectContentType bool

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

Etag string

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

Metadata map[string]interface{}
Name string

A unique name for the object.

ObjectManifest string

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

Region string

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

Source string

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

containerName String

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

content String

A string representing the content of the object. Conflicts with source and copy_from.

contentDisposition String

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

contentEncoding String

A string representing the value of the Content-Encoding metadata.

contentType String

A string which sets the MIME type for the object.

copyFrom String

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

deleteAfter Integer

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

deleteAt String

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

detectContentType Boolean

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

etag String

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

metadata Map<String,Object>
name String

A unique name for the object.

objectManifest String

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

region String

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

source String

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

containerName string

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

content string

A string representing the content of the object. Conflicts with source and copy_from.

contentDisposition string

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

contentEncoding string

A string representing the value of the Content-Encoding metadata.

contentType string

A string which sets the MIME type for the object.

copyFrom string

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

deleteAfter number

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

deleteAt string

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

detectContentType boolean

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

etag string

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

metadata {[key: string]: any}
name string

A unique name for the object.

objectManifest string

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

region string

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

source string

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

container_name str

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

content str

A string representing the content of the object. Conflicts with source and copy_from.

content_disposition str

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

content_encoding str

A string representing the value of the Content-Encoding metadata.

content_type str

A string which sets the MIME type for the object.

copy_from str

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

delete_after int

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

delete_at str

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

detect_content_type bool

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

etag str

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

metadata Mapping[str, Any]
name str

A unique name for the object.

object_manifest str

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

region str

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

source str

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

containerName String

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

content String

A string representing the content of the object. Conflicts with source and copy_from.

contentDisposition String

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

contentEncoding String

A string representing the value of the Content-Encoding metadata.

contentType String

A string which sets the MIME type for the object.

copyFrom String

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

deleteAfter Number

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

deleteAt String

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

detectContentType Boolean

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

etag String

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

metadata Map<Any>
name String

A unique name for the object.

objectManifest String

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

region String

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

source String

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

Outputs

All input properties are implicitly available as output properties. Additionally, the ContainerObject resource produces the following output properties:

ContentLength int

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

Date string

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

Id string

The provider-assigned unique ID for this managed resource.

LastModified string

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

TransId string

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

ContentLength int

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

Date string

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

Id string

The provider-assigned unique ID for this managed resource.

LastModified string

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

TransId string

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

contentLength Integer

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

date String

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

id String

The provider-assigned unique ID for this managed resource.

lastModified String

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

transId String

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

contentLength number

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

date string

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

id string

The provider-assigned unique ID for this managed resource.

lastModified string

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

transId string

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

content_length int

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

date str

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

id str

The provider-assigned unique ID for this managed resource.

last_modified str

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

trans_id str

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

contentLength Number

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

date String

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

id String

The provider-assigned unique ID for this managed resource.

lastModified String

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

transId String

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

Look up Existing ContainerObject Resource

Get an existing ContainerObject resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ContainerObjectState, opts?: CustomResourceOptions): ContainerObject
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        container_name: Optional[str] = None,
        content: Optional[str] = None,
        content_disposition: Optional[str] = None,
        content_encoding: Optional[str] = None,
        content_length: Optional[int] = None,
        content_type: Optional[str] = None,
        copy_from: Optional[str] = None,
        date: Optional[str] = None,
        delete_after: Optional[int] = None,
        delete_at: Optional[str] = None,
        detect_content_type: Optional[bool] = None,
        etag: Optional[str] = None,
        last_modified: Optional[str] = None,
        metadata: Optional[Mapping[str, Any]] = None,
        name: Optional[str] = None,
        object_manifest: Optional[str] = None,
        region: Optional[str] = None,
        source: Optional[str] = None,
        trans_id: Optional[str] = None) -> ContainerObject
func GetContainerObject(ctx *Context, name string, id IDInput, state *ContainerObjectState, opts ...ResourceOption) (*ContainerObject, error)
public static ContainerObject Get(string name, Input<string> id, ContainerObjectState? state, CustomResourceOptions? opts = null)
public static ContainerObject get(String name, Output<String> id, ContainerObjectState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ContainerName string

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

Content string

A string representing the content of the object. Conflicts with source and copy_from.

ContentDisposition string

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

ContentEncoding string

A string representing the value of the Content-Encoding metadata.

ContentLength int

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

ContentType string

A string which sets the MIME type for the object.

CopyFrom string

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

Date string

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

DeleteAfter int

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

DeleteAt string

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

DetectContentType bool

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

Etag string

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

LastModified string

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

Metadata Dictionary<string, object>
Name string

A unique name for the object.

ObjectManifest string

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

Region string

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

Source string

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

TransId string

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

ContainerName string

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

Content string

A string representing the content of the object. Conflicts with source and copy_from.

ContentDisposition string

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

ContentEncoding string

A string representing the value of the Content-Encoding metadata.

ContentLength int

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

ContentType string

A string which sets the MIME type for the object.

CopyFrom string

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

Date string

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

DeleteAfter int

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

DeleteAt string

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

DetectContentType bool

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

Etag string

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

LastModified string

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

Metadata map[string]interface{}
Name string

A unique name for the object.

ObjectManifest string

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

Region string

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

Source string

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

TransId string

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

containerName String

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

content String

A string representing the content of the object. Conflicts with source and copy_from.

contentDisposition String

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

contentEncoding String

A string representing the value of the Content-Encoding metadata.

contentLength Integer

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

contentType String

A string which sets the MIME type for the object.

copyFrom String

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

date String

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

deleteAfter Integer

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

deleteAt String

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

detectContentType Boolean

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

etag String

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

lastModified String

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

metadata Map<String,Object>
name String

A unique name for the object.

objectManifest String

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

region String

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

source String

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

transId String

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

containerName string

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

content string

A string representing the content of the object. Conflicts with source and copy_from.

contentDisposition string

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

contentEncoding string

A string representing the value of the Content-Encoding metadata.

contentLength number

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

contentType string

A string which sets the MIME type for the object.

copyFrom string

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

date string

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

deleteAfter number

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

deleteAt string

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

detectContentType boolean

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

etag string

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

lastModified string

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

metadata {[key: string]: any}
name string

A unique name for the object.

objectManifest string

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

region string

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

source string

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

transId string

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

container_name str

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

content str

A string representing the content of the object. Conflicts with source and copy_from.

content_disposition str

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

content_encoding str

A string representing the value of the Content-Encoding metadata.

content_length int

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

content_type str

A string which sets the MIME type for the object.

copy_from str

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

date str

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

delete_after int

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

delete_at str

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

detect_content_type bool

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

etag str

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

last_modified str

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

metadata Mapping[str, Any]
name str

A unique name for the object.

object_manifest str

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

region str

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

source str

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

trans_id str

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

containerName String

A unique (within an account) name for the container. The container name must be from 1 to 256 characters long and can start with any character and contain any pattern. Character set must be UTF-8. The container name cannot contain a slash (/) character because this character delimits the container and object name. For example, the path /v1/account/www/pages specifies the www container, not the www/pages container.

content String

A string representing the content of the object. Conflicts with source and copy_from.

contentDisposition String

A string which specifies the override behavior for the browser. For example, this header might specify that the browser use a download program to save this file rather than show the file, which is the default.

contentEncoding String

A string representing the value of the Content-Encoding metadata.

contentLength Number

If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.

contentType String

A string which sets the MIME type for the object.

copyFrom String

A string representing the name of an object used to create the new object by copying the copy_from object. The value is in form {container}/{object}. You must UTF-8-encode and then URL-encode the names of the container and object before you include them in the header. Conflicts with source and content.

date String

The date and time the system responded to the request, using the preferred format of RFC 7231 as shown in this example Thu, 16 Jun 2016 15:10:38 GMT. The time is always in UTC.

deleteAfter Number

An integer representing the number of seconds after which the system removes the object. Internally, the Object Storage system stores this value in the X-Delete-At metadata item.

deleteAt String

An string representing the date when the system removes the object. For example, "2015-08-26" is equivalent to Mon, Wed, 26 Aug 2015 00:00:00 GMT.

detectContentType Boolean

If set to true, Object Storage guesses the content type based on the file extension and ignores the value sent in the Content-Type header, if present.

etag String

Used to trigger updates. The only meaningful value is ${md5(file("path/to/file"))}.

lastModified String

The date and time when the object was last modified. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. The ±hh:mm value, if included, is the time zone as an offset from UTC. In the previous example, the offset value is -05:00.

metadata Map<Any>
name String

A unique name for the object.

objectManifest String

A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.

region String

The region in which to create the container. If omitted, the region argument of the provider is used. Changing this creates a new container.

source String

A string representing the local path of a file which will be used as the object's content. Conflicts with source and copy_from.

transId String

A unique transaction ID for this request. Your service provider might need this value if you report a problem.

Package Details

Repository
OpenStack pulumi/pulumi-openstack
License
Apache-2.0
Notes

This Pulumi package is based on the openstack Terraform Provider.