File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
pkg/internal/cyberark/servicediscovery Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export CLOUDSDK_COMPUTE_ZONE= # the GCP zone where a GKE cluster will be created
1414export CLUSTER_NAME= # the name of the GKE cluster which will be created. E.g. cluster-1
1515
1616# The following variables are required for CyberArk / MachineHub integration tests.
17- export ARK_SUBDOMAIN= # your CyberArk tenant subdomain
17+ export ARK_SUBDOMAIN= # your CyberArk tenant subdomain e.g. tlskp-test
1818export ARK_USERNAME= # your CyberArk username
1919export ARK_SECRET= # your CyberArk password
2020# OPTIONAL: the URL for the CyberArk Discovery API if not using the production environment
Original file line number Diff line number Diff line change @@ -57,14 +57,14 @@ func New(httpClient *http.Client) *Client {
5757// DiscoveryResponse represents the full JSON response returned by the CyberArk api/tenant-discovery/public API
5858// The API is documented here https://ca-il-confluence.il.cyber-ark.com/spaces/EV/pages/575618345/Updated+PD+APIs+doc
5959type DiscoveryResponse struct {
60- Region string `json:"region"`
61- DRRegion string `json:"dr_region"`
62- Subdomain string `json:"subdomain"`
63- PlatformID string `json:"platform_id"`
64- IdentityID string `json:"identity_id"`
65- DefaultURL string `json:"default_url"`
66- TenantFlags map [string ]string `json:"tenant_flags"`
67- Services []Service `json:"services"`
60+ Region string `json:"region"`
61+ DRRegion string `json:"dr_region"`
62+ Subdomain string `json:"subdomain"`
63+ PlatformID string `json:"platform_id"`
64+ IdentityID string `json:"identity_id"`
65+ DefaultURL string `json:"default_url"`
66+ TenantFlags map [string ]interface {} `json:"tenant_flags"`
67+ Services []Service `json:"services"`
6868}
6969
7070type Service struct {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ To get the original data:
66
77NOTE: This API is not implemented yet as of 02.09.2025 but is expected to be finalised by end of PI3 2025.
88``` bash
9- curl -fsSL " ${ARK_DISCOVERY_API} /api/public/tenant-discovery ?bySubdomain=${ARK_SUBDOMAIN} " | jq
9+ curl -fsSL " ${ARK_DISCOVERY_API} ?bySubdomain=${ARK_SUBDOMAIN} " | jq
1010```
1111
1212Then replace ` identity_administration.api ` with ` {{ .Identity.API }} ` and
You can’t perform that action at this time.
0 commit comments