Skip to content

Latest commit

 

History

History
583 lines (356 loc) · 17.7 KB

ServerApi.md

File metadata and controls

583 lines (356 loc) · 17.7 KB

\ServerApi

All URIs are relative to https://teamcity.jetbrains.com

Method HTTP request Description
AddLicenseKeys Post /app/rest/server/licensingData/licenseKeys Add license keys.
DeleteLicenseKey Delete /app/rest/server/licensingData/licenseKeys/{licenseKey} Delete a license key.
DownloadFileOfServer Get /app/rest/server/files/{areaId}/files{path} Download specific file.
GetAllMetrics Get /app/rest/server/metrics Get metrics.
GetAllPlugins Get /app/rest/server/plugins Get all plugins.
GetBackupStatus Get /app/rest/server/backup Get the latest backup status.
GetFileMetadataOfServer Get /app/rest/server/files/{areaId}/metadata{path} Get metadata of specific file.
GetFilesListForSubpathOfServer Get /app/rest/server/files/{areaId}/{path} List files under this path.
GetFilesListOfServer Get /app/rest/server/files/{areaId} List all files.
GetLicenseKey Get /app/rest/server/licensingData/licenseKeys/{licenseKey} Get a license key.
GetLicenseKeys Get /app/rest/server/licensingData/licenseKeys Get all license keys.
GetLicensingData Get /app/rest/server/licensingData Get the licensing data.
GetServerField Get /app/rest/server/{field} Get a field of the server info.
GetServerInfo Get /app/rest/server Get the server info.
GetZippedFileOfServer Get /app/rest/server/files/{areaId}/archived{path} Get specific file zipped.
StartBackup Post /app/rest/server/backup Start a new backup.

AddLicenseKeys

LicenseKeys AddLicenseKeys(ctx, optional) Add license keys.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a AddLicenseKeysOpts struct

Name Type Description Notes
body optional.String
fields optional.String

Return type

LicenseKeys

Authorization

No authorization required

HTTP request headers

  • Content-Type: text/plain
  • Accept: application/xml, application/json

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

DeleteLicenseKey

DeleteLicenseKey(ctx, licenseKey) Delete a license key.

Required Parameters

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

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

DownloadFileOfServer

DownloadFileOfServer(ctx, path, areaId) Download specific file.

Required Parameters

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

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

GetAllMetrics

Metrics GetAllMetrics(ctx, optional) Get metrics.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetAllMetricsOpts struct

Name Type Description Notes
fields optional.String

Return type

Metrics

Authorization

No authorization required

HTTP request headers

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

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

GetAllPlugins

Plugins GetAllPlugins(ctx, optional) Get all plugins.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetAllPluginsOpts struct

Name Type Description Notes
fields optional.String

Return type

Plugins

Authorization

No authorization required

HTTP request headers

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

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

GetBackupStatus

string GetBackupStatus(ctx, ) Get the latest backup status.

Required Parameters

This endpoint does not need any parameter.

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

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

GetFileMetadataOfServer

*os.File GetFileMetadataOfServer(ctx, path, areaId, optional) Get metadata of specific file.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetFileMetadataOfServerOpts struct

Name Type Description Notes

fields | optional.String| |

Return type

*os.File

Authorization

No authorization required

HTTP request headers

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

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

GetFilesListForSubpathOfServer

Files GetFilesListForSubpathOfServer(ctx, path, areaId, optional) List files under this path.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetFilesListForSubpathOfServerOpts struct

Name Type Description Notes

basePath | optional.String| | locator | optional.String| | fields | optional.String| |

Return type

Files

Authorization

No authorization required

HTTP request headers

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

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

GetFilesListOfServer

Files GetFilesListOfServer(ctx, areaId, optional) List all files.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetFilesListOfServerOpts struct

Name Type Description Notes

basePath | optional.String| | locator | optional.String| | fields | optional.String| |

Return type

Files

Authorization

No authorization required

HTTP request headers

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

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

GetLicenseKey

LicenseKey GetLicenseKey(ctx, licenseKey, optional) Get a license key.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetLicenseKeyOpts struct

Name Type Description Notes

fields | optional.String| |

Return type

LicenseKey

Authorization

No authorization required

HTTP request headers

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

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

GetLicenseKeys

LicenseKeys GetLicenseKeys(ctx, optional) Get all license keys.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetLicenseKeysOpts struct

Name Type Description Notes
fields optional.String

Return type

LicenseKeys

Authorization

No authorization required

HTTP request headers

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

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

GetLicensingData

LicensingData GetLicensingData(ctx, optional) Get the licensing data.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetLicensingDataOpts struct

Name Type Description Notes
fields optional.String

Return type

LicensingData

Authorization

No authorization required

HTTP request headers

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

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

GetServerField

string GetServerField(ctx, field) Get a field of the server info.

Required Parameters

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

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

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

GetServerInfo

Server GetServerInfo(ctx, optional) Get the server info.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetServerInfoOpts struct

Name Type Description Notes
fields optional.String

Return type

Server

Authorization

No authorization required

HTTP request headers

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

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

GetZippedFileOfServer

GetZippedFileOfServer(ctx, path, areaId, optional) Get specific file zipped.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a GetZippedFileOfServerOpts struct

Name Type Description Notes

basePath | optional.String| | locator | optional.String| | name | optional.String| |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

StartBackup

string StartBackup(ctx, optional) Start a new backup.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a StartBackupOpts struct

Name Type Description Notes
fileName optional.String
addTimestamp optional.Bool
includeConfigs optional.Bool
includeDatabase optional.Bool
includeBuildLogs optional.Bool
includePersonalChanges optional.Bool
includeRunningBuilds optional.Bool
includeSupplimentaryData optional.Bool

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

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