Skip to content

Latest commit

 

History

History
80 lines (49 loc) · 2.44 KB

VmxApi.md

File metadata and controls

80 lines (49 loc) · 2.44 KB

\VmxApi

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

Method HTTP request Description
CreateDeviceApplianceVmxAuthenticationToken Post /devices/{serial}/appliance/vmx/authenticationToken Generate a new vMX authentication token

CreateDeviceApplianceVmxAuthenticationToken

CreateDeviceApplianceVmxAuthenticationToken201Response CreateDeviceApplianceVmxAuthenticationToken(ctx, serial).Execute()

Generate a new vMX authentication token

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/meraki/dashboard-api-go/client"
)

func main() {
    serial := "serial_example" // string | Serial

    configuration := openapiclient.NewConfiguration()

    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.VmxApi.CreateDeviceApplianceVmxAuthenticationToken(context.Background(), serial).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `VmxApi.CreateDeviceApplianceVmxAuthenticationToken``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `CreateDeviceApplianceVmxAuthenticationToken`: CreateDeviceApplianceVmxAuthenticationToken201Response
    fmt.Fprintf(os.Stdout, "Response from `VmxApi.CreateDeviceApplianceVmxAuthenticationToken`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
serial string Serial

Other Parameters

Other parameters are passed through a pointer to a apiCreateDeviceApplianceVmxAuthenticationTokenRequest struct via the builder pattern

Name Type Description Notes

Return type

CreateDeviceApplianceVmxAuthenticationToken201Response

Authorization

bearerAuth, meraki_api_key

HTTP request headers

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

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