Skip to content

Commit

Permalink
streaming v0
Browse files Browse the repository at this point in the history
  • Loading branch information
phact committed Apr 8, 2022
1 parent 2fb08aa commit 465610a
Show file tree
Hide file tree
Showing 28 changed files with 445 additions and 245 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ website/vendor

# Keep windows files with windows line endings
*.winfile eol=crlf

terraform-provider-astra
14 changes: 7 additions & 7 deletions docs/data-sources/access_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ data "astra_access_list" "dev" {

### Required

- **database_id** (String) The ID of the Astra database.
- `database_id` (String) The ID of the Astra database.

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.

### Read-Only

- **results** (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`

Read-Only:

- **addresses** (List of String)
- **datacenter_id** (String)
- **enabled** (String)
- **organization_id** (String)
- `addresses` (List of String)
- `datacenter_id` (String)
- `enabled` (String)
- `organization_id` (String)


12 changes: 6 additions & 6 deletions docs/data-sources/available_regions.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ data "astra_available_regions" "regions" {

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.

### Read-Only

- **results** (List of Object) The list of supported Astra regions by cloud provider and tier. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of supported Astra regions by cloud provider and tier. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`

Read-Only:

- **cloud_provider** (String)
- **display_name** (String)
- **region** (String)
- **zone** (String)
- `cloud_provider` (String)
- `display_name` (String)
- `region` (String)
- `zone` (String)


34 changes: 17 additions & 17 deletions docs/data-sources/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@ data "astra_database" "db" {

### Required

- **database_id** (String) Astra Database ID (system generated)
- `database_id` (String) Astra Database ID (system generated)

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.

### Read-Only

- **additional_keyspaces** (List of String) Additional keyspaces
- **cloud_provider** (String) Cloud provider (AWS, GCP, AZURE)
- **cqlsh_url** (String) URL for cqlsh web
- **data_endpoint_url** (String) REST API URL
- **grafana_url** (String) URL for the grafana dashboard for this database
- **graphql_url** (String) Graphql URL
- **keyspace** (String) Initial keyspace
- **name** (String) Database name (user provided)
- **node_count** (Number) Node count (not relevant for serverless databases)
- **organization_id** (String) Ordg id (system generated)
- **owner_id** (String) Owner id (system generated)
- **regions** (List of String) Cloud provider region. Get list of supported regions from regions data-source
- **replication_factor** (Number) Replication Factor (not relevant for serverless databases)
- **status** (String) Database status
- **total_storage** (Number) Storage Capacity (not relevant for serverelss databases)
- `additional_keyspaces` (List of String) Additional keyspaces
- `cloud_provider` (String) Cloud provider (AWS, GCP, AZURE)
- `cqlsh_url` (String) URL for cqlsh web
- `data_endpoint_url` (String) REST API URL
- `grafana_url` (String) URL for the grafana dashboard for this database
- `graphql_url` (String) Graphql URL
- `keyspace` (String) Initial keyspace
- `name` (String) Database name (user provided)
- `node_count` (Number) Node count (not relevant for serverless databases)
- `organization_id` (String) Ordg id (system generated)
- `owner_id` (String) Owner id (system generated)
- `regions` (List of String) Cloud provider region. Get list of supported regions from regions data-source
- `replication_factor` (Number) Replication Factor (not relevant for serverless databases)
- `status` (String) Database status
- `total_storage` (Number) Storage Capacity (not relevant for serverelss databases)


40 changes: 20 additions & 20 deletions docs/data-sources/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,34 @@ output "existing_dbs" {

### Optional

- **cloud_provider** (String) The cloud provider
- **id** (String) The ID of this resource.
- **status** (String) The list of Astra databases that match the search criteria.
- `cloud_provider` (String) The cloud provider
- `id` (String) The ID of this resource.
- `status` (String) The list of Astra databases that match the search criteria.

### Read-Only

- **results** (List of Object) The list of Astra databases that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of Astra databases that match the search criteria. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`

Read-Only:

- **additional_keyspaces** (List of String)
- **cloud_provider** (String)
- **cqlsh_url** (String)
- **data_endpoint_url** (String)
- **grafana_url** (String)
- **graphql_url** (String)
- **id** (String)
- **keyspace** (String)
- **name** (String)
- **node_count** (Number)
- **organization_id** (String)
- **owner_id** (String)
- **regions** (List of String)
- **replication_factor** (Number)
- **status** (String)
- **total_storage** (Number)
- `additional_keyspaces` (List of String)
- `cloud_provider` (String)
- `cqlsh_url` (String)
- `data_endpoint_url` (String)
- `grafana_url` (String)
- `graphql_url` (String)
- `id` (String)
- `keyspace` (String)
- `name` (String)
- `node_count` (Number)
- `organization_id` (String)
- `owner_id` (String)
- `regions` (List of String)
- `replication_factor` (Number)
- `status` (String)
- `total_storage` (Number)


6 changes: 3 additions & 3 deletions docs/data-sources/keyspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ data "astra_keyspace" "dev" {

### Required

- **database_id** (String) The ID of the Astra database.
- **name** (String) The keyspace name.
- `database_id` (String) The ID of the Astra database.
- `name` (String) The keyspace name.

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.


8 changes: 4 additions & 4 deletions docs/data-sources/keyspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ data "astra_keyspaces" "dev" {

### Required

- **database_id** (String) The ID of the Astra database.
- `database_id` (String) The ID of the Astra database.

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.

### Read-Only

- **results** (List of Object) The list of keyspaces that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of keyspaces that match the search criteria. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`

Read-Only:

- **name** (String)
- `name` (String)


18 changes: 9 additions & 9 deletions docs/data-sources/private_link_endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@ data "astra_private_link_endpoints" "dev" {

### Required

- **database_id** (String) The ID of the Astra database.
- **datacenter_id** (String) The Datacenter ID of the Astra database.
- **endpoint_id** (String) Endpoint ID.
- `database_id` (String) The ID of the Astra database.
- `datacenter_id` (String) The Datacenter ID of the Astra database.
- `endpoint_id` (String) Endpoint ID.

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.

### Read-Only

- **results** (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`

Read-Only:

- **create_time** (String)
- **description** (String)
- **endpoint_id** (String)
- **status** (String)
- `create_time` (String)
- `description` (String)
- `endpoint_id` (String)
- `status` (String)


16 changes: 8 additions & 8 deletions docs/data-sources/private_links.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ data "astra_private_links" "dev" {

### Required

- **database_id** (String) The ID of the Astra database.
- **datacenter_id** (String) The datacenter where of the Astra database.
- `database_id` (String) The ID of the Astra database.
- `datacenter_id` (String) The datacenter where of the Astra database.

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.

### Read-Only

- **results** (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`

Read-Only:

- **allowed_principals** (List of String)
- **datacenter_id** (String)
- **endpoints** (List of String)
- **service_name** (String)
- `allowed_principals` (List of String)
- `datacenter_id` (String)
- `endpoints` (List of String)
- `service_name` (String)


16 changes: 8 additions & 8 deletions docs/data-sources/role.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ data "astra_role" "dev" {

### Required

- **role_id** (String) Role ID, system generated
- `role_id` (String) Role ID, system generated

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.

### Read-Only

- **results** (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))
- `results` (List of Object) The list of private links that match the search criteria. (see [below for nested schema](#nestedatt--results))

<a id="nestedatt--results"></a>
### Nested Schema for `results`

Read-Only:

- **description** (String)
- **effect** (String)
- **policy** (List of String)
- **resources** (List of String)
- **role_name** (String)
- `description` (String)
- `effect` (String)
- `policy` (List of String)
- `resources` (List of String)
- `role_name` (String)


6 changes: 3 additions & 3 deletions docs/data-sources/secure_connect_bundle_url.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ data "astra_secure_connect_bundle_url" "dev" {

### Required

- **database_id** (String) The ID of the Astra database.
- `database_id` (String) The ID of the Astra database.

### Optional

- **id** (String) The ID of this resource.
- `id` (String) The ID of this resource.

### Read-Only

- **url** (String) The temporary download url to the secure connect bundle zip file.
- `url` (String) The temporary download url to the secure connect bundle zip file.


8 changes: 4 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ description: |-

```terraform
terraform {
required_providers {
astra = {
source = "datastax/astra"
}
required_providers {
astra = {
source = "datastax/astra"
}
}
}
variable "token" {}
Expand Down
18 changes: 9 additions & 9 deletions docs/resources/access_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: |-
```terraform
resource "astra_access_list" "example" {
database_id = "a6bc9c26-e7ce-424f-84c7-0a00afb12588"
enabled = true
enabled = true
addresses {
request {
address = "0.0.0.0/0"
Expand All @@ -30,32 +30,32 @@ resource "astra_access_list" "example" {

### Required

- **addresses** (Block List, Min: 1) List of address requests that should have access to database endpoints. (see [below for nested schema](#nestedblock--addresses))
- **database_id** (String) The ID of the Astra database.
- `addresses` (Block List, Min: 1) List of address requests that should have access to database endpoints. (see [below for nested schema](#nestedblock--addresses))
- `database_id` (String) The ID of the Astra database.

### Optional

- **enabled** (Boolean) Public access restrictions enabled or disabled
- **id** (String) The ID of this resource.
- `enabled` (Boolean) Public access restrictions enabled or disabled
- `id` (String) The ID of this resource.

<a id="nestedblock--addresses"></a>
### Nested Schema for `addresses`

Required:

- **request** (Block Set, Min: 1) (see [below for nested schema](#nestedblock--addresses--request))
- `request` (Block Set, Min: 1) (see [below for nested schema](#nestedblock--addresses--request))

<a id="nestedblock--addresses--request"></a>
### Nested Schema for `addresses.request`

Required:

- **address** (String) IP Address/CIDR group that should have access
- **enabled** (Boolean) Enable/disable this IP Address/CIDR group's access
- `address` (String) IP Address/CIDR group that should have access
- `enabled` (Boolean) Enable/disable this IP Address/CIDR group's access

Optional:

- **description** (String) Description for the IP Address/CIDR group
- `description` (String) Description for the IP Address/CIDR group

## Import

Expand Down
Loading

0 comments on commit 465610a

Please sign in to comment.