arrow-left

All pages
1 of 1

Loading...

ionoscloud_mongo_template

Get information on DbaaS MongoDB Cluster objects.

The DbaaS Mongo Template data source can be used to search for and return an existing DbaaS MongoDB Template. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.

hashtag
Example Usage

hashtag
By ID

hashtag
By name

hashtag
By name, using partial_match

  • name - (Optional) The name of the template you want to search for.

  • id - (Optional) ID of the template you want to search for.

  • partial_match

Either name or id must be provided. If none or both are provided, the datasource will return an error.

hashtag
Attributes Reference

The following attributes are returned by the datasource:

  • id - The ID of the template.

  • name - The name of the template.

  • edition

- (Optional) Whether partial matching is allowed or not when using name argument. Default value is false.
- The edition of the template (e.g. enterprise).
  • cores - The number of CPU cores.

  • ram - The amount of memory in GB.

  • storage_size - The amount of storage size in GB.

  • data "ionoscloud_mongo_template" "example" {
      id = "template_id"
    }
    data "ionoscloud_mongo_template" "example" {
      name = "name"
    }
    data "ionoscloud_mongo_template" "example" {
      name = "name"
      partial_match = true
    }