Socket
Socket
Sign inDemoInstall

mailinabox-api

Package Overview
Dependencies
4
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mailinabox-api

Mail-in-a-Box


Maintainers
1

Readme

mailinabox-api

Build & Publish

Python client SDK for the Mail-in-a-Box API.

  • API version: 0.51.0
  • Package version: 0.51.1

https://pypi.org/project/mailinabox-api

NOTE: This package is auto-generated from the Mail-In-A-Box OpenAPI spec.

Requirements

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/badsyntax/mailinabox-api-py.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/badsyntax/mailinabox-api-py.git)

Then import the package:

import mailinabox_api

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import mailinabox_api

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function

import time
import mailinabox_api
from mailinabox_api.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://box.example.com/admin
# See configuration.py for a list of all supported configuration parameters.
configuration = mailinabox_api.Configuration(
    host = "https://box.example.com/admin"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure HTTP basic authorization: basicAuth
configuration = mailinabox_api.Configuration(
    username = 'YOUR_USERNAME',
    password = 'YOUR_PASSWORD'
)


# Enter a context with an instance of the API client
with mailinabox_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = mailinabox_api.DNSApi(api_client)
    qname = 'qname_example' # str | DNS query name.
    body = 1.2.3.4 # str | 

    try:
        # Add DNS custom A record
        api_response = api_instance.add_dns_custom_a_record(qname, body)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DNSApi->add_dns_custom_a_record: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://box.example.com/admin

ClassMethodHTTP requestDescription
DNSApiadd_dns_custom_a_recordPOST /dns/custom/{qname}Add DNS custom A record
DNSApiadd_dns_custom_recordPOST /dns/custom/{qname}/{rtype}Add DNS custom record
DNSApiadd_dns_secondary_nameserverPOST /dns/secondary-nameserverAdd DNS secondary nameserver
DNSApiget_dns_custom_a_records_for_q_nameGET /dns/custom/{qname}Get DNS custom A records
DNSApiget_dns_custom_recordsGET /dns/customGet DNS custom records
DNSApiget_dns_custom_records_for_q_name_and_typeGET /dns/custom/{qname}/{rtype}Get DNS custom records
DNSApiget_dns_dumpGET /dns/dumpGet DNS dump
DNSApiget_dns_secondary_nameserverGET /dns/secondary-nameserverGet DNS secondary nameserver
DNSApiget_dns_zonefileGET /dns/zonefile/{zone}Get DNS zonefile
DNSApiget_dns_zonesGET /dns/zonesGet DNS zones
DNSApiremove_dns_custom_a_recordDELETE /dns/custom/{qname}Remove DNS custom A record
DNSApiremove_dns_custom_recordDELETE /dns/custom/{qname}/{rtype}Remove DNS custom record
DNSApiupdate_dnsPOST /dns/updateUpdate DNS
DNSApiupdate_dns_custom_a_recordPUT /dns/custom/{qname}Update DNS custom A record
DNSApiupdate_dns_custom_recordPUT /dns/custom/{qname}/{rtype}Update DNS custom record
MFAApimfa_statusPOST /mfa/statusRetrieve MFA status for you or another user
MFAApimfa_totp_disablePOST /mfa/disableDisable multi-factor authentication for you or another user
MFAApimfa_totp_enablePOST /mfa/totp/enableEnable TOTP authentication
MailApiadd_mail_userPOST /mail/users/addAdd mail user
MailApiadd_mail_user_privilegePOST /mail/users/privileges/addAdd mail user privilege
MailApiget_mail_aliasesGET /mail/aliasesGet mail aliases
MailApiget_mail_domainsGET /mail/domainsGet mail domains
MailApiget_mail_user_privilegesGET /mail/users/privilegesGet mail user privileges
MailApiget_mail_usersGET /mail/usersGet mail users
MailApiremove_mail_aliasPOST /mail/aliases/removeRemove mail alias
MailApiremove_mail_userPOST /mail/users/removeRemove mail user
MailApiremove_mail_user_privilegePOST /mail/users/privileges/removeRemove mail user privilege
MailApiset_mail_user_passwordPOST /mail/users/passwordSet mail user password
MailApiupsert_mail_aliasPOST /mail/aliases/addUpsert mail alias
SSLApigenerate_sslcsrPOST /ssl/csr/{domain}Generate SSL CSR
SSLApiget_ssl_statusGET /ssl/statusGet SSL status
SSLApiinstall_ssl_certificatePOST /ssl/installInstall SSL certificate
SSLApiprovision_ssl_certificatesPOST /ssl/provisionProvision SSL certificates
SystemApiget_system_backup_configGET /system/backup/configGet system backup config
SystemApiget_system_backup_statusGET /system/backup/statusGet system backup status
SystemApiget_system_privacy_statusGET /system/privacyGet system privacy status
SystemApiget_system_reboot_statusGET /system/rebootGet system reboot status
SystemApiget_system_statusPOST /system/statusGet system status
SystemApiget_system_updatesGET /system/updatesGet system updates
SystemApiget_system_upstream_versionPOST /system/latest-upstream-versionGet system upstream version
SystemApiget_system_versionGET /system/versionGet system version
SystemApireboot_systemPOST /system/rebootReboot system
SystemApiupdate_system_backup_configPOST /system/backup/configUpdate system backup config
SystemApiupdate_system_packagesPOST /system/update-packagesUpdate system packages
SystemApiupdate_system_privacyPOST /system/privacyUpdate system privacy
UserApiget_meGET /meGet user information
WebApiget_web_domainsGET /web/domainsGet web domains
WebApiupdate_webPOST /web/updateUpdate web

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc