pracredential

package
v2.61.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CredentialMove added in v2.61.0

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

func Delete added in v2.61.0

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

func Update added in v2.61.0

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

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"`
}

func Create added in v2.61.0

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

func Get added in v2.61.0

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

func GetAll added in v2.61.0

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

func GetByName added in v2.61.0

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

Jump to

Keyboard shortcuts

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