This commit is contained in:
2024-05-31 14:05:21 +03:00
parent 84b7a80e1b
commit db1760cb72
815 changed files with 58194 additions and 11049 deletions

View File

@@ -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,

View File

@@ -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))
}