@@ -13,6 +13,8 @@ func resourceEnterpriseOrg() *schema.Resource {
13
13
return & schema.Resource {
14
14
Description : "`enterprise_org` resource represents an Organization that is created under an Enterprise in Astra." ,
15
15
CreateContext : resourceEnterpriseOrgCreate ,
16
+ ReadContext : resourceEnterpriseOrgRead ,
17
+ DeleteContext : resourceEnterpriseOrgDelete ,
16
18
17
19
Importer : & schema.ResourceImporter {
18
20
StateContext : schema .ImportStatePassthroughContext ,
@@ -106,6 +108,26 @@ func resourceEnterpriseOrgCreate(ctx context.Context, d *schema.ResourceData, me
106
108
return nil
107
109
}
108
110
111
+ func resourceEnterpriseOrgRead (ctx context.Context , d * schema.ResourceData , meta interface {}) diag.Diagnostics {
112
+ return diag.Diagnostics {
113
+ diag.Diagnostic {
114
+ Severity : diag .Warning ,
115
+ Summary : "Read of Enterprise Organizations not supported" ,
116
+ Detail : "Read of Enterprise Organizations not supported." ,
117
+ },
118
+ }
119
+ }
120
+
121
+ func resourceEnterpriseOrgDelete (ctx context.Context , d * schema.ResourceData , meta interface {}) diag.Diagnostics {
122
+ return diag.Diagnostics {
123
+ diag.Diagnostic {
124
+ Severity : diag .Warning ,
125
+ Summary : "Delete of Enterprise Organizations not supported" ,
126
+ Detail : "Delete of Enterprise Organizations not supported." ,
127
+ },
128
+ }
129
+ }
130
+
109
131
func setEnterpriseOrgData (d * schema.ResourceData , org * astra.CreateOrgInEnterpriseResponse ) error {
110
132
if org == nil {
111
133
return errors .New ("organization is nil" )
0 commit comments