code: def create_external_account(resource_root, name, display_name, type_name,
                              account_configs=None):
    
    account = ApiExternalAccount(resource_root,
                                 name=name,
                                 displayName=display_name,
                                 typeName=type_name,
                                 accountConfigs=account_configs)
    return call(resource_root.post,
        EXTERNAL_ACCOUNT_PATH % ("create",),
        ApiExternalAccount, False, data=account)
docs: Create an external account
    @param resource_root: The root Resource object.
    @param name: Immutable external account name
    @param display_name: Display name
    @param type_name: Account type
    @param account_configs: Optional account configuration (ApiList of ApiConfig objects)
    @return: An ApiExternalAccount object matching the newly created account