Skip to content
DocsOpenAPI spec

    Storage

    StorageBuckets

    resource nirvana_storage_bucket

    required Expand Collapse
    name: String

    Name of the Bucket, used to address it over S3. It must be 3 to 63 characters of lowercase letters, digits, dots and hyphens, start and end with a letter or digit, not contain two adjacent dots and not be formatted as an IP address. “admin” and “ops-api” are reserved. The name cannot be changed once the Bucket is created.

    project_id: String

    Project ID the Bucket belongs to.

    region: String

    Region the resource is in.

    optional Expand Collapse
    tags?: List[String]

    Tags to attach to the Bucket.

    computed Expand Collapse
    id: String

    Unique identifier for the Operation.

    created_at: Time

    When the Bucket was created.

    endpoint: String

    S3 endpoint of the Bucket’s region. Point S3 clients at it, with an Object Storage Key of the same project and region.

    kind: String

    Kind of Operation.

    object_count: Int64

    Number of objects in the Bucket. Updated periodically, so it can lag behind recent writes.

    resource_id: String

    ID of the resource that the Operation is acting on.

    signing_region: String

    Region S3 clients must sign their requests for (the SigV4 region). Configure it as the region of any S3 client or SDK used with the Bucket.

    size_bytes: Int64

    Total size of the objects in the Bucket, in bytes. Updated periodically, so it can lag behind recent writes.

    status: String

    Status of the resource.

    type: String

    Type of Operation.

    updated_at: Time

    When the Bucket was updated.

    url: String

    Path-style URL of the Bucket.

    details: Attributes

    Structured details about what an operation is changing.

    changes: Map[Attributes]

    Map of changed field names to their from/to diffs. Keys depend on the parent operation’s kind+type.

    from: String

    Previous value.

    to: String

    New value.

    nirvana_storage_bucket

    resource "nirvana_storage_bucket" "example_storage_bucket" {
      name = "my-bucket"
      project_id = "123e4567-e89b-12d3-a456-426614174000"
      region = "us-sva-2"
      tags = ["production", "ethereum"]
    }
    

    data nirvana_storage_bucket

    optional Expand Collapse
    bucket_id?: String
    find_one_by?: Attributes
    project_id: String

    Project ID of resources to request

    name?: String

    Filter by a case-insensitive substring of the Bucket name

    region?: String

    Filter by region

    sort?: String

    Comma-separated sort terms in precedence order, each field:asc or field:desc. Fields: created_at, updated_at, name, status, size_bytes, object_count

    status?: String

    Filter by Bucket status

    tags?: List[String]

    Filter by tags. Repeat the parameter to require several tags; a Bucket must carry all of them.

    computed Expand Collapse
    id: String
    created_at: Time

    When the Bucket was created.

    endpoint: String

    S3 endpoint of the Bucket’s region. Point S3 clients at it, with an Object Storage Key of the same project and region.

    name: String

    Name of the Bucket, used to address it over S3.

    object_count: Int64

    Number of objects in the Bucket. Updated periodically, so it can lag behind recent writes.

    project_id: String

    Project ID the Bucket belongs to.

    region: String

    Region the resource is in.

    signing_region: String

    Region S3 clients must sign their requests for (the SigV4 region). Configure it as the region of any S3 client or SDK used with the Bucket.

    size_bytes: Int64

    Total size of the objects in the Bucket, in bytes. Updated periodically, so it can lag behind recent writes.

    status: String

    Status of the resource.

    updated_at: Time

    When the Bucket was updated.

    url: String

    Path-style URL of the Bucket.

    tags: List[String]

    Tags attached to the Bucket.

    nirvana_storage_bucket

    data "nirvana_storage_bucket" "example_storage_bucket" {
      bucket_id = "bucket_id"
    }
    

    data nirvana_storage_buckets

    required Expand Collapse
    project_id: String

    Project ID of resources to request

    optional Expand Collapse
    name?: String

    Filter by a case-insensitive substring of the Bucket name

    region?: String

    Filter by region

    status?: String

    Filter by Bucket status

    tags?: List[String]

    Filter by tags. Repeat the parameter to require several tags; a Bucket must carry all of them.

    sort?: String

    Comma-separated sort terms in precedence order, each field:asc or field:desc. Fields: created_at, updated_at, name, status, size_bytes, object_count

    max_items?: Int64

    Max items to fetch, default: 1000

    computed Expand Collapse
    items: List[Attributes]

    The items returned by the data source

    id: String

    Unique identifier for the Bucket.

    created_at: Time

    When the Bucket was created.

    endpoint: String

    S3 endpoint of the Bucket’s region. Point S3 clients at it, with an Object Storage Key of the same project and region.

    name: String

    Name of the Bucket, used to address it over S3.

    object_count: Int64

    Number of objects in the Bucket. Updated periodically, so it can lag behind recent writes.

    project_id: String

    Project ID the Bucket belongs to.

    region: String

    Region the resource is in.

    signing_region: String

    Region S3 clients must sign their requests for (the SigV4 region). Configure it as the region of any S3 client or SDK used with the Bucket.

    size_bytes: Int64

    Total size of the objects in the Bucket, in bytes. Updated periodically, so it can lag behind recent writes.

    status: String

    Status of the resource.

    tags: List[String]

    Tags attached to the Bucket.

    updated_at: Time

    When the Bucket was updated.

    url: String

    Path-style URL of the Bucket.

    nirvana_storage_buckets

    data "nirvana_storage_buckets" "example_storage_buckets" {
      project_id = "project_id"
      name = "name"
      region = "region"
      status = "ready"
      tags = ["string"]
    }
    

    StorageKeys

    resource nirvana_storage_key

    required Expand Collapse
    project_id: String

    Project ID the Object Storage Key belongs to. The key can access the project’s Buckets in its region.

    region: String

    Region the resource is in.

    name: String

    Name of the Object Storage Key.

    computed Expand Collapse
    id: String

    Unique identifier for the Object Storage Key.

    access_key: String

    S3 access key ID.

    created_at: Time

    When the Object Storage Key was created.

    secret: String

    S3 secret access key. It is only returned here and cannot be retrieved again: store it securely, or delete the key and create a new one if it is lost.

    status: String

    Status of the resource.

    updated_at: Time

    When the Object Storage Key was updated.

    nirvana_storage_key

    resource "nirvana_storage_key" "example_storage_key" {
      name = "ci-uploads"
      project_id = "123e4567-e89b-12d3-a456-426614174000"
      region = "us-sva-2"
    }
    

    data nirvana_storage_key

    optional Expand Collapse
    key_id?: String
    find_one_by?: Attributes
    project_id: String

    Project ID of resources to request

    name?: String

    Filter by a case-insensitive substring of the Object Storage Key name

    region?: String

    Filter by region

    sort?: String

    Comma-separated sort terms in precedence order, each field:asc or field:desc. Fields: created_at, updated_at, name

    computed Expand Collapse
    id: String
    access_key: String

    S3 access key ID.

    created_at: Time

    When the Object Storage Key was created.

    name: String

    Name of the Object Storage Key.

    project_id: String

    Project ID the Object Storage Key belongs to.

    region: String

    Region the resource is in.

    status: String

    Status of the resource.

    updated_at: Time

    When the Object Storage Key was updated.

    nirvana_storage_key

    data "nirvana_storage_key" "example_storage_key" {
      key_id = "key_id"
    }
    

    data nirvana_storage_keys

    required Expand Collapse
    project_id: String

    Project ID of resources to request

    optional Expand Collapse
    name?: String

    Filter by a case-insensitive substring of the Object Storage Key name

    region?: String

    Filter by region

    sort?: String

    Comma-separated sort terms in precedence order, each field:asc or field:desc. Fields: created_at, updated_at, name

    max_items?: Int64

    Max items to fetch, default: 1000

    computed Expand Collapse
    items: List[Attributes]

    The items returned by the data source

    id: String

    Unique identifier for the Object Storage Key.

    access_key: String

    S3 access key ID.

    created_at: Time

    When the Object Storage Key was created.

    name: String

    Name of the Object Storage Key.

    project_id: String

    Project ID the Object Storage Key belongs to.

    region: String

    Region the resource is in.

    status: String

    Status of the resource.

    updated_at: Time

    When the Object Storage Key was updated.

    nirvana_storage_keys

    data "nirvana_storage_keys" "example_storage_keys" {
      project_id = "project_id"
      name = "name"
      region = "region"
    }