openstack.objectstorage.ContainerObject
Explore with Pulumi AI
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:
- Container
Name 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
andcopy_from
. - Content
Disposition 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.
- Content
Encoding string - A string representing the value of the Content-Encoding metadata.
- Content
Type string - A string which sets the MIME type for the object.
- Copy
From 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 withsource
andcontent
. - 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 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.
- Detect
Content boolType - 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.
- Object
Manifest 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
andcopy_from
.
- Container
Name 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
andcopy_from
. - Content
Disposition 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.
- Content
Encoding string - A string representing the value of the Content-Encoding metadata.
- Content
Type string - A string which sets the MIME type for the object.
- Copy
From 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 withsource
andcontent
. - 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 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.
- Detect
Content boolType - 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.
- Object
Manifest 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
andcopy_from
.
- container
Name 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
andcopy_from
. - content
Disposition 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.
- content
Encoding String - A string representing the value of the Content-Encoding metadata.
- content
Type String - A string which sets the MIME type for the object.
- copy
From 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 withsource
andcontent
. - delete
After 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.
- delete
At 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.
- detect
Content BooleanType - 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.
- object
Manifest 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
andcopy_from
.
- container
Name 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
andcopy_from
. - content
Disposition 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.
- content
Encoding string - A string representing the value of the Content-Encoding metadata.
- content
Type string - A string which sets the MIME type for the object.
- copy
From 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 withsource
andcontent
. - delete
After 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.
- delete
At 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.
- detect
Content booleanType - 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.
- object
Manifest 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
andcopy_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
andcopy_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 withsource
andcontent
. - 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_ booltype - 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
andcopy_from
.
- container
Name 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
andcopy_from
. - content
Disposition 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.
- content
Encoding String - A string representing the value of the Content-Encoding metadata.
- content
Type String - A string which sets the MIME type for the object.
- copy
From 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 withsource
andcontent
. - delete
After 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.
- delete
At 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.
- detect
Content BooleanType - 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.
- object
Manifest 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
andcopy_from
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerObject resource produces the following output properties:
- 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 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.
- Last
Modified 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.
- Trans
Id 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 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.
- Last
Modified 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.
- Trans
Id string - A unique transaction ID for this request. Your service provider might need this value if you report a problem.
- content
Length 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.
- last
Modified 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.
- trans
Id String - A unique transaction ID for this request. Your service provider might need this value if you report a problem.
- content
Length 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.
- last
Modified 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.
- trans
Id 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.
- content
Length 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.
- last
Modified 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.
- trans
Id 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.
- Container
Name 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
andcopy_from
. - Content
Disposition 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.
- Content
Encoding string - 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 string - A string which sets the MIME type for the object.
- Copy
From 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 withsource
andcontent
. - 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.
- 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 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.
- Detect
Content boolType - 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"))}.
- Last
Modified 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.
- Object
Manifest 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
andcopy_from
. - Trans
Id string - A unique transaction ID for this request. Your service provider might need this value if you report a problem.
- Container
Name 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
andcopy_from
. - Content
Disposition 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.
- Content
Encoding string - 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 string - A string which sets the MIME type for the object.
- Copy
From 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 withsource
andcontent
. - 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.
- 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 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.
- Detect
Content boolType - 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"))}.
- Last
Modified 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.
- Object
Manifest 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
andcopy_from
. - Trans
Id string - A unique transaction ID for this request. Your service provider might need this value if you report a problem.
- container
Name 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
andcopy_from
. - content
Disposition 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.
- content
Encoding String - A string representing the value of the Content-Encoding metadata.
- content
Length Integer - If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.
- content
Type String - A string which sets the MIME type for the object.
- copy
From 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 withsource
andcontent
. - 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.
- delete
After 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.
- delete
At 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.
- detect
Content BooleanType - 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"))}.
- last
Modified 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.
- object
Manifest 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
andcopy_from
. - trans
Id String - A unique transaction ID for this request. Your service provider might need this value if you report a problem.
- container
Name 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
andcopy_from
. - content
Disposition 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.
- content
Encoding string - A string representing the value of the Content-Encoding metadata.
- content
Length number - If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.
- content
Type string - A string which sets the MIME type for the object.
- copy
From 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 withsource
andcontent
. - 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.
- delete
After 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.
- delete
At 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.
- detect
Content booleanType - 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"))}.
- last
Modified 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.
- object
Manifest 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
andcopy_from
. - trans
Id 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
andcopy_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 withsource
andcontent
. - 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_ booltype - 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
andcopy_from
. - trans_
id str - A unique transaction ID for this request. Your service provider might need this value if you report a problem.
- container
Name 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
andcopy_from
. - content
Disposition 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.
- content
Encoding String - A string representing the value of the Content-Encoding metadata.
- content
Length Number - If the operation succeeds, this value is zero (0) or the length of informational or error text in the response body.
- content
Type String - A string which sets the MIME type for the object.
- copy
From 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 withsource
andcontent
. - 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.
- delete
After 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.
- delete
At 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.
- detect
Content BooleanType - 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"))}.
- last
Modified 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.
- object
Manifest 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
andcopy_from
. - trans
Id 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.