oci_blockchain_blockchain_platform
This resource provides the Blockchain Platform resource in Oracle Cloud Infrastructure Blockchain service.
Creates a new Blockchain Platform.
Example Usage
resource "oci_blockchain_blockchain_platform" "test_blockchain_platform" {
#Required
compartment_id = var.compartment_id
compute_shape = var.blockchain_platform_compute_shape
display_name = var.blockchain_platform_display_name
idcs_access_token = var.blockchain_platform_idcs_access_token
platform_role = var.blockchain_platform_platform_role
#Optional
ca_cert_archive_text = var.blockchain_platform_ca_cert_archive_text
defined_tags = {"foo-namespace.bar-key"= "value"}
description = var.blockchain_platform_description
federated_user_id = oci_identity_user.test_user.id
freeform_tags = {"bar-key"= "value"}
is_byol = var.blockchain_platform_is_byol
platform_version = var.blockchain_platform_platform_version
}
Argument Reference
The following arguments are supported:
ca_cert_archive_text
- (Optional) Base64 encoded text in ASCII character set of a Thirdparty CA Certificates archive file. The Archive file is a zip file containing third part CA Certificates, the ca key and certificate files used when issuing enrollment certificates (ECerts) and transaction certificates (TCerts). The chainfile (if it exists) contains the certificate chain which should be trusted for this CA, where the 1st in the chain is always the root CA certificate. File list in zip file [ca-cert.pem,ca-key.pem,ca-chain.pem(optional)].compartment_id
- (Required) (Updatable) Compartment Identifiercompute_shape
- (Required) Compute shape - STANDARD or ENTERPRISE_SMALL or ENTERPRISE_MEDIUM or ENTERPRISE_LARGE or ENTERPRISE_EXTRA_LARGEdefined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- (Optional) (Updatable) Platform Instance Descriptiondisplay_name
- (Required) Platform Instance Display name, can be renamedfederated_user_id
- (Optional) Identifier for a federated userfreeform_tags
- (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
idcs_access_token
- (Required) IDCS access token with Identity Domain Administrator roleis_byol
- (Optional) Bring your own licenseplatform_role
- (Required) Role of platform - founder or participantplatform_version
- (Optional) Platform versionload_balancer_shape
- (Optional) (Updatable) Type of Load Balancer shape - LB_100_MBPS or LB_400_MBPS. Default is LB_100_MBPS.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
compartment_id
- Compartment Identifiercomponent_details
- Blockchain Platform component details.osns
- List of OSNsad
- Availability Domain of OSNocpu_allocation_param
- OCPU allocation parameterocpu_allocation_number
- Number of OCPU allocation
osn_key
- OSN identifierstate
- The current state of the OSN.
peers
- List of Peersad
- Availability Domain of peeralias
- peer aliashost
- Host on which the Peer existsocpu_allocation_param
- OCPU allocation parameterocpu_allocation_number
- Number of OCPU allocation
peer_key
- peer identifierrole
- Peer rolestate
- The current state of the peer.
compute_shape
- Compute shape - STANDARD or ENTERPRISE_SMALL or ENTERPRISE_MEDIUM or ENTERPRISE_LARGE or ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOMdefined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- Platform Instance Descriptiondisplay_name
- Platform Instance Display name, can be renamedfreeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
host_ocpu_utilization_info
- List of OcpuUtilization for all hostshost
- Host name of VMocpu_capacity_number
- Number of total OCPU capacity on the hostocpu_utilization_number
- Number of OCPU utilized
id
- unique identifier that is immutable on creationis_byol
- Bring your own licenseis_multi_ad
- True for multi-AD blockchain plaforms, false for single-ADlifecycle_details
- An message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.load_balancer_shape
- Type of Load Balancer shape - LB_100_MBPS or LB_400_MBPS. Default is LB_100_MBPS.platform_role
- Role of platform - FOUNDER or PARTICIPANTplatform_shape_type
- Type of Platform shape - DEFAULT or CUSTOMplatform_version
- Platform Versionreplicas
- Number of replicas of service components like Rest Proxy, CA and Consoleca_count
- Number of CA replicasconsole_count
- Number of console replicasproxy_count
- Number of REST proxy replicas
service_endpoint
- Service endpoint URL, valid post-provisioningservice_version
- The version of the Platform Instance.state
- The current state of the Platform Instance.storage_size_in_tbs
- Storage size in TBsstorage_used_in_tbs
- Storage used in TBstime_created
- The time the the Platform Instance was created. An RFC3339 formatted datetime stringtime_updated
- The time the Platform Instance was updated. An RFC3339 formatted datetime stringtotal_ocpu_capacity
- Number of total OCPUs allocated to the platform cluster
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 30 minutes), when creating the Blockchain Platform
* update
- (Defaults to 30 minutes), when updating the Blockchain Platform
* delete
- (Defaults to 30 minutes), when destroying the Blockchain Platform
Import
BlockchainPlatforms can be imported using the id
, e.g.
$ terraform import oci_blockchain_blockchain_platform.test_blockchain_platform "id"