|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "oasis_notebook Resource - terraform-provider-oasis" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Oasis Notebook Resource |
| 7 | +--- |
| 8 | + |
| 9 | +# oasis_notebook (Resource) |
| 10 | + |
| 11 | +Oasis Notebook Resource |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +terraform { |
| 17 | + required_version = ">= 0.13.0" |
| 18 | + required_providers { |
| 19 | + oasis = { |
| 20 | + source = "arangodb-managed/oasis" |
| 21 | + version = ">=2.1.7" |
| 22 | + } |
| 23 | + } |
| 24 | +} |
| 25 | +
|
| 26 | +provider "oasis" { |
| 27 | + api_key_id = "" // API Key ID generated in Oasis platform |
| 28 | + api_key_secret = "" // API Key Secret generated in Oasis platform |
| 29 | +} |
| 30 | +
|
| 31 | +// Create Project |
| 32 | +resource "oasis_project" "oasis_test_project" { |
| 33 | + name = "Terraform Oasis Project" |
| 34 | + description = "A test Oasis project within an organization from the Terraform Provider" |
| 35 | +} |
| 36 | +
|
| 37 | +// Create Deployment |
| 38 | +resource "oasis_deployment" "my_oneshard_deployment" { |
| 39 | + terms_and_conditions_accepted = "true" |
| 40 | + project = oasis_project.oasis_test_project.id // Project id where deployment will be created |
| 41 | + name = "oasis_jupyter_notebook_deployment" |
| 42 | + location { |
| 43 | + region = "gcp-europe-west4" |
| 44 | + } |
| 45 | + security { |
| 46 | + disable_foxx_authentication = false |
| 47 | + } |
| 48 | + disk_performance = "dp30" |
| 49 | + configuration { |
| 50 | + model = "oneshard" |
| 51 | + node_size_id = "c4-a8" |
| 52 | + node_disk_size = 20 |
| 53 | + maximum_node_disk_size = 40 |
| 54 | + } |
| 55 | + notification_settings { |
| 56 | + email_addresses = [ |
| 57 | + |
| 58 | + ] |
| 59 | + } |
| 60 | +} |
| 61 | +
|
| 62 | +// Create Notebook |
| 63 | +resource "oasis_notebook" "oasis_test_notebook" { |
| 64 | + deployment_id = oasis_deployment.my_oneshard_deployment.id |
| 65 | + name = "Test Oasis Jupyter Notebook" |
| 66 | + description = "Test Description" |
| 67 | + model { |
| 68 | + notebook_model_id = "basic" |
| 69 | + disk_size = "10" |
| 70 | + } |
| 71 | +} |
| 72 | +``` |
| 73 | + |
| 74 | +<!-- schema generated by tfplugindocs --> |
| 75 | +## Schema |
| 76 | + |
| 77 | +### Required |
| 78 | + |
| 79 | +- `deployment_id` (String) Notebook Resource Notebook Deployment ID field |
| 80 | +- `model` (Block List, Min: 1, Max: 1) Notebook Resource Notebook Model field (see [below for nested schema](#nestedblock--model)) |
| 81 | +- `name` (String) Notebook Resource Notebook Name field |
| 82 | + |
| 83 | +### Optional |
| 84 | + |
| 85 | +- `description` (String) Notebook Resource Notebook Description field |
| 86 | +- `url` (String) Notebook Resource Notebook URL field |
| 87 | + |
| 88 | +### Read-Only |
| 89 | + |
| 90 | +- `created_at` (String) Notebook Resource Notebook Created At field |
| 91 | +- `created_by_id` (String) Notebook Resource Notebook Created By Id field |
| 92 | +- `deleted_at` (String) Notebook Resource Notebook Deleted At field |
| 93 | +- `id` (String) The ID of this resource. |
| 94 | +- `is_deleted` (Boolean) Notebook Resource Notebook Is Deleted field |
| 95 | +- `is_paused` (Boolean) Notebook Resource Notebook Is Paused field |
| 96 | +- `last_paused_at` (String) Notebook Resource Notebook Last Paused field |
| 97 | +- `last_resumed_at` (String) Notebook Resource Notebook Last Resumed field |
| 98 | +- `status` (List of Object) Notebook Resource Notebook Status field (see [below for nested schema](#nestedatt--status)) |
| 99 | + |
| 100 | +<a id="nestedblock--model"></a> |
| 101 | +### Nested Schema for `model` |
| 102 | + |
| 103 | +Required: |
| 104 | + |
| 105 | +- `disk_size` (Number) Notebook Resource Notebook Model Disk Size field |
| 106 | +- `notebook_model_id` (String) Notebook Resource Notebook Model ID field |
| 107 | + |
| 108 | + |
| 109 | +<a id="nestedatt--status"></a> |
| 110 | +### Nested Schema for `status` |
| 111 | + |
| 112 | +Read-Only: |
| 113 | + |
| 114 | +- `endpoint` (String) |
| 115 | +- `last_updated_at` (String) |
| 116 | +- `message` (String) |
| 117 | +- `phase` (String) |
| 118 | +- `usage` (List of Object) (see [below for nested schema](#nestedobjatt--status--usage)) |
| 119 | + |
| 120 | +<a id="nestedobjatt--status--usage"></a> |
| 121 | +### Nested Schema for `status.usage` |
| 122 | + |
| 123 | +Read-Only: |
| 124 | + |
| 125 | +- `last_cpu_limit` (Number) |
| 126 | +- `last_cpu_usage` (Number) |
| 127 | +- `last_memory_limit` (Number) |
| 128 | +- `last_memory_usage` (Number) |
| 129 | + |
| 130 | + |
0 commit comments