openapi: 3.2.0 info: title: Sumo Logic Password Policy API description: '# Getting Started Welcome to the Sumo Logic API reference.' version: 1.0.0 x-logo: url: ./sumologic_logo.png servers: - url: https://api.au.sumologic.com/api/ description: AU deployment API server - url: https://api.ca.sumologic.com/api/ description: CA deployment API server - url: https://api.de.sumologic.com/api/ description: DE deployment API server - url: https://api.eu.sumologic.com/api/ description: EU deployment API server - url: https://api.fed.sumologic.com/api/ description: FED deployment API server - url: https://api.jp.sumologic.com/api/ description: JP deployment API server - url: https://api.kr.sumologic.com/api/ description: KR deployment API server - url: https://api.in.sumologic.com/api/ description: IN deployment API server - url: https://api.sumologic.com/api/ description: US1 deployment API server - url: https://api.us2.sumologic.com/api/ description: US2 deployment API server security: - basicAuth: [] tags: - name: Password Policy description: 'Password Policy Management API The password policy controls how user passwords are managed. The "Manage Password Policy" role capability is required to update the password policy. For more information, see how to set a password policy.' x-displayName: Password Policy paths: /v1/passwordPolicy: get: tags: - Password Policy summary: Get The Current Password Policy description: Get the current password policy. operationId: getPasswordPolicy parameters: [] responses: '200': description: The current password policy. content: application/json: schema: $ref: '#/components/schemas/PasswordPolicy' default: description: Operation failed with an error. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' put: tags: - Password Policy summary: Update Password Policy description: Update the current password policy. operationId: setPasswordPolicy parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/PasswordPolicy' required: true responses: '200': description: Password Policy set successfully. content: application/json: schema: $ref: '#/components/schemas/PasswordPolicy' default: description: Setting the password policy failed with an error. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' components: schemas: ErrorResponse: required: - errors - id type: object properties: id: type: string description: An identifier for the error; this is unique to the specific API request. example: IUUQI-DGH5I-TJ045 errors: type: array description: A list of one or more causes of the error. example: - code: auth:password_too_short message: Your password was too short. - code: auth:password_character_classes message: Your password did not contain any non-alphanumeric characters items: $ref: '#/components/schemas/ErrorDescription' ErrorDescription: required: - code - message type: object properties: code: type: string description: An error code describing the type of error. example: auth:password_too_short message: type: string description: A short English-language description of the error. example: Your password was too short. detail: type: string description: An optional fuller English-language description of the error. example: Your password was 5 characters long, the minimum length is 12 characters. See http://example.com/password for more information. meta: type: object description: An optional list of metadata about the error. example: minLength: 12 actualLength: 5 PasswordPolicy: type: object properties: minLength: maximum: 128 minimum: 8 type: integer description: The minimum length of the password. format: int32 example: 8 default: 8 maxLength: maximum: 128 minimum: 128 type: integer description: The maximum length of the password. (Setting this to any value other than 128 is no longer supported; this field may be deprecated in the future.) format: int32 example: 128 default: 128 mustContainLowercase: type: boolean description: If the password must contain lower case characters. example: true default: true mustContainUppercase: type: boolean description: If the password must contain upper case characters. example: true default: true mustContainDigits: type: boolean description: If the password must contain digits. example: true default: true mustContainSpecialChars: type: boolean description: If the password must contain special characters. example: true default: true maxPasswordAgeInDays: maximum: 365 minimum: -1 type: integer description: Maximum number of days that a password can be used before user is required to change it. Put -1 if the user should not have to change their password. format: int32 example: 365 default: 365 minUniquePasswords: maximum: 12 minimum: 4 type: integer description: The minimum number of unique new passwords that a user must use before an old password can be reused. format: int32 example: 10 default: 10 accountLockoutThreshold: maximum: 10 minimum: 3 type: integer description: Number of failed login attempts allowed before account is locked-out. format: int32 example: 6 default: 6 failedLoginResetDurationInMins: maximum: 10 minimum: 1 type: integer description: The duration of time in minutes that must elapse from the first failed login attempt after which failed login count is reset to 0. format: int32 example: 10 default: 10 accountLockoutDurationInMins: maximum: 120 minimum: 30 type: integer description: The duration of time in minutes that a locked-out account remained locked before getting unlocked automatically. format: int32 example: 30 default: 30 requireMfa: type: boolean description: If MFA should be required to log in. By default, this field is set to `false`. example: false default: false rememberMfa: type: boolean description: If MFA should be remembered on the browser. example: true default: true disallowWeakPasswords: type: boolean description: If weak passwords should be disallowed. By default, this field is set to `false`. example: false default: false description: Password Policy securitySchemes: basicAuth: type: http scheme: basic x-tagGroups: - name: Archive Management tags: - archiveManagement - name: Health Events tags: - healthEvents - name: Infrequent Data Tier tags: - logSearchesEstimatedUsage - name: Ingest Budgets Management V2 tags: - ingestBudgetManagementV2 - name: Library Management tags: - appManagement - appManagementV2 - contentManagement - dashboardManagement - folderManagement - lookupManagement - contentPermissions - logSearchesManagement - parsersLibraryManagement - name: Metrics tags: - metricsSearchesManagement - transformationRuleManagement - metricsQuery - metricsSearchesManagementV2 - name: Security Management tags: - accessKeyManagement - oauthManagement - accountManagement - passwordPolicy - policiesManagement - samlConfigurationManagement - serviceAllowlistManagement - serviceAccountManagement - scimUserManagement - name: Organizations Management tags: - orgsManagement - name: Settings Management tags: - connectionManagement - dynamicParsingRuleManagement - extractionRuleManagement - fieldManagementV1 - partitionManagement - scheduledViewManagement - logsDataForwardingManagement - dataDeletionRules - name: Tokens Management tags: - tokensLibraryManagement - name: Tracing tags: - traces - spanAnalytics - serviceMap - name: Users and Roles Management tags: - roleManagement - roleManagementV2 - userManagement - name: Threat Intel Ingest Management tags: - threatIntelIngest - threatIntelIngestProducer - name: OpenTelemetry Collector Management tags: - otCollectorManagementExternal - name: Source Template Management tags: - sourceTemplateManagementExternal - name: Schema Base Management tags: - schemaBaseManagement - name: Event Analytics Management tags: - eventAnalytics - name: Budget Management tags: - budgetManagement - name: Macro Management tags: - macroManagement - name: Muting Schedules Management tags: - mutingSchedulesLibraryManagement - name: SLO Management tags: - slosLibraryManagement - name: Monitor Management tags: - monitorsLibraryManagement