Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 2.65 KB

SupportRequestApi.md

File metadata and controls

85 lines (61 loc) · 2.65 KB

metal.SupportRequestApi

All URIs are relative to https://api.equinix.com/metal/v1

Method HTTP request Description
request_suppert POST /support-requests Create a support ticket

request_suppert

request_suppert(support_request_input)

Create a support ticket

Support Ticket.

Example

  • Api Key Authentication (x_auth_token):
from __future__ import print_function
import time
import metal
from metal.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.equinix.com/metal/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = metal.Configuration(
    host = "https://api.equinix.com/metal/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: x_auth_token
configuration.api_key['x_auth_token'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x_auth_token'] = 'Bearer'

# Enter a context with an instance of the API client
with metal.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = metal.SupportRequestApi(api_client)
    support_request_input = metal.SupportRequestInput() # SupportRequestInput | Support Request to create

    try:
        # Create a support ticket
        api_instance.request_suppert(support_request_input)
    except ApiException as e:
        print("Exception when calling SupportRequestApi->request_suppert: %s\n" % e)

Parameters

Name Type Description Notes
support_request_input SupportRequestInput Support Request to create

Return type

void (empty response body)

Authorization

x_auth_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
204 no content -
401 unauthorized -
403 forbidden -
404 not found -
422 unprocessable entity -

[Back to top] [Back to API list] [Back to Model list] [Back to README]