All URIs are relative to https://localhost/PasswordVault
Method | HTTP request | Description |
---|---|---|
AllowedReferrerConfigurationAddAllowedReferrer | Post /api/Configuration/AccessRestriction/AllowedReferrers | |
AllowedReferrerConfigurationGetAllAllowedReferrers | Get /api/Configuration/AccessRestriction/AllowedReferrers |
AllowedReferrerDto AllowedReferrerConfigurationAddAllowedReferrer(ctx).Item(item).Execute()
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)
}
Other parameters are passed through a pointer to a apiAllowedReferrerConfigurationAddAllowedReferrerRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
item | AllowedReferrerDto |
No authorization required
- 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]
[]AllowedReferrerDto AllowedReferrerConfigurationGetAllAllowedReferrers(ctx).Execute()
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)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiAllowedReferrerConfigurationGetAllAllowedReferrersRequest struct via the builder pattern
No authorization required
- 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]