\VariableApi

All URIs are relative to http://localhost/api/v1

MethodHTTP requestDescription
DeleteVariableDelete /variables/{variable_key}Delete variable
GetVariableGet /variables/{variable_key}Get a variable by key
GetVariablesGet /variablesGet all variables
PatchVariablePatch /variables/{variable_key}Update a variable by key
PostVariablesPost /variablesCreate a variable

DeleteVariable

DeleteVariable(ctx, variableKey)

Delete variable

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
variableKeystringThe Variable Key.

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

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

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

GetVariable

Variable GetVariable(ctx, variableKey)

Get a variable by key

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
variableKeystringThe Variable Key.

Return type

Variable

Authorization

No authorization required

HTTP request headers

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

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

GetVariables

VariableCollection GetVariables(ctx, optional)

Get all variables

The collection does not contain data. To get data, you must get a single entity.

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
optional*GetVariablesOptsoptional parametersnil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetVariablesOpts struct

NameTypeDescriptionNotes
limitoptional.Int32The numbers of items to return.[default to 100]
offsetoptional.Int32The number of items to skip before starting to collect the result set.

Return type

VariableCollection

Authorization

No authorization required

HTTP request headers

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

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

PatchVariable

Variable PatchVariable(ctx, variableKey, variable, optional)

Update a variable by key

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
variableKeystringThe Variable Key.
variableVariable
optional*PatchVariableOptsoptional parametersnil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PatchVariableOpts struct

NameTypeDescriptionNotes

updateMask | optional.Interface of []string| The fields to update on the connection (connection, pool etc). If absent or empty, all modifiable fields are updated. A comma-separated list of fully qualified names of fields. |

Return type

Variable

Authorization

No authorization required

HTTP request headers

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

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

PostVariables

Variable PostVariables(ctx, variable)

Create a variable

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
variableVariable

Return type

Variable

Authorization

No authorization required

HTTP request headers

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

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