Skip to content

Commit 891b212

Browse files
feat: new access method for pam
1 parent 9ef9396 commit 891b212

File tree

6 files changed

+435
-143
lines changed

6 files changed

+435
-143
lines changed

packages/api/model.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ type RegisterGatewayResponse struct {
789789
type PAMAccessRequest struct {
790790
Duration string `json:"duration,omitempty"`
791791
AccountPath string `json:"accountPath,omitempty"`
792+
ResourceName string `json:"resourceName,omitempty"`
793+
AccountName string `json:"accountName,omitempty"`
792794
ProjectId string `json:"projectId,omitempty"`
793795
MfaSessionId string `json:"mfaSessionId,omitempty"`
794796
}
@@ -807,7 +809,9 @@ type PAMAccessResponse struct {
807809
}
808810

809811
type PAMAccessApprovalRequestPayloadRequestData struct {
810-
AccountPath string `json:"accountPath"`
812+
AccountPath string `json:"accountPath,omitempty"`
813+
ResourceName string `json:"resourceName,omitempty"`
814+
AccountName string `json:"accountName,omitempty"`
811815
AccessDuration string `json:"accessDuration"`
812816
}
813817

0 commit comments

Comments
 (0)