4.6.0
This commit is contained in:
@@ -289,6 +289,11 @@ func dataSourceStacksListSchemaMake() map[string]*schema.Schema {
|
||||
Optional: true,
|
||||
Description: "type",
|
||||
},
|
||||
"sort_by": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Description: "sort by one of supported fields, format +|-(field)",
|
||||
},
|
||||
"page": {
|
||||
Type: schema.TypeInt,
|
||||
Optional: true,
|
||||
|
||||
@@ -58,6 +58,9 @@ func utilityStackListCheckPresence(ctx context.Context, d *schema.ResourceData,
|
||||
if Status, ok := d.GetOk("status"); ok {
|
||||
req.Status = Status.(string)
|
||||
}
|
||||
if sortBy, ok := d.GetOk("sort_by"); ok {
|
||||
req.SortBy = sortBy.(string)
|
||||
}
|
||||
if Page, ok := d.GetOk("page"); ok {
|
||||
req.Page = uint64(Page.(int))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user