pracredential

package
v2.5.21 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	// The unique identifier of the privileged credential
	ID string `json:"id,omitempty"`

	//The name of the privileged credential.
	Name string `json:"name,omitempty"`

	// The description of the privileged credential.
	Description string `json:"description,omitempty"`

	// The time the privileged credential was last reset.
	LastCredentialResetTime string `json:"lastCredentialResetTime,omitempty"`

	// The protocol type that was designated for that particular privileged credential.
	// The protocol type options are SSH, RDP, and VNC. Each protocol type has its own credential requirements.
	CredentialType string `json:"credentialType,omitempty"`

	// The password that is used to protect the SSH private key. This field is optional.
	Passphrase string `json:"passphrase,omitempty"`

	// The password associated with the username for the login you want to use for the privileged credential.
	Password string `json:"password,omitempty"`

	// The SSH private key associated with the username for the login you want to use for the privileged credential.
	PrivateKey string `json:"privateKey,omitempty"`

	// The domain name associated with the username.
	// You can also include the domain name as part of the username.
	// The domain name only needs to be specified with logging in to an RDP console that is connected to an Active Directory Domain.
	UserDomain string `json:"userDomain,omitempty"`

	// The username for the login you want to use for the privileged credential.
	UserName string `json:"userName,omitempty"`

	// The time the privileged credential is created.
	CreationTime string `json:"creationTime,omitempty"`

	// The unique identifier of the tenant who modified the privileged credential.
	ModifiedBy string `json:"modifiedBy,omitempty"`

	// The time the privileged credential is modified.
	ModifiedTime string `json:"modifiedTime,omitempty"`

	// The unique identifier of the Microtenant for the ZPA tenant.
	// If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant.
	// Pass microtenantId as null to retrieve data from all customers associated with the tenant.
	MicroTenantID string `json:"microtenantId,omitempty"`

	// The name of the Microtenant.
	MicroTenantName string `json:"microtenantName,omitempty"`

	// The unique identifier of the target Microtenant that the privileged credential is being moved to.
	TargetMicrotenantId string `json:"targetMicrotenantId,omitempty"`
}

type Service

type Service struct {
	Client *zpa.Client
	// contains filtered or unexported fields
}

func New

func New(c *zpa.Client) *Service

func (*Service) Create

func (service *Service) Create(credential *Credential) (*Credential, *http.Response, error)

func (*Service) CredentialMove

func (service *Service) CredentialMove(credentialID string, targetMicrotenantId string) (*http.Response, error)

func (*Service) Delete

func (service *Service) Delete(credentialID string) (*http.Response, error)

func (*Service) Get

func (service *Service) Get(credentialID string) (*Credential, *http.Response, error)

func (*Service) GetAll

func (service *Service) GetAll() ([]Credential, *http.Response, error)

func (*Service) GetByName

func (service *Service) GetByName(credentialName string) (*Credential, *http.Response, error)

func (*Service) Update

func (service *Service) Update(credentialID string, credentialRequest *Credential) (*http.Response, error)

func (*Service) WithMicroTenant

func (service *Service) WithMicroTenant(microTenantID string) *Service

Jump to

Keyboard shortcuts

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