github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/apiservice/authentication_policy_properties.go (about)

     1  /* Copyright © 2017 VMware, Inc. All Rights Reserved.
     2     SPDX-License-Identifier: BSD-2-Clause
     3  
     4     Generated by: https://github.com/swagger-api/swagger-codegen.git */
     5  
     6  package apiservice
     7  
     8  import (
     9  	"github.com/vmware/go-vmware-nsxt/common"
    10  )
    11  
    12  type AuthenticationPolicyProperties struct {
    13  
    14  	// The server will populate this field when returing the resource. Ignored on PUT and POST.
    15  	Links []common.ResourceLink `json:"_links,omitempty"`
    16  
    17  	Schema string `json:"_schema,omitempty"`
    18  
    19  	Self *common.SelfResourceLink `json:"_self,omitempty"`
    20  
    21  	// Once a lockout occurs, the account remains locked out of the API for this time period. Only applies to NSX Manager nodes. Ignored on other node types.
    22  	ApiFailedAuthLockoutPeriod int64 `json:"api_failed_auth_lockout_period,omitempty"`
    23  
    24  	// In order to trigger an account lockout, all authentication failures must occur in this time window. If the reset period expires, the failed login count is reset to zero. Only applies to NSX Manager nodes. Ignored on other node types.
    25  	ApiFailedAuthResetPeriod int64 `json:"api_failed_auth_reset_period,omitempty"`
    26  
    27  	// Only applies to NSX Manager nodes. Ignored on other node types.
    28  	ApiMaxAuthFailures int64 `json:"api_max_auth_failures,omitempty"`
    29  
    30  	// Once a lockout occurs, the account remains locked out of the CLI for this time period.
    31  	CliFailedAuthLockoutPeriod int64 `json:"cli_failed_auth_lockout_period,omitempty"`
    32  
    33  	// Number of authentication failures that trigger CLI lockout
    34  	CliMaxAuthFailures int64 `json:"cli_max_auth_failures,omitempty"`
    35  
    36  	// Minimum number of characters required in account passwords
    37  	MinimumPasswordLength int64 `json:"minimum_password_length,omitempty"`
    38  }