Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorGFM committed Sep 26, 2023
1 parent 00eac9e commit f916f33
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cyral/data_source_cyral_system_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (systemInfo *SystemInfo) WriteToSchema(d *schema.ResourceData) error {

func dataSourceSystemInfo() *schema.Resource {
return &schema.Resource{
Description: "Retrieve information from Cyral systems.",
Description: "Retrieve information from Cyral system.",
ReadContext: ReadResource(ResourceOperationConfig{
Name: "SystemInfoDataSourceRead",
HttpMethod: http.MethodGet,
Expand All @@ -43,17 +43,17 @@ func dataSourceSystemInfo() *schema.Resource {
}),
Schema: map[string]*schema.Schema{
IDKey: {
Description: "The data source identifier.",
Description: "Data source identifier.",
Type: schema.TypeString,
Computed: true,
},
ControlPlaneVersionKey: {
Description: "The Control Plane version.",
Description: "Control Plane version.",
Type: schema.TypeString,
Computed: true,
},
SidecarLatestVersionKey: {
Description: "The latest Sidecar version available to this Control Plane.",
Description: "Latest Sidecar version available to this Control Plane.",
Type: schema.TypeString,
Computed: true,
},
Expand Down
22 changes: 22 additions & 0 deletions docs/data-sources/system_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "cyral_system_info Data Source - terraform-provider-cyral"
subcategory: ""
description: |-
Retrieve information from Cyral system.
---

# cyral_system_info (Data Source)

Retrieve information from Cyral system.



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

### Read-Only

- `control_plane_version` (String) Control Plane version.
- `id` (String) Data source identifier.
- `sidecar_latest_version` (String) Latest Sidecar version available to this Control Plane.

0 comments on commit f916f33

Please sign in to comment.