1. Packages
  2. Openstack Provider
  3. API Docs
  4. objectstorage
  5. ContainerObject
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

openstack.objectstorage.ContainerObject

Explore with Pulumi AI

openstack logo
OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi

    Manages a V1 container object resource within OpenStack.

    Example Usage

    Example with simple content

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    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()
                .region("RegionOne")
                .name("tf-test-container-1")
                .metadata(Map.of("test", "true"))
                .contentType("application/json")
                .build());
    
            var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder()
                .region("RegionOne")
                .containerName(container1.name())
                .name("test/default.json")
                .metadata(Map.of("test", "true"))
                .contentType("application/json")
                .content("""
                   {
                     "foo" : "bar"
                   }
                """)
                .build());
    
        }
    }
    
    resources:
      container1:
        type: openstack:objectstorage:Container
        name: container_1
        properties:
          region: RegionOne
          name: tf-test-container-1
          metadata:
            - test: 'true'
          contentType: application/json
      doc1:
        type: openstack:objectstorage:ContainerObject
        name: doc_1
        properties:
          region: RegionOne
          containerName: ${container1.name}
          name: test/default.json
          metadata:
            - test: 'true'
          contentType: application/json
          content: |2
                           {
                             "foo" : "bar"
                           }
    

    Example with content from file

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    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()
                .region("RegionOne")
                .name("tf-test-container-1")
                .metadata(Map.of("test", "true"))
                .contentType("application/json")
                .build());
    
            var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder()
                .region("RegionOne")
                .containerName(container1.name())
                .name("test/default.json")
                .metadata(Map.of("test", "true"))
                .contentType("application/json")
                .source("./default.json")
                .build());
    
        }
    }
    
    resources:
      container1:
        type: openstack:objectstorage:Container
        name: container_1
        properties:
          region: RegionOne
          name: tf-test-container-1
          metadata:
            - test: 'true'
          contentType: application/json
      doc1:
        type: openstack:objectstorage:ContainerObject
        name: doc_1
        properties:
          region: RegionOne
          containerName: ${container1.name}
          name: test/default.json
          metadata:
            - test: 'true'
          contentType: application/json
          source: ./default.json
    

    Create ContainerObject Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ContainerObject(name: string, args: ContainerObjectArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerObject(resource_name: str,
                        args: ContainerObjectArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @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, str]] = None,
                        name: Optional[str] = None,
                        object_manifest: Optional[str] = None,
                        region: Optional[str] = None,
                        source: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var containerObjectResource = new OpenStack.ObjectStorage.ContainerObject("containerObjectResource", new()
    {
        ContainerName = "string",
        Content = "string",
        ContentDisposition = "string",
        ContentEncoding = "string",
        ContentType = "string",
        CopyFrom = "string",
        DeleteAfter = 0,
        DeleteAt = "string",
        DetectContentType = false,
        Etag = "string",
        Metadata = 
        {
            { "string", "string" },
        },
        Name = "string",
        ObjectManifest = "string",
        Region = "string",
        Source = "string",
    });
    
    example, err := objectstorage.NewContainerObject(ctx, "containerObjectResource", &objectstorage.ContainerObjectArgs{
    	ContainerName:      pulumi.String("string"),
    	Content:            pulumi.String("string"),
    	ContentDisposition: pulumi.String("string"),
    	ContentEncoding:    pulumi.String("string"),
    	ContentType:        pulumi.String("string"),
    	CopyFrom:           pulumi.String("string"),
    	DeleteAfter:        pulumi.Int(0),
    	DeleteAt:           pulumi.String("string"),
    	DetectContentType:  pulumi.Bool(false),
    	Etag:               pulumi.String("string"),
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:           pulumi.String("string"),
    	ObjectManifest: pulumi.String("string"),
    	Region:         pulumi.String("string"),
    	Source:         pulumi.String("string"),
    })
    
    var containerObjectResource = new ContainerObject("containerObjectResource", ContainerObjectArgs.builder()
        .containerName("string")
        .content("string")
        .contentDisposition("string")
        .contentEncoding("string")
        .contentType("string")
        .copyFrom("string")
        .deleteAfter(0)
        .deleteAt("string")
        .detectContentType(false)
        .etag("string")
        .metadata(Map.of("string", "string"))
        .name("string")
        .objectManifest("string")
        .region("string")
        .source("string")
        .build());
    
    container_object_resource = openstack.objectstorage.ContainerObject("containerObjectResource",
        container_name="string",
        content="string",
        content_disposition="string",
        content_encoding="string",
        content_type="string",
        copy_from="string",
        delete_after=0,
        delete_at="string",
        detect_content_type=False,
        etag="string",
        metadata={
            "string": "string",
        },
        name="string",
        object_manifest="string",
        region="string",
        source="string")
    
    const containerObjectResource = new openstack.objectstorage.ContainerObject("containerObjectResource", {
        containerName: "string",
        content: "string",
        contentDisposition: "string",
        contentEncoding: "string",
        contentType: "string",
        copyFrom: "string",
        deleteAfter: 0,
        deleteAt: "string",
        detectContentType: false,
        etag: "string",
        metadata: {
            string: "string",
        },
        name: "string",
        objectManifest: "string",
        region: "string",
        source: "string",
    });
    
    type: openstack:objectstorage:ContainerObject
    properties:
        containerName: string
        content: string
        contentDisposition: string
        contentEncoding: string
        contentType: string
        copyFrom: string
        deleteAfter: 0
        deleteAt: string
        detectContentType: false
        etag: string
        metadata:
            string: string
        name: string
        objectManifest: string
        region: string
        source: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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, string>
    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]string
    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,String>
    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]: string}
    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, str]
    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<String>
    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, str]] = 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, string>
    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]string
    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,String>
    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]: string}
    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, str]
    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<String>
    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.
    openstack logo
    OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi