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 |
CreateDeviceApplianceVmxAuthenticationToken201Response CreateDeviceApplianceVmxAuthenticationToken(ctx, serial).Execute()
Generate a new vMX authentication token
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
serial | string | Serial |
Other parameters are passed through a pointer to a apiCreateDeviceApplianceVmxAuthenticationTokenRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
CreateDeviceApplianceVmxAuthenticationToken201Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]