Skip to content

Commit

Permalink
Register the data source
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorGFM committed Sep 22, 2023
1 parent 5eaa02e commit e76ad40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cyral/data_source_cyral_permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ func dataSourcePermission() *schema.Resource {
},
),
Schema: map[string]*schema.Schema{
IDKey: {
Description: "The data source identifier.",
Type: schema.TypeString,
Computed: true,
},
PermissionDataSourcePermissionNamesKey: {
Description: "Filter to retrieve only the permissions that match any of the names present in this " +
"list. Valid values are: " + supportedTypesMarkdown(permissionNames),
Expand Down
1 change: 1 addition & 0 deletions cyral/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func Provider() *schema.Provider {
"cyral_integration_idp": dataSourceIntegrationIdP(),
"cyral_integration_idp_saml": dataSourceIntegrationIdPSAML(),
"cyral_integration_logging": dataSourceIntegrationLogging(),
"cyral_permission": dataSourcePermission(),
"cyral_repository": dataSourceRepository(),
"cyral_role": dataSourceRole(),
"cyral_saml_certificate": dataSourceSAMLCertificate(),
Expand Down

0 comments on commit e76ad40

Please sign in to comment.