/sdks/js/http_client/v1/docs/ConnectionsV1Api.md
https://github.com/polyaxon/polyaxon · Markdown · 394 lines · 277 code · 117 blank · 0 comment · 0 complexity · aec3d5e196be9d79b408132504fd518a MD5 · raw file
- # PolyaxonSdk.ConnectionsV1Api
- Polyaxon sdk
- All URIs are relative to *http://localhost*
- Method | HTTP request | Description
- ------------- | ------------- | -------------
- [**createConnection**](ConnectionsV1Api.md#createConnection) | **POST** /api/v1/orgs/{owner}/connections | Create connection
- [**deleteConnection**](ConnectionsV1Api.md#deleteConnection) | **DELETE** /api/v1/orgs/{owner}/connections/{uuid} | Delete connection
- [**getConnection**](ConnectionsV1Api.md#getConnection) | **GET** /api/v1/orgs/{owner}/connections/{uuid} | Get connection
- [**listConnectionNames**](ConnectionsV1Api.md#listConnectionNames) | **GET** /api/v1/orgs/{owner}/connections/names | List connections names
- [**listConnections**](ConnectionsV1Api.md#listConnections) | **GET** /api/v1/orgs/{owner}/connections | List connections
- [**patchConnection**](ConnectionsV1Api.md#patchConnection) | **PATCH** /api/v1/orgs/{owner}/connections/{connection.uuid} | Patch connection
- [**updateConnection**](ConnectionsV1Api.md#updateConnection) | **PUT** /api/v1/orgs/{owner}/connections/{connection.uuid} | Update connection
- ## createConnection
- > V1ConnectionResponse createConnection(owner, body)
- Create connection
- ### Example
- ```javascript
- import PolyaxonSdk from 'polyaxon-sdk';
- let defaultClient = PolyaxonSdk.ApiClient.instance;
- // Configure API key authorization: ApiKey
- let ApiKey = defaultClient.authentications['ApiKey'];
- ApiKey.apiKey = 'YOUR API KEY';
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //ApiKey.apiKeyPrefix = 'Token';
- let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
- let owner = "owner_example"; // String | Owner of the namespace
- let body = new PolyaxonSdk.V1ConnectionResponse(); // V1ConnectionResponse | Connection body
- apiInstance.createConnection(owner, body, (error, data, response) => {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
- });
- ```
- ### Parameters
- Name | Type | Description | Notes
- ------------- | ------------- | ------------- | -------------
- **owner** | **String**| Owner of the namespace |
- **body** | [**V1ConnectionResponse**](V1ConnectionResponse.md)| Connection body |
- ### Return type
- [**V1ConnectionResponse**](V1ConnectionResponse.md)
- ### Authorization
- [ApiKey](../README.md#ApiKey)
- ### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
- ## deleteConnection
- > deleteConnection(owner, uuid)
- Delete connection
- ### Example
- ```javascript
- import PolyaxonSdk from 'polyaxon-sdk';
- let defaultClient = PolyaxonSdk.ApiClient.instance;
- // Configure API key authorization: ApiKey
- let ApiKey = defaultClient.authentications['ApiKey'];
- ApiKey.apiKey = 'YOUR API KEY';
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //ApiKey.apiKeyPrefix = 'Token';
- let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
- let owner = "owner_example"; // String | Owner of the namespace
- let uuid = "uuid_example"; // String | Uuid identifier of the entity
- apiInstance.deleteConnection(owner, uuid, (error, data, response) => {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully.');
- }
- });
- ```
- ### Parameters
- Name | Type | Description | Notes
- ------------- | ------------- | ------------- | -------------
- **owner** | **String**| Owner of the namespace |
- **uuid** | **String**| Uuid identifier of the entity |
- ### Return type
- null (empty response body)
- ### Authorization
- [ApiKey](../README.md#ApiKey)
- ### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
- ## getConnection
- > V1ConnectionResponse getConnection(owner, uuid)
- Get connection
- ### Example
- ```javascript
- import PolyaxonSdk from 'polyaxon-sdk';
- let defaultClient = PolyaxonSdk.ApiClient.instance;
- // Configure API key authorization: ApiKey
- let ApiKey = defaultClient.authentications['ApiKey'];
- ApiKey.apiKey = 'YOUR API KEY';
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //ApiKey.apiKeyPrefix = 'Token';
- let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
- let owner = "owner_example"; // String | Owner of the namespace
- let uuid = "uuid_example"; // String | Uuid identifier of the entity
- apiInstance.getConnection(owner, uuid, (error, data, response) => {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
- });
- ```
- ### Parameters
- Name | Type | Description | Notes
- ------------- | ------------- | ------------- | -------------
- **owner** | **String**| Owner of the namespace |
- **uuid** | **String**| Uuid identifier of the entity |
- ### Return type
- [**V1ConnectionResponse**](V1ConnectionResponse.md)
- ### Authorization
- [ApiKey](../README.md#ApiKey)
- ### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
- ## listConnectionNames
- > V1ListConnectionsResponse listConnectionNames(owner, opts)
- List connections names
- ### Example
- ```javascript
- import PolyaxonSdk from 'polyaxon-sdk';
- let defaultClient = PolyaxonSdk.ApiClient.instance;
- // Configure API key authorization: ApiKey
- let ApiKey = defaultClient.authentications['ApiKey'];
- ApiKey.apiKey = 'YOUR API KEY';
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //ApiKey.apiKeyPrefix = 'Token';
- let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
- let owner = "owner_example"; // String | Owner of the namespace
- let opts = {
- 'offset': 56, // Number | Pagination offset.
- 'limit': 56, // Number | Limit size.
- 'sort': "sort_example", // String | Sort to order the search.
- 'query': "query_example" // String | Query filter the search search.
- };
- apiInstance.listConnectionNames(owner, opts, (error, data, response) => {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
- });
- ```
- ### Parameters
- Name | Type | Description | Notes
- ------------- | ------------- | ------------- | -------------
- **owner** | **String**| Owner of the namespace |
- **offset** | **Number**| Pagination offset. | [optional]
- **limit** | **Number**| Limit size. | [optional]
- **sort** | **String**| Sort to order the search. | [optional]
- **query** | **String**| Query filter the search search. | [optional]
- ### Return type
- [**V1ListConnectionsResponse**](V1ListConnectionsResponse.md)
- ### Authorization
- [ApiKey](../README.md#ApiKey)
- ### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
- ## listConnections
- > V1ListConnectionsResponse listConnections(owner, opts)
- List connections
- ### Example
- ```javascript
- import PolyaxonSdk from 'polyaxon-sdk';
- let defaultClient = PolyaxonSdk.ApiClient.instance;
- // Configure API key authorization: ApiKey
- let ApiKey = defaultClient.authentications['ApiKey'];
- ApiKey.apiKey = 'YOUR API KEY';
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //ApiKey.apiKeyPrefix = 'Token';
- let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
- let owner = "owner_example"; // String | Owner of the namespace
- let opts = {
- 'offset': 56, // Number | Pagination offset.
- 'limit': 56, // Number | Limit size.
- 'sort': "sort_example", // String | Sort to order the search.
- 'query': "query_example" // String | Query filter the search search.
- };
- apiInstance.listConnections(owner, opts, (error, data, response) => {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
- });
- ```
- ### Parameters
- Name | Type | Description | Notes
- ------------- | ------------- | ------------- | -------------
- **owner** | **String**| Owner of the namespace |
- **offset** | **Number**| Pagination offset. | [optional]
- **limit** | **Number**| Limit size. | [optional]
- **sort** | **String**| Sort to order the search. | [optional]
- **query** | **String**| Query filter the search search. | [optional]
- ### Return type
- [**V1ListConnectionsResponse**](V1ListConnectionsResponse.md)
- ### Authorization
- [ApiKey](../README.md#ApiKey)
- ### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
- ## patchConnection
- > V1ConnectionResponse patchConnection(owner, connection_uuid, body)
- Patch connection
- ### Example
- ```javascript
- import PolyaxonSdk from 'polyaxon-sdk';
- let defaultClient = PolyaxonSdk.ApiClient.instance;
- // Configure API key authorization: ApiKey
- let ApiKey = defaultClient.authentications['ApiKey'];
- ApiKey.apiKey = 'YOUR API KEY';
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //ApiKey.apiKeyPrefix = 'Token';
- let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
- let owner = "owner_example"; // String | Owner of the namespace
- let connection_uuid = "connection_uuid_example"; // String | UUID
- let body = new PolyaxonSdk.V1ConnectionResponse(); // V1ConnectionResponse | Connection body
- apiInstance.patchConnection(owner, connection_uuid, body, (error, data, response) => {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
- });
- ```
- ### Parameters
- Name | Type | Description | Notes
- ------------- | ------------- | ------------- | -------------
- **owner** | **String**| Owner of the namespace |
- **connection_uuid** | **String**| UUID |
- **body** | [**V1ConnectionResponse**](V1ConnectionResponse.md)| Connection body |
- ### Return type
- [**V1ConnectionResponse**](V1ConnectionResponse.md)
- ### Authorization
- [ApiKey](../README.md#ApiKey)
- ### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
- ## updateConnection
- > V1ConnectionResponse updateConnection(owner, connection_uuid, body)
- Update connection
- ### Example
- ```javascript
- import PolyaxonSdk from 'polyaxon-sdk';
- let defaultClient = PolyaxonSdk.ApiClient.instance;
- // Configure API key authorization: ApiKey
- let ApiKey = defaultClient.authentications['ApiKey'];
- ApiKey.apiKey = 'YOUR API KEY';
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //ApiKey.apiKeyPrefix = 'Token';
- let apiInstance = new PolyaxonSdk.ConnectionsV1Api();
- let owner = "owner_example"; // String | Owner of the namespace
- let connection_uuid = "connection_uuid_example"; // String | UUID
- let body = new PolyaxonSdk.V1ConnectionResponse(); // V1ConnectionResponse | Connection body
- apiInstance.updateConnection(owner, connection_uuid, body, (error, data, response) => {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
- });
- ```
- ### Parameters
- Name | Type | Description | Notes
- ------------- | ------------- | ------------- | -------------
- **owner** | **String**| Owner of the namespace |
- **connection_uuid** | **String**| UUID |
- **body** | [**V1ConnectionResponse**](V1ConnectionResponse.md)| Connection body |
- ### Return type
- [**V1ConnectionResponse**](V1ConnectionResponse.md)
- ### Authorization
- [ApiKey](../README.md#ApiKey)
- ### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json