Skip to content

Latest commit

 

History

History
75 lines (45 loc) · 2.51 KB

ConnectionComponentsApi.md

File metadata and controls

75 lines (45 loc) · 2.51 KB

\ConnectionComponentsApi

All URIs are relative to https://localhost/PasswordVault

Method HTTP request Description
ConnectionComponentsImport Post /api/ConnectionComponents/import

ConnectionComponentsImport

ImportConnectionComponentResponse ConnectionComponentsImport(ctx).ImportConnectionComponent(importConnectionComponent).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    importConnectionComponent := *openapiclient.NewImportConnectionComponentData(string(123)) // ImportConnectionComponentData | The ZIP file containing the connection component and additional configuration parameters.

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ConnectionComponentsApi.ConnectionComponentsImport(context.Background()).ImportConnectionComponent(importConnectionComponent).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ConnectionComponentsApi.ConnectionComponentsImport``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ConnectionComponentsImport`: ImportConnectionComponentResponse
    fmt.Fprintf(os.Stdout, "Response from `ConnectionComponentsApi.ConnectionComponentsImport`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiConnectionComponentsImportRequest struct via the builder pattern

Name Type Description Notes
importConnectionComponent ImportConnectionComponentData The ZIP file containing the connection component and additional configuration parameters.

Return type

ImportConnectionComponentResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, multipart/form-data, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml, multipart/form-data, application/vnd.cyberark.api+json

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