godo.ADS.ListWorkspaces()
Generated on 23 Nov 2026
from godo version
v1.245.0
Usage
client.ADS.ListWorkspaces(ctx context.Context, region string) (*godo.ADSWorkspacesResponse, *godo.Response, error)Description
ListWorkspaces returns the workspaces in region.
Parameters
regionstring required
Returns
- *godo.ADSWorkspacesResponse
- *godo.Response
The HTTP response, with pagination
Links,Meta, andRatelimit information.- error
Non-nil when the request fails. API errors are returned as
*godo.ErrorResponse.
Fields of godo.ADSWorkspacesResponse
ADSWorkspacesResponse is the body of ListWorkspaces.
Workspaces[]godo.ADSWorkspace
Request Sample
More Information
See the Go package documentation for the source of this method.