Skip to content

Latest commit

 

History

History
120 lines (92 loc) · 2.15 KB

oci_objectstorage_object_head.md

File metadata and controls

120 lines (92 loc) · 2.15 KB

oci_objectstorage_object_head

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_objectstorage_object_head" {
  source = "./modules/oci/d/oci_objectstorage_object_head"

  # bucket - (required) is a type of string
  bucket = null
  # namespace - (required) is a type of string
  namespace = null
  # object - (required) is a type of string
  object = null
}

top

Variables

variable "bucket" {
  description = "(required)"
  type        = string
}

variable "namespace" {
  description = "(required)"
  type        = string
}

variable "object" {
  description = "(required)"
  type        = string
}

top

Datasource

data "oci_objectstorage_object_head" "this" {
  # bucket - (required) is a type of string
  bucket = var.bucket
  # namespace - (required) is a type of string
  namespace = var.namespace
  # object - (required) is a type of string
  object = var.object
}

top

Outputs

output "archival_state" {
  description = "returns a string"
  value       = data.oci_objectstorage_object_head.this.archival_state
}

output "content_length" {
  description = "returns a number"
  value       = data.oci_objectstorage_object_head.this.content_length
}

output "content_type" {
  description = "returns a string"
  value       = data.oci_objectstorage_object_head.this.content_type
}

output "etag" {
  description = "returns a string"
  value       = data.oci_objectstorage_object_head.this.etag
}

output "id" {
  description = "returns a string"
  value       = data.oci_objectstorage_object_head.this.id
}

output "metadata" {
  description = "returns a map of string"
  value       = data.oci_objectstorage_object_head.this.metadata
}

output "storage_tier" {
  description = "returns a string"
  value       = data.oci_objectstorage_object_head.this.storage_tier
}

output "this" {
  value = oci_objectstorage_object_head.this
}

top