1. Packages
  2. Cisco Meraki
  3. API Docs
  4. organizations
  5. getLoginSecurity
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.organizations.getLoginSecurity

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = meraki.organizations.getLoginSecurity({
        organizationId: "string",
    });
    export const merakiOrganizationsLoginSecurityExample = example.then(example => example.item);
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.organizations.get_login_security(organization_id="string")
    pulumi.export("merakiOrganizationsLoginSecurityExample", example.item)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/organizations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := organizations.LookupLoginSecurity(ctx, &organizations.LookupLoginSecurityArgs{
    			OrganizationId: "string",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiOrganizationsLoginSecurityExample", example.Item)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Meraki.Organizations.GetLoginSecurity.Invoke(new()
        {
            OrganizationId = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiOrganizationsLoginSecurityExample"] = example.Apply(getLoginSecurityResult => getLoginSecurityResult.Item),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.organizations.OrganizationsFunctions;
    import com.pulumi.meraki.organizations.inputs.GetLoginSecurityArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = OrganizationsFunctions.getLoginSecurity(GetLoginSecurityArgs.builder()
                .organizationId("string")
                .build());
    
            ctx.export("merakiOrganizationsLoginSecurityExample", example.applyValue(getLoginSecurityResult -> getLoginSecurityResult.item()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: meraki:organizations:getLoginSecurity
          Arguments:
            organizationId: string
    outputs:
      merakiOrganizationsLoginSecurityExample: ${example.item}
    

    Using getLoginSecurity

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLoginSecurity(args: GetLoginSecurityArgs, opts?: InvokeOptions): Promise<GetLoginSecurityResult>
    function getLoginSecurityOutput(args: GetLoginSecurityOutputArgs, opts?: InvokeOptions): Output<GetLoginSecurityResult>
    def get_login_security(organization_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetLoginSecurityResult
    def get_login_security_output(organization_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetLoginSecurityResult]
    func LookupLoginSecurity(ctx *Context, args *LookupLoginSecurityArgs, opts ...InvokeOption) (*LookupLoginSecurityResult, error)
    func LookupLoginSecurityOutput(ctx *Context, args *LookupLoginSecurityOutputArgs, opts ...InvokeOption) LookupLoginSecurityResultOutput

    > Note: This function is named LookupLoginSecurity in the Go SDK.

    public static class GetLoginSecurity 
    {
        public static Task<GetLoginSecurityResult> InvokeAsync(GetLoginSecurityArgs args, InvokeOptions? opts = null)
        public static Output<GetLoginSecurityResult> Invoke(GetLoginSecurityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoginSecurityResult> getLoginSecurity(GetLoginSecurityArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: meraki:organizations/getLoginSecurity:getLoginSecurity
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrganizationId string
    organizationId path parameter. Organization ID
    OrganizationId string
    organizationId path parameter. Organization ID
    organizationId String
    organizationId path parameter. Organization ID
    organizationId string
    organizationId path parameter. Organization ID
    organization_id str
    organizationId path parameter. Organization ID
    organizationId String
    organizationId path parameter. Organization ID

    getLoginSecurity Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetLoginSecurityItem
    OrganizationId string
    organizationId path parameter. Organization ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetLoginSecurityItem
    OrganizationId string
    organizationId path parameter. Organization ID
    id String
    The provider-assigned unique ID for this managed resource.
    item GetLoginSecurityItem
    organizationId String
    organizationId path parameter. Organization ID
    id string
    The provider-assigned unique ID for this managed resource.
    item GetLoginSecurityItem
    organizationId string
    organizationId path parameter. Organization ID
    id str
    The provider-assigned unique ID for this managed resource.
    item GetLoginSecurityItem
    organization_id str
    organizationId path parameter. Organization ID
    id String
    The provider-assigned unique ID for this managed resource.
    item Property Map
    organizationId String
    organizationId path parameter. Organization ID

    Supporting Types

    GetLoginSecurityItem

    AccountLockoutAttempts int
    Number of consecutive failed login attempts after which users' accounts will be locked.
    ApiAuthentication GetLoginSecurityItemApiAuthentication
    Details for indicating whether organization will restrict access to API (but not Dashboard) to certain IP addresses.
    EnforceAccountLockout bool
    Boolean indicating whether users' Dashboard accounts will be locked out after a specified number of consecutive failed login attempts.
    EnforceDifferentPasswords bool
    Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords.
    EnforceIdleTimeout bool
    Boolean indicating whether users will be logged out after being idle for the specified number of minutes.
    EnforceLoginIpRanges bool
    Boolean indicating whether organization will restrict access to Dashboard (including the API) from certain IP addresses.
    EnforcePasswordExpiration bool
    Boolean indicating whether users are forced to change their password every X number of days.
    EnforceStrongPasswords bool
    Boolean indicating whether users will be forced to choose strong passwords for their accounts. Strong passwords are at least 8 characters that contain 3 of the following: number, uppercase letter, lowercase letter, and symbol
    EnforceTwoFactorAuth bool
    Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to Dashboard. This code will be sent to their mobile phone via SMS, or can be generated by the authenticator application.
    IdleTimeoutMinutes int
    Number of minutes users can remain idle before being logged out of their accounts.
    LoginIpRanges List<string>
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    NumDifferentPasswords int
    Number of recent passwords that new password must be distinct from.
    PasswordExpirationDays int
    Number of days after which users will be forced to change their password.
    AccountLockoutAttempts int
    Number of consecutive failed login attempts after which users' accounts will be locked.
    ApiAuthentication GetLoginSecurityItemApiAuthentication
    Details for indicating whether organization will restrict access to API (but not Dashboard) to certain IP addresses.
    EnforceAccountLockout bool
    Boolean indicating whether users' Dashboard accounts will be locked out after a specified number of consecutive failed login attempts.
    EnforceDifferentPasswords bool
    Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords.
    EnforceIdleTimeout bool
    Boolean indicating whether users will be logged out after being idle for the specified number of minutes.
    EnforceLoginIpRanges bool
    Boolean indicating whether organization will restrict access to Dashboard (including the API) from certain IP addresses.
    EnforcePasswordExpiration bool
    Boolean indicating whether users are forced to change their password every X number of days.
    EnforceStrongPasswords bool
    Boolean indicating whether users will be forced to choose strong passwords for their accounts. Strong passwords are at least 8 characters that contain 3 of the following: number, uppercase letter, lowercase letter, and symbol
    EnforceTwoFactorAuth bool
    Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to Dashboard. This code will be sent to their mobile phone via SMS, or can be generated by the authenticator application.
    IdleTimeoutMinutes int
    Number of minutes users can remain idle before being logged out of their accounts.
    LoginIpRanges []string
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    NumDifferentPasswords int
    Number of recent passwords that new password must be distinct from.
    PasswordExpirationDays int
    Number of days after which users will be forced to change their password.
    accountLockoutAttempts Integer
    Number of consecutive failed login attempts after which users' accounts will be locked.
    apiAuthentication GetLoginSecurityItemApiAuthentication
    Details for indicating whether organization will restrict access to API (but not Dashboard) to certain IP addresses.
    enforceAccountLockout Boolean
    Boolean indicating whether users' Dashboard accounts will be locked out after a specified number of consecutive failed login attempts.
    enforceDifferentPasswords Boolean
    Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords.
    enforceIdleTimeout Boolean
    Boolean indicating whether users will be logged out after being idle for the specified number of minutes.
    enforceLoginIpRanges Boolean
    Boolean indicating whether organization will restrict access to Dashboard (including the API) from certain IP addresses.
    enforcePasswordExpiration Boolean
    Boolean indicating whether users are forced to change their password every X number of days.
    enforceStrongPasswords Boolean
    Boolean indicating whether users will be forced to choose strong passwords for their accounts. Strong passwords are at least 8 characters that contain 3 of the following: number, uppercase letter, lowercase letter, and symbol
    enforceTwoFactorAuth Boolean
    Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to Dashboard. This code will be sent to their mobile phone via SMS, or can be generated by the authenticator application.
    idleTimeoutMinutes Integer
    Number of minutes users can remain idle before being logged out of their accounts.
    loginIpRanges List<String>
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    numDifferentPasswords Integer
    Number of recent passwords that new password must be distinct from.
    passwordExpirationDays Integer
    Number of days after which users will be forced to change their password.
    accountLockoutAttempts number
    Number of consecutive failed login attempts after which users' accounts will be locked.
    apiAuthentication GetLoginSecurityItemApiAuthentication
    Details for indicating whether organization will restrict access to API (but not Dashboard) to certain IP addresses.
    enforceAccountLockout boolean
    Boolean indicating whether users' Dashboard accounts will be locked out after a specified number of consecutive failed login attempts.
    enforceDifferentPasswords boolean
    Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords.
    enforceIdleTimeout boolean
    Boolean indicating whether users will be logged out after being idle for the specified number of minutes.
    enforceLoginIpRanges boolean
    Boolean indicating whether organization will restrict access to Dashboard (including the API) from certain IP addresses.
    enforcePasswordExpiration boolean
    Boolean indicating whether users are forced to change their password every X number of days.
    enforceStrongPasswords boolean
    Boolean indicating whether users will be forced to choose strong passwords for their accounts. Strong passwords are at least 8 characters that contain 3 of the following: number, uppercase letter, lowercase letter, and symbol
    enforceTwoFactorAuth boolean
    Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to Dashboard. This code will be sent to their mobile phone via SMS, or can be generated by the authenticator application.
    idleTimeoutMinutes number
    Number of minutes users can remain idle before being logged out of their accounts.
    loginIpRanges string[]
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    numDifferentPasswords number
    Number of recent passwords that new password must be distinct from.
    passwordExpirationDays number
    Number of days after which users will be forced to change their password.
    account_lockout_attempts int
    Number of consecutive failed login attempts after which users' accounts will be locked.
    api_authentication GetLoginSecurityItemApiAuthentication
    Details for indicating whether organization will restrict access to API (but not Dashboard) to certain IP addresses.
    enforce_account_lockout bool
    Boolean indicating whether users' Dashboard accounts will be locked out after a specified number of consecutive failed login attempts.
    enforce_different_passwords bool
    Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords.
    enforce_idle_timeout bool
    Boolean indicating whether users will be logged out after being idle for the specified number of minutes.
    enforce_login_ip_ranges bool
    Boolean indicating whether organization will restrict access to Dashboard (including the API) from certain IP addresses.
    enforce_password_expiration bool
    Boolean indicating whether users are forced to change their password every X number of days.
    enforce_strong_passwords bool
    Boolean indicating whether users will be forced to choose strong passwords for their accounts. Strong passwords are at least 8 characters that contain 3 of the following: number, uppercase letter, lowercase letter, and symbol
    enforce_two_factor_auth bool
    Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to Dashboard. This code will be sent to their mobile phone via SMS, or can be generated by the authenticator application.
    idle_timeout_minutes int
    Number of minutes users can remain idle before being logged out of their accounts.
    login_ip_ranges Sequence[str]
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    num_different_passwords int
    Number of recent passwords that new password must be distinct from.
    password_expiration_days int
    Number of days after which users will be forced to change their password.
    accountLockoutAttempts Number
    Number of consecutive failed login attempts after which users' accounts will be locked.
    apiAuthentication Property Map
    Details for indicating whether organization will restrict access to API (but not Dashboard) to certain IP addresses.
    enforceAccountLockout Boolean
    Boolean indicating whether users' Dashboard accounts will be locked out after a specified number of consecutive failed login attempts.
    enforceDifferentPasswords Boolean
    Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords.
    enforceIdleTimeout Boolean
    Boolean indicating whether users will be logged out after being idle for the specified number of minutes.
    enforceLoginIpRanges Boolean
    Boolean indicating whether organization will restrict access to Dashboard (including the API) from certain IP addresses.
    enforcePasswordExpiration Boolean
    Boolean indicating whether users are forced to change their password every X number of days.
    enforceStrongPasswords Boolean
    Boolean indicating whether users will be forced to choose strong passwords for their accounts. Strong passwords are at least 8 characters that contain 3 of the following: number, uppercase letter, lowercase letter, and symbol
    enforceTwoFactorAuth Boolean
    Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to Dashboard. This code will be sent to their mobile phone via SMS, or can be generated by the authenticator application.
    idleTimeoutMinutes Number
    Number of minutes users can remain idle before being logged out of their accounts.
    loginIpRanges List<String>
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    numDifferentPasswords Number
    Number of recent passwords that new password must be distinct from.
    passwordExpirationDays Number
    Number of days after which users will be forced to change their password.

    GetLoginSecurityItemApiAuthentication

    ipRestrictionsForKeys Property Map
    Details for API-only IP restrictions.

    GetLoginSecurityItemApiAuthenticationIpRestrictionsForKeys

    Enabled bool
    Boolean indicating whether the organization will restrict API key (not Dashboard GUI) usage to a specific list of IP addresses or CIDR ranges.
    Ranges List<string>
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    Enabled bool
    Boolean indicating whether the organization will restrict API key (not Dashboard GUI) usage to a specific list of IP addresses or CIDR ranges.
    Ranges []string
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    enabled Boolean
    Boolean indicating whether the organization will restrict API key (not Dashboard GUI) usage to a specific list of IP addresses or CIDR ranges.
    ranges List<String>
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    enabled boolean
    Boolean indicating whether the organization will restrict API key (not Dashboard GUI) usage to a specific list of IP addresses or CIDR ranges.
    ranges string[]
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    enabled bool
    Boolean indicating whether the organization will restrict API key (not Dashboard GUI) usage to a specific list of IP addresses or CIDR ranges.
    ranges Sequence[str]
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.
    enabled Boolean
    Boolean indicating whether the organization will restrict API key (not Dashboard GUI) usage to a specific list of IP addresses or CIDR ranges.
    ranges List<String>
    List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets.

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi