All URIs are relative to https://api.equinix.com/metal/v1
Method | HTTP request | Description |
---|---|---|
RequestSuppert | Post /support-requests | Create a support ticket |
RequestSuppert(ctx).SupportRequestInput(supportRequestInput).Execute()
Create a support ticket
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/equinix/equinix-sdk-go/services/metalv1"
)
func main() {
supportRequestInput := *openapiclient.NewSupportRequestInput("Message_example", "Subject_example") // SupportRequestInput | Support Request to create
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.SupportRequestApi.RequestSuppert(context.Background()).SupportRequestInput(supportRequestInput).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SupportRequestApi.RequestSuppert``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiRequestSuppertRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
supportRequestInput | SupportRequestInput | Support Request to create |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]