Skip to content

Latest commit

 

History

History
215 lines (136 loc) · 7.1 KB

VLANApi.md

File metadata and controls

215 lines (136 loc) · 7.1 KB

\VLANApi

All URIs are relative to https://core.hivelocity.net/api/v2

Method HTTP request Description
DeleteVlanIdResource Delete /vlan/{vlanId} Delete VLAN
GetVlanIdResource Get /vlan/{vlanId} Get VLAN
GetVlanResource Get /vlan/ Get all VLANs
PostVlanIdClearResource Post /vlan/{vlanId}/clear Clear all configurations on this VLAN, including Ports, IPs and associated Static Routes
PostVlanResource Post /vlan/ Create VLAN
PutVlanIdResource Put /vlan/{vlanId} Modify VLAN

DeleteVlanIdResource

DeleteVlanIdResource(ctx, vlanId) Delete VLAN

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
vlanId int32 Id of the VLAN to interact with

Return type

(empty response body)

Authorization

apiKey

HTTP request headers

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

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

GetVlanIdResource

Vlan GetVlanIdResource(ctx, vlanId, optional) Get VLAN

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
vlanId int32 Id of the VLAN to interact with
optional *VLANApiGetVlanIdResourceOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a VLANApiGetVlanIdResourceOpts struct

Name Type Description Notes

xFields | optional.String| An optional fields mask |

Return type

Vlan

Authorization

apiKey

HTTP request headers

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

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

GetVlanResource

[]Vlan GetVlanResource(ctx, optional) Get all VLANs

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *VLANApiGetVlanResourceOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a VLANApiGetVlanResourceOpts struct

Name Type Description Notes
xFields optional.String An optional fields mask

Return type

[]Vlan

Authorization

apiKey

HTTP request headers

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

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

PostVlanIdClearResource

NetworkTaskDump PostVlanIdClearResource(ctx, vlanId, optional) Clear all configurations on this VLAN, including Ports, IPs and associated Static Routes

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
vlanId int32 Id of the VLAN to interact with
optional *VLANApiPostVlanIdClearResourceOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a VLANApiPostVlanIdClearResourceOpts struct

Name Type Description Notes

xFields | optional.String| An optional fields mask |

Return type

NetworkTaskDump

Authorization

apiKey

HTTP request headers

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

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

PostVlanResource

Vlan PostVlanResource(ctx, payload, optional) Create VLAN

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
payload VlanCreate
optional *VLANApiPostVlanResourceOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a VLANApiPostVlanResourceOpts struct

Name Type Description Notes

xFields | optional.String| An optional fields mask |

Return type

Vlan

Authorization

apiKey

HTTP request headers

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

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

PutVlanIdResource

NetworkTaskDump PutVlanIdResource(ctx, vlanId, payload, optional) Modify VLAN

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
vlanId int32 Id of the VLAN to interact with
payload VlanUpdate
optional *VLANApiPutVlanIdResourceOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a VLANApiPutVlanIdResourceOpts struct

Name Type Description Notes

xFields | optional.String| An optional fields mask |

Return type

NetworkTaskDump

Authorization

apiKey

HTTP request headers

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

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