Skip to content

Commit 9dee01f

Browse files
authored
feat(iam): add max_api_key_expiration_duration to OrganizationSecuritySettings (scaleway#2784)
1 parent 12b7dd9 commit 9dee01f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/iam/v1alpha1/iam_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,6 +2575,9 @@ type OrganizationSecuritySettings struct {
25752575

25762576
// MaxLoginSessionDuration: maximum duration a login session will stay active before needing to relogin.
25772577
MaxLoginSessionDuration *scw.Duration `json:"max_login_session_duration"`
2578+
2579+
// MaxAPIKeyExpirationDuration: maximum duration the `expires_at` field of an API key can represent. A value of 0 means there is no maximum duration.
2580+
MaxAPIKeyExpirationDuration *scw.Duration `json:"max_api_key_expiration_duration"`
25782581
}
25792582

25802583
// ParseSamlMetadataRequest: parse saml metadata request.
@@ -2748,6 +2751,9 @@ type UpdateOrganizationSecuritySettingsRequest struct {
27482751

27492752
// MaxLoginSessionDuration: maximum duration a login session will stay active before needing to relogin.
27502753
MaxLoginSessionDuration *scw.Duration `json:"max_login_session_duration,omitempty"`
2754+
2755+
// MaxAPIKeyExpirationDuration: maximum duration the `expires_at` field of an API key can represent. A value of 0 means there is no maximum duration.
2756+
MaxAPIKeyExpirationDuration *scw.Duration `json:"max_api_key_expiration_duration,omitempty"`
27512757
}
27522758

27532759
// UpdatePolicyRequest: update policy request.

0 commit comments

Comments
 (0)