sca

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package sca provides the CyberArk SCA Access API client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceConfig

func ServiceConfig() services.IdsecServiceConfig

ServiceConfig returns the configuration for the SCA Access Service. It specifies the service name "sca-access" and requires the "isp" authenticator.

Types

type SCAAccessService

type SCAAccessService struct {
	services.IdsecService
	*services.IdsecBaseService
	// contains filtered or unexported fields
}

SCAAccessService provides access to SCA API endpoints.

func NewSCAAccessService

func NewSCAAccessService(authenticators ...auth.IdsecAuth) (*SCAAccessService, error)

NewSCAAccessService creates a new SCA Access Service instance. It follows the SDK service pattern with ISP authentication.

func NewSCAAccessServiceWithClient

func NewSCAAccessServiceWithClient(client httpClient) *SCAAccessService

NewSCAAccessServiceWithClient creates a service with a custom HTTP client. This is primarily for testing with mock clients.

func (*SCAAccessService) Elevate

Elevate requests JIT elevation for the specified targets. POST /api/access/elevate

func (*SCAAccessService) ElevateGroups added in v0.3.0

ElevateGroups requests JIT elevation for the specified Entra ID groups. POST /api/access/elevate/groups

func (*SCAAccessService) ListEligibility

func (s *SCAAccessService) ListEligibility(ctx context.Context, csp models.CSP) (*models.EligibilityResponse, error)

ListEligibility retrieves all eligible targets for the specified CSP, automatically paginating through all pages via nextToken. GET /api/access/{CSP}/eligibility

func (*SCAAccessService) ListGroupsEligibility added in v0.3.0

func (s *SCAAccessService) ListGroupsEligibility(ctx context.Context, csp models.CSP) (*models.GroupsEligibilityResponse, error)

ListGroupsEligibility retrieves all eligible Entra ID groups for the specified CSP, automatically paginating through all pages via nextToken. GET /api/access/{CSP}/eligibility/groups

func (*SCAAccessService) ListOnDemandResources added in v0.7.0

func (s *SCAAccessService) ListOnDemandResources(ctx context.Context, req models.OnDemandRequest) ([]models.OnDemandResource, error)

ListOnDemandResources fetches the list of roles available for on-demand access for the given workspace. Dispatches on PlatformName: azure_ad and aws use GET /api/cloud/resources/ondemand, azure_resource uses POST /api/cloud/cloud-roles/ondemand with a body including resourceType and ancestors.

func (*SCAAccessService) ListSessions

func (s *SCAAccessService) ListSessions(ctx context.Context, csp *models.CSP) (*models.SessionsResponse, error)

ListSessions retrieves all active elevated sessions, optionally filtered by CSP, automatically paginating through all pages via nextToken. GET /api/access/sessions

func (*SCAAccessService) RevokeSessions added in v0.3.0

RevokeSessions revokes one or more active sessions by their IDs. POST /api/access/sessions/revoke

func (*SCAAccessService) ServiceConfig

func (s *SCAAccessService) ServiceConfig() services.IdsecServiceConfig

ServiceConfig returns the service configuration.

Directories

Path Synopsis
Package models defines SCA API request and response types.
Package models defines SCA API request and response types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL