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

openstack.objectstorage.AccountV1

Explore with Pulumi AI

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

    Manages a V1 account resource within OpenStack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const account1 = new openstack.objectstorage.AccountV1("account_1", {
        region: "RegionOne",
        metadata: {
            "Temp-Url-Key": "testkey",
            test: "true",
        },
    });
    
    import pulumi
    import pulumi_openstack as openstack
    
    account1 = openstack.objectstorage.AccountV1("account_1",
        region="RegionOne",
        metadata={
            "Temp-Url-Key": "testkey",
            "test": "true",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/objectstorage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := objectstorage.NewAccountV1(ctx, "account_1", &objectstorage.AccountV1Args{
    			Region: pulumi.String("RegionOne"),
    			Metadata: pulumi.StringMap{
    				"Temp-Url-Key": pulumi.String("testkey"),
    				"test":         pulumi.String("true"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var account1 = new OpenStack.ObjectStorage.AccountV1("account_1", new()
        {
            Region = "RegionOne",
            Metadata = 
            {
                { "Temp-Url-Key", "testkey" },
                { "test", "true" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.openstack.objectstorage.AccountV1;
    import com.pulumi.openstack.objectstorage.AccountV1Args;
    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 account1 = new AccountV1("account1", AccountV1Args.builder()
                .region("RegionOne")
                .metadata(Map.ofEntries(
                    Map.entry("Temp-Url-Key", "testkey"),
                    Map.entry("test", "true")
                ))
                .build());
    
        }
    }
    
    resources:
      account1:
        type: openstack:objectstorage:AccountV1
        name: account_1
        properties:
          region: RegionOne
          metadata:
            Temp-Url-Key: testkey
            test: 'true'
    

    Create AccountV1 Resource

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

    Constructor syntax

    new AccountV1(name: string, args?: AccountV1Args, opts?: CustomResourceOptions);
    @overload
    def AccountV1(resource_name: str,
                  args: Optional[AccountV1Args] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountV1(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  metadata: Optional[Mapping[str, str]] = None,
                  project_id: Optional[str] = None,
                  region: Optional[str] = None)
    func NewAccountV1(ctx *Context, name string, args *AccountV1Args, opts ...ResourceOption) (*AccountV1, error)
    public AccountV1(string name, AccountV1Args? args = null, CustomResourceOptions? opts = null)
    public AccountV1(String name, AccountV1Args args)
    public AccountV1(String name, AccountV1Args args, CustomResourceOptions options)
    
    type: openstack:objectstorage:AccountV1
    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 AccountV1Args
    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 AccountV1Args
    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 AccountV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountV1Args
    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 accountV1Resource = new OpenStack.ObjectStorage.AccountV1("accountV1Resource", new()
    {
        Metadata = 
        {
            { "string", "string" },
        },
        ProjectId = "string",
        Region = "string",
    });
    
    example, err := objectstorage.NewAccountV1(ctx, "accountV1Resource", &objectstorage.AccountV1Args{
    	Metadata: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ProjectId: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    })
    
    var accountV1Resource = new AccountV1("accountV1Resource", AccountV1Args.builder()
        .metadata(Map.of("string", "string"))
        .projectId("string")
        .region("string")
        .build());
    
    account_v1_resource = openstack.objectstorage.AccountV1("accountV1Resource",
        metadata={
            "string": "string",
        },
        project_id="string",
        region="string")
    
    const accountV1Resource = new openstack.objectstorage.AccountV1("accountV1Resource", {
        metadata: {
            string: "string",
        },
        projectId: "string",
        region: "string",
    });
    
    type: openstack:objectstorage:AccountV1
    properties:
        metadata:
            string: string
        projectId: string
        region: string
    

    AccountV1 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 AccountV1 resource accepts the following input properties:

    Metadata Dictionary<string, string>
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    ProjectId string
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    Region string
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    Metadata map[string]string
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    ProjectId string
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    Region string
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    metadata Map<String,String>
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    projectId String
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    region String
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    metadata {[key: string]: string}
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    projectId string
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    region string
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    metadata Mapping[str, str]
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    project_id str
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    region str
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    metadata Map<String>
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    projectId String
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    region String
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.

    Outputs

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

    BytesUsed int
    The number of bytes used by the account.
    ContainerCount int
    The number of containers in the account.
    Headers Dictionary<string, string>
    A map of headers returned for the account.
    Id string
    The provider-assigned unique ID for this managed resource.
    ObjectCount int
    The number of objects in the account.
    QuotaBytes int
    The number of bytes allowed for the account.
    BytesUsed int
    The number of bytes used by the account.
    ContainerCount int
    The number of containers in the account.
    Headers map[string]string
    A map of headers returned for the account.
    Id string
    The provider-assigned unique ID for this managed resource.
    ObjectCount int
    The number of objects in the account.
    QuotaBytes int
    The number of bytes allowed for the account.
    bytesUsed Integer
    The number of bytes used by the account.
    containerCount Integer
    The number of containers in the account.
    headers Map<String,String>
    A map of headers returned for the account.
    id String
    The provider-assigned unique ID for this managed resource.
    objectCount Integer
    The number of objects in the account.
    quotaBytes Integer
    The number of bytes allowed for the account.
    bytesUsed number
    The number of bytes used by the account.
    containerCount number
    The number of containers in the account.
    headers {[key: string]: string}
    A map of headers returned for the account.
    id string
    The provider-assigned unique ID for this managed resource.
    objectCount number
    The number of objects in the account.
    quotaBytes number
    The number of bytes allowed for the account.
    bytes_used int
    The number of bytes used by the account.
    container_count int
    The number of containers in the account.
    headers Mapping[str, str]
    A map of headers returned for the account.
    id str
    The provider-assigned unique ID for this managed resource.
    object_count int
    The number of objects in the account.
    quota_bytes int
    The number of bytes allowed for the account.
    bytesUsed Number
    The number of bytes used by the account.
    containerCount Number
    The number of containers in the account.
    headers Map<String>
    A map of headers returned for the account.
    id String
    The provider-assigned unique ID for this managed resource.
    objectCount Number
    The number of objects in the account.
    quotaBytes Number
    The number of bytes allowed for the account.

    Look up Existing AccountV1 Resource

    Get an existing AccountV1 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?: AccountV1State, opts?: CustomResourceOptions): AccountV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bytes_used: Optional[int] = None,
            container_count: Optional[int] = None,
            headers: Optional[Mapping[str, str]] = None,
            metadata: Optional[Mapping[str, str]] = None,
            object_count: Optional[int] = None,
            project_id: Optional[str] = None,
            quota_bytes: Optional[int] = None,
            region: Optional[str] = None) -> AccountV1
    func GetAccountV1(ctx *Context, name string, id IDInput, state *AccountV1State, opts ...ResourceOption) (*AccountV1, error)
    public static AccountV1 Get(string name, Input<string> id, AccountV1State? state, CustomResourceOptions? opts = null)
    public static AccountV1 get(String name, Output<String> id, AccountV1State state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BytesUsed int
    The number of bytes used by the account.
    ContainerCount int
    The number of containers in the account.
    Headers Dictionary<string, string>
    A map of headers returned for the account.
    Metadata Dictionary<string, string>
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    ObjectCount int
    The number of objects in the account.
    ProjectId string
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    QuotaBytes int
    The number of bytes allowed for the account.
    Region string
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    BytesUsed int
    The number of bytes used by the account.
    ContainerCount int
    The number of containers in the account.
    Headers map[string]string
    A map of headers returned for the account.
    Metadata map[string]string
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    ObjectCount int
    The number of objects in the account.
    ProjectId string
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    QuotaBytes int
    The number of bytes allowed for the account.
    Region string
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    bytesUsed Integer
    The number of bytes used by the account.
    containerCount Integer
    The number of containers in the account.
    headers Map<String,String>
    A map of headers returned for the account.
    metadata Map<String,String>
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    objectCount Integer
    The number of objects in the account.
    projectId String
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    quotaBytes Integer
    The number of bytes allowed for the account.
    region String
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    bytesUsed number
    The number of bytes used by the account.
    containerCount number
    The number of containers in the account.
    headers {[key: string]: string}
    A map of headers returned for the account.
    metadata {[key: string]: string}
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    objectCount number
    The number of objects in the account.
    projectId string
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    quotaBytes number
    The number of bytes allowed for the account.
    region string
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    bytes_used int
    The number of bytes used by the account.
    container_count int
    The number of containers in the account.
    headers Mapping[str, str]
    A map of headers returned for the account.
    metadata Mapping[str, str]
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    object_count int
    The number of objects in the account.
    project_id str
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    quota_bytes int
    The number of bytes allowed for the account.
    region str
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.
    bytesUsed Number
    The number of bytes used by the account.
    containerCount Number
    The number of containers in the account.
    headers Map<String>
    A map of headers returned for the account.
    metadata Map<String>
    A map of custom key/value pairs to associate with the account metadata. Changing the Quota-Bytes key value is allowed to be updated only by the cloud administrator.
    objectCount Number
    The number of objects in the account.
    projectId String
    The project ID of the corresponding account. If omitted, the token's project ID is used. Changing this creates a new account.
    quotaBytes Number
    The number of bytes allowed for the account.
    region String
    The region in which to create the account. If omitted, the region argument of the provider is used. Changing this creates a new account.

    Import

    This resource can be imported by specifying the project ID of the account:

    $ pulumi import openstack:objectstorage/accountV1:AccountV1 account_1 1202b3d0aaa44cfc8b79475c007b0711
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi