RegionsApi
Method
HTTP request
Description
RegionsFindByRegion
var result RegionRead = RegionsFindByRegion(ctx, region)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
objectstoragemanagement "github.com/ionos-cloud/sdk-go-bundle/products/objectstoragemanagement"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
region := "eu-central-3" // string | The Region of the Region.
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := objectstoragemanagement.NewAPIClient(configuration)
resource, resp, err := apiClient.RegionsApi.RegionsFindByRegion(context.Background(), region).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RegionsApi.RegionsFindByRegion``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `RegionsFindByRegion`: RegionRead
fmt.Fprintf(os.Stdout, "Response from `RegionsApi.RegionsFindByRegion`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
RegionsGet
Example
Path Parameters
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
Last updated
Was this helpful?