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 zones in which this image is available for use.If the image has a status of `available` or `deprecated`, this will include all zones in the region.If the image has a status of `partially_available`, this will include one or more zones in the region.If the image has a status of `failed`, `obsolete`, `pending`, or `unusable`, this will be empty.",
324
+
Elem: &schema.Resource{
325
+
Schema: map[string]*schema.Schema{
326
+
"href": &schema.Schema{
327
+
Type: schema.TypeString,
328
+
Computed: true,
329
+
Description: "The URL for this zone.",
330
+
},
331
+
"name": &schema.Schema{
332
+
Type: schema.TypeString,
333
+
Computed: true,
334
+
Description: "The globally unique name for this zone.",
335
+
},
336
+
},
337
+
},
338
+
},
320
339
},
321
340
}
322
341
}
@@ -618,6 +637,17 @@ func imageGetById(context context.Context, d *schema.ResourceData, meta interfac
Description: "The zones in which this image is available for use.If the image has a status of `available` or `deprecated`, this will include all zones in the region.If the image has a status of `partially_available`, this will include one or more zones in the region.If the image has a status of `failed`, `obsolete`, `pending`, or `unusable`, this will be empty.",
347
+
Elem: &schema.Resource{
348
+
Schema: map[string]*schema.Schema{
349
+
"href": &schema.Schema{
350
+
Type: schema.TypeString,
351
+
Computed: true,
352
+
Description: "The URL for this zone.",
353
+
},
354
+
"name": &schema.Schema{
355
+
Type: schema.TypeString,
356
+
Computed: true,
357
+
Description: "The globally unique name for this zone.",
358
+
},
359
+
},
360
+
},
361
+
},
343
362
},
344
363
},
345
364
},
@@ -561,6 +580,17 @@ func imageList(context context.Context, d *schema.ResourceData, meta interface{}
561
580
"Error on get of resource image (%s) access tags: %s", d.Id(), err)
Description: "The zones in which this image is available for use.If the image has a status of `available` or `deprecated`, this will include all zones in the region.If the image has a status of `partially_available`, this will include one or more zones in the region.If the image has a status of `failed`, `obsolete`, `pending`, or `unusable`, this will be empty.",
298
+
Elem: &schema.Resource{
299
+
Schema: map[string]*schema.Schema{
300
+
"href": &schema.Schema{
301
+
Type: schema.TypeString,
302
+
Computed: true,
303
+
Description: "The URL for this zone.",
304
+
},
305
+
"name": &schema.Schema{
306
+
Type: schema.TypeString,
307
+
Computed: true,
308
+
Description: "The globally unique name for this zone.",
309
+
},
310
+
},
311
+
},
312
+
},
294
313
},
295
314
}
296
315
}
@@ -999,6 +1018,18 @@ func imgGet(context context.Context, d *schema.ResourceData, meta interface{}, i
Copy file name to clipboardExpand all lines: website/docs/d/is_image.html.markdown
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,3 +136,8 @@ In addition to all argument reference list, you can access the following attribu
136
136
**•**`cloud_init`: user_data will be interpreted according to the cloud-init standard.</br>
137
137
**•**`esxi_kickstart`: user_data will be interpreted as a VMware ESXi installation script.</br>
138
138
**•**`ipxe`: user_data will be interpreted as a single URL to an iPXE script or as the text of an iPXE script.</br>
139
+
-`zones` - (List) The zones in which this image is available for use.If the image has a status of `available` or `deprecated`, this will include all zones in the region.If the image has a status of `partially_available`, this will include one or more zones in the region.If the image has a status of `failed`, `obsolete`, `pending`, or `unusable`, this will be empty.
140
+
Nested schema for **zones**:
141
+
-`href` - (String) The URL for this zone.
142
+
-`name` - (String) The globally unique name for this zone.
Copy file name to clipboardExpand all lines: website/docs/d/is_images.html.markdown
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,6 @@ data "ibm_is_image" "example" {
37
37
}
38
38
```
39
39
40
-
```
41
40
## Argument reference
42
41
43
42
Review the argument references that you can specify for your data source.
@@ -138,6 +137,9 @@ You can access the following attribute references after your data source is crea
138
137
- `id` – (Computed, String) The unique identifier for this account.
139
138
- `resource_type` – (Computed, String) The resource type.
140
139
141
-
140
+
-`zones` - (List) The zones in which this image is available for use.If the image has a status of `available` or `deprecated`, this will include all zones in the region.If the image has a status of `partially_available`, this will include one or more zones in the region. If the image has a status of `failed`, `obsolete`, `pending`, or `unusable`, this will be empty.
141
+
Nested schema for **zones**:
142
+
-`href` - (String) The URL for this zone.
143
+
-`name` - (String) The globally unique name for this zone.
Copy file name to clipboardExpand all lines: website/docs/r/is_image.html.markdown
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,10 @@ In addition to all argument reference list, you can access the following attribu
203
203
**•**`ipxe`: user_data will be interpreted as a single URL to an iPXE script or as the text of an iPXE script.</br>
204
204
205
205
-`visibility` - (String) The access scope of an image such as `private` or `public`.
206
-
206
+
-`zones` - (List) The zones in which this image is available for use.If the image has a status of `available` or `deprecated`, this will include all zones in the region.If the image has a status of `partially_available`, this will include one or more zones in the region. If the image has a status of `failed`, `obsolete`, `pending`, or `unusable`, this will be empty.
207
+
Nested schema for **zones**:
208
+
-`href` - (String) The URL for this zone.
209
+
-`name` - (String) The globally unique name for this zone.
207
210
208
211
## Import
209
212
The `ibm_is_image` resource can be imported by using image ID.
0 commit comments