You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "The type of encryption used on the image",
199
199
},
200
+
"remote": {
201
+
Type: schema.TypeList,
202
+
Optional: true,
203
+
Computed: true,
204
+
Description: "If present, this property indicates that the resource associated with this reference is remote and therefore may not be directly retrievable.",
205
+
Elem: &schema.Resource{
206
+
Schema: map[string]*schema.Schema{
207
+
"account": {
208
+
Type: schema.TypeList,
209
+
Optional: true,
210
+
Computed: true,
211
+
Description: "If present, this property indicates that the referenced resource is remote to this account, and identifies the owning account.",
212
+
Elem: &schema.Resource{
213
+
Schema: map[string]*schema.Schema{
214
+
"id": {
215
+
Type: schema.TypeString,
216
+
Optional: true,
217
+
Computed: true,
218
+
Description: "The unique identifier for this resource group.",
219
+
},
220
+
"resource_type": {
221
+
Type: schema.TypeString,
222
+
Computed: true,
223
+
Description: "The resource type.",
224
+
},
225
+
},
226
+
},
227
+
},
228
+
},
229
+
},
230
+
},
200
231
"source_volume": {
201
232
Type: schema.TypeString,
202
233
Computed: true,
@@ -366,6 +397,18 @@ func imageGetByName(context context.Context, d *schema.ResourceData, meta interf
Description: "If present, this property indicates that the resource associated with this reference is remote and therefore may not be directly retrievable.",
193
+
Elem: &schema.Resource{
194
+
Schema: map[string]*schema.Schema{
195
+
"account": {
196
+
Type: schema.TypeList,
197
+
Computed: true,
198
+
Description: "If present, this property indicates that the referenced resource is remote to this account, and identifies the owning account.",
199
+
Elem: &schema.Resource{
200
+
Schema: map[string]*schema.Schema{
201
+
"id": {
202
+
Type: schema.TypeString,
203
+
Computed: true,
204
+
Description: "The unique identifier for this resource group.",
205
+
},
206
+
"resource_type": {
207
+
Type: schema.TypeString,
208
+
Computed: true,
209
+
Description: "The resource type.",
210
+
},
211
+
},
212
+
},
213
+
},
214
+
},
215
+
},
216
+
},
183
217
"resource_group": {
184
218
Type: schema.TypeList,
185
219
Computed: true,
@@ -338,6 +372,10 @@ func imageList(context context.Context, d *schema.ResourceData, meta interface{}
338
372
visibility=v.(string)
339
373
}
340
374
375
+
varremoteAccountIdstring
376
+
ifv, ok:=d.GetOk(isImageRemoteAccountId); ok {
377
+
remoteAccountId=v.(string)
378
+
}
341
379
varstatusstring
342
380
ifv, ok:=d.GetOk(isImageStatus); ok {
343
381
status=v.(string)
@@ -354,6 +392,19 @@ func imageList(context context.Context, d *schema.ResourceData, meta interface{}
Copy file name to clipboardExpand all lines: website/docs/d/is_image.html.markdown
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ Review the argument references that you can specify for your data source.
47
47
48
48
-`visibility` - (Optional, String) The visibility of the image. Accepted values are `public` or `private`.
49
49
50
+
50
51
## Attribute reference
51
52
In addition to all argument reference list, you can access the following attribute references after your data source is created.
52
53
@@ -103,6 +104,15 @@ In addition to all argument reference list, you can access the following attribu
103
104
104
105
-`source_volume` - The source volume id of the image.
105
106
-`user_data_format` - (String) The user data format for this image.
107
+
-`remote` - (Optional, List) If present, this property indicates that the resource associated with this reference is remote and therefore may not be directly retrievable.
108
+
109
+
**Nested schema for `remote`:**
110
+
- `account` - (Optional, List) Indicates that the referenced resource is remote to this account, and identifies the owning account.
111
+
112
+
**Nested schema for `account`:**
113
+
- `id` – (Computed, String) The unique identifier for this account.
114
+
- `resource_type` – (Computed, String) The resource type.
115
+
106
116
107
117
~> **Note:** </br> Supported values are : </br>
108
118
**•**`cloud_init`: user_data will be interpreted according to the cloud-init standard.</br>
0 commit comments