Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshonkan84 committed Dec 5, 2024
1 parent 9433169 commit 8507a2a
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ description: |-
provider "zosmf" {
host = "https://192.168.1.32:10443"
username = "ibmuser"
insecure = false
}
```

Expand All @@ -25,8 +26,9 @@ provider "zosmf" {
### Required

- `host` (String)
- `username` (String)

### Optional

- `insecure` (Boolean)
- `password` (String, Sensitive)
- `username` (String)
67 changes: 67 additions & 0 deletions docs/resources/dataset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "zosmf_dataset Resource - zosmf"
subcategory: ""
description: |-
Dataset resource
---

# zosmf_dataset (Resource)

Dataset resource

## Example Usage

```terraform
resource "zosmf_dataset" "example" {
name = "IBMUSER.TATI.TERROF"
volser = "zmf046"
unit = "3390"
dsorg = "PS"
alcunit = "TRK"
primary = 1
secondary = 100
avgblk = 500
recfm = "VB"
blksize = 27966
lrecl = 800
content = <<EOT
test
EOT
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `content` (String) Content
- `name` (String) Dataset name

### Optional

- `alcunit` (String) Unit of space allocation
- `avgblk` (Number) Average block
- `blksize` (Number) Block size
- `dataclass` (String) Data class
- `dirblk` (Number) Number of directory blocks
- `dsntype` (String) Dataset type
- `dsorg` (String) Data set organization
- `lrecl` (Number) Record length
- `mgntclass` (String) Management class
- `primary` (Number) Primary space allocation
- `recfm` (String) Record format
- `secondary` (Number) Secondary space allocation
- `storclass` (String) Storage class
- `unit` (String) Device type
- `volser` (String) Volume

## Import

Import is supported using the following syntax:

```shell
# Dataset can be imported by specifying the dataset name.
terraform import zosmf_dataset.example "IBMUSER.TEST"
```
1 change: 1 addition & 0 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
provider "zosmf" {
host = "https://192.168.1.32:10443"
username = "ibmuser"
insecure = false
}
17 changes: 15 additions & 2 deletions examples/resources/zosmf_dataset/resource.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
resource "zosmf_dataset" "example" {
name = "IBMUSER.IBMUSER.TEST"
}
name = "IBMUSER.TATI.TERROF"
volser = "zmf046"
unit = "3390"
dsorg = "PS"
alcunit = "TRK"
primary = 1
secondary = 100
avgblk = 500
recfm = "VB"
blksize = 27966
lrecl = 800
content = <<EOT
test
EOT
}

0 comments on commit 8507a2a

Please sign in to comment.