OpenStack v3.12.1, Mar 23 23
OpenStack v3.12.1, Mar 23 23
openstack.objectstorage.ContainerObject
Explore with Pulumi AI
Manages a V1 container object resource within OpenStack.
Example Usage
Example with simple content
using System.Collections.Generic;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var container1 = new OpenStack.ObjectStorage.Container("container1", new()
{
ContentType = "application/json",
Metadata =
{
{ "test", "true" },
},
Region = "RegionOne",
});
var doc1 = new OpenStack.ObjectStorage.ContainerObject("doc1", new()
{
ContainerName = container1.Name,
Content = @" {
""foo"" : ""bar""
}
",
ContentType = "application/json",
Metadata =
{
{ "test", "true" },
},
Region = "RegionOne",
});
});
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
container1, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{
ContentType: pulumi.String("application/json"),
Metadata: pulumi.AnyMap{
"test": pulumi.Any("true"),
},
Region: pulumi.String("RegionOne"),
})
if err != nil {
return err
}
_, err = objectstorage.NewContainerObject(ctx, "doc1", &objectstorage.ContainerObjectArgs{
ContainerName: container1.Name,
Content: pulumi.String(" {\n \"foo\" : \"bar\"\n }\n\n"),
ContentType: pulumi.String("application/json"),
Metadata: pulumi.AnyMap{
"test": pulumi.Any("true"),
},
Region: pulumi.String("RegionOne"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.objectstorage.Container;
import com.pulumi.openstack.objectstorage.ContainerArgs;
import com.pulumi.openstack.objectstorage.ContainerObject;
import com.pulumi.openstack.objectstorage.ContainerObjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var container1 = new Container("container1", ContainerArgs.builder()
.contentType("application/json")
.metadata(Map.of("test", "true"))
.region("RegionOne")
.build());
var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder()
.containerName(container1.name())
.content("""
{
"foo" : "bar"
}
""")
.contentType("application/json")
.metadata(Map.of("test", "true"))
.region("RegionOne")
.build());
}
}
import pulumi
import pulumi_openstack as openstack
container1 = openstack.objectstorage.Container("container1",
content_type="application/json",
metadata={
"test": "true",
},
region="RegionOne")
doc1 = openstack.objectstorage.ContainerObject("doc1",
container_name=container1.name,
content=""" {
"foo" : "bar"
}
""",
content_type="application/json",
metadata={
"test": "true",
},
region="RegionOne")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const container1 = new openstack.objectstorage.Container("container1", {
contentType: "application/json",
metadata: {
test: "true",
},
region: "RegionOne",
});
const doc1 = new openstack.objectstorage.ContainerObject("doc1", {
containerName: container1.name,
content: ` {
"foo" : "bar"
}
`,
contentType: "application/json",
metadata: {
test: "true",
},
region: "RegionOne",
});
resources:
container1:
type: openstack:objectstorage:Container
properties:
contentType: application/json
metadata:
test: 'true'
region: RegionOne
doc1:
type: openstack:objectstorage:ContainerObject
properties:
containerName: ${container1.name}
content: |2+
{
"foo" : "bar"
}
contentType: application/json
metadata:
test: 'true'
region: RegionOne
Example with content from file
using System.Collections.Generic;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var container1 = new OpenStack.ObjectStorage.Container("container1", new()
{
ContentType = "application/json",
Metadata =
{
{ "test", "true" },
},
Region = "RegionOne",
});
var doc1 = new OpenStack.ObjectStorage.ContainerObject("doc1", new()
{
ContainerName = container1.Name,
ContentType = "application/json",
Metadata =
{
{ "test", "true" },
},
Region = "RegionOne",
Source = "./default.json",
});
});
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/objectstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
container1, err := objectstorage.NewContainer(ctx, "container1", &objectstorage.ContainerArgs{
ContentType: pulumi.String("application/json"),
Metadata: pulumi.AnyMap{
"test": pulumi.Any("true"),
},
Region: pulumi.String("RegionOne"),
})
if err != nil {
return err
}
_, err = objectstorage.NewContainerObject(ctx, "doc1", &objectstorage.ContainerObjectArgs{
ContainerName: container1.Name,
ContentType: pulumi.String("application/json"),
Metadata: pulumi.AnyMap{
"test": pulumi.Any("true"),
},
Region: pulumi.String("RegionOne"),
Source: pulumi.String("./default.json"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.objectstorage.Container;
import com.pulumi.openstack.objectstorage.ContainerArgs;
import com.pulumi.openstack.objectstorage.ContainerObject;
import com.pulumi.openstack.objectstorage.ContainerObjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var container1 = new Container("container1", ContainerArgs.builder()
.contentType("application/json")
.metadata(Map.of("test", "true"))
.region("RegionOne")
.build());
var doc1 = new ContainerObject("doc1", ContainerObjectArgs.builder()
.containerName(container1.name())
.contentType("application/json")
.metadata(Map.of("test", "true"))
.region("RegionOne")
.source("./default.json")
.build());
}
}
import pulumi
import pulumi_openstack as openstack
container1 = openstack.objectstorage.Container("container1",
content_type="application/json",
metadata={
"test": "true",
},
region="RegionOne")
doc1 = openstack.objectstorage.ContainerObject("doc1",
container_name=container1.name,
content_type="application/json",
metadata={
"test": "true",
},
region="RegionOne",
source="./default.json")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const container1 = new openstack.objectstorage.Container("container1", {
contentType: "application/json",
metadata: {
test: "true",
},
region: "RegionOne",
});
const doc1 = new openstack.objectstorage.ContainerObject("doc1", {
containerName: container1.name,
contentType: "application/json",
metadata: {
test: "true",
},
region: "RegionOne",
source: "./default.json",
});
resources:
container1:
type: openstack:objectstorage:Container
properties:
contentType: application/json
metadata:
test: 'true'
region: RegionOne
doc1:
type: openstack:objectstorage:ContainerObject
properties:
containerName: ${container1.name}
contentType: application/json
metadata:
test: 'true'
region: RegionOne
source: ./default.json
Create ContainerObject Resource
new ContainerObject(name: string, args: ContainerObjectArgs, opts?: CustomResourceOptions);
@overload
def ContainerObject(resource_name: str,
opts: Optional[ResourceOptions] = None,
container_name: Optional[str] = None,
content: Optional[str] = None,
content_disposition: Optional[str] = None,
content_encoding: Optional[str] = None,
content_type: Optional[str] = None,
copy_from: Optional[str] = None,
delete_after: Optional[int] = None,
delete_at: Optional[str] = None,
detect_content_type: Optional[bool] = None,
etag: Optional[str] = None,
metadata: Optional[Mapping[str, Any]] = None,
name: Optional[str] = None,
object_manifest: Optional[str] = None,
region: Optional[str] = None,
source: Optional[str] = None)
@overload
def ContainerObject(resource_name: str,
args: ContainerObjectArgs,
opts: Optional[ResourceOptions] = None)
func NewContainerObject(ctx *Context, name string, args ContainerObjectArgs, opts ...ResourceOption) (*ContainerObject, error)
public ContainerObject(string name, ContainerObjectArgs args, CustomResourceOptions? opts = null)
public ContainerObject(String name, ContainerObjectArgs args)
public ContainerObject(String name, ContainerObjectArgs args, CustomResourceOptions options)
type: openstack:objectstorage:ContainerObject
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerObjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContainerObjectArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContainerObjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerObjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerObjectArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ContainerObject Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ContainerObject resource accepts the following input properties:
- 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, object>
- 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]interface{}
- 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,Object>
- 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]: any}
- 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, Any]
- name str
A unique name for the object.
- object_
manifest str A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.
- region str
The region in which to create the container. If omitted, the
region
argument of the provider is used. Changing this creates a new container.- source str
A string representing the local path of a file which will be used as the object's content. Conflicts with
source
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<Any>
- 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, Any]] = None,
name: Optional[str] = None,
object_manifest: Optional[str] = None,
region: Optional[str] = None,
source: Optional[str] = None,
trans_id: Optional[str] = None) -> ContainerObject
func GetContainerObject(ctx *Context, name string, id IDInput, state *ContainerObjectState, opts ...ResourceOption) (*ContainerObject, error)
public static ContainerObject Get(string name, Input<string> id, ContainerObjectState? state, CustomResourceOptions? opts = null)
public static ContainerObject get(String name, Output<String> id, ContainerObjectState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- 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, object>
- 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]interface{}
- 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,Object>
- 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]: any}
- 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, Any]
- name str
A unique name for the object.
- object_
manifest str A string set to specify that this is a dynamic large object manifest object. The value is the container and object name prefix of the segment objects in the form container/prefix. You must UTF-8-encode and then URL-encode the names of the container and prefix before you include them in this header.
- region str
The region in which to create the container. If omitted, the
region
argument of the provider is used. Changing this creates a new container.- source str
A string representing the local path of a file which will be used as the object's content. Conflicts with
source
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<Any>
- 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.