Skip to content

Latest commit

 

History

History
137 lines (83 loc) · 4.25 KB

AllowedReferrerConfigurationApi.md

File metadata and controls

137 lines (83 loc) · 4.25 KB

\AllowedReferrerConfigurationApi

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

Method HTTP request Description
AllowedReferrerConfigurationAddAllowedReferrer Post /api/Configuration/AccessRestriction/AllowedReferrers
AllowedReferrerConfigurationGetAllAllowedReferrers Get /api/Configuration/AccessRestriction/AllowedReferrers

AllowedReferrerConfigurationAddAllowedReferrer

AllowedReferrerDto AllowedReferrerConfigurationAddAllowedReferrer(ctx).Item(item).Execute()

Example

package main

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

func main() {
    item := *openapiclient.NewAllowedReferrerDto("ReferrerURL_example") // AllowedReferrerDto | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
item AllowedReferrerDto

Return type

AllowedReferrerDto

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]

AllowedReferrerConfigurationGetAllAllowedReferrers

[]AllowedReferrerDto AllowedReferrerConfigurationGetAllAllowedReferrers(ctx).Execute()

Example

package main

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

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]AllowedReferrerDto

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • 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]