{ "info": { "author": "Aaron Edwards", "author_email": "cloudgenix_tagger@ebob9.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "CloudGenix Tagger\n----------\n\n#### Synopsis\nUtility to manage tags across a large number of CloudGenix sites, elements, interfaces, and Circuit Catagories.\n\n#### Features\nTBD\n\n#### Requirements\n* Active CloudGenix Account\n* Python >= 2.7 or >=3.6\n* Python modules:\n * CloudGenix Python SDK >= 5.1.1b1 - \n\n#### License\nMIT\n\n#### Installation:\n - **PIP:** `pip install cloudgenix_tagger`. After install, `do_tag`. Scripts should be placed in the Python\n Scripts directory. \n - **Github:** Download files to a local directory, manually run `do_tag.py` script. \n\n### Examples of usage:\n 1. Add tag \"Aaron_Likes_tags\" to all sites with \"Name\" starting with \"AUTO\"\n ```bash\n edwards-mbp-pro:cloudgenix_tagger aaron$ ./do_tags.py -T \"Aaron_Likes_tags\" -O sites -P \"^AUTO.*\" -A\n Working on 'sites'..\n 100%|############################################################################################################################################################################################################################################################################################################################################################################################################|Time: 0:00:00\n Tag Action Object Name Object Key Object Key Value Object Match Change Detail\n ---------------- -------- ---------------------- ------------ ---------------------- -------------- ---------------------------\n Aaron_Likes_tags add AUTOMATION-LAB name AUTOMATION-LAB True added: ['Aaron_Likes_tags']\n Aaron_Likes_tags add Azure Central US name Azure Central US False\n Aaron_Likes_tags add Chicago Branch 2 name Chicago Branch 2 False\n Aaron_Likes_tags add New York Branch 1 name New York Branch 1 False\n Aaron_Likes_tags add Oracle DC name Oracle DC False\n Aaron_Likes_tags add Orange-Test name Orange-Test False\n Aaron_Likes_tags add San Francisco DC 1 name San Francisco DC 1 False\n Aaron_Likes_tags add Seattle Branch 3 name Seattle Branch 3 False\n Aaron_Likes_tags add Washington D.C. - DC 2 name Washington D.C. - DC 2 False\n Aaron_Likes_tags add test name test False\n edwards-mbp-pro:cloudgenix_tagger aaron$ \n ```\n 2. Remove tag \"Aaron_Likes_tags\" from all sites.\n ```bash\n edwards-mbp-pro:cloudgenix_tagger aaron$ ./do_tags.py -T \"Aaron_Likes_tags\" -O sites -P \".*\" -R\n Working on 'sites'..\n 100%|############################################################################################################################################################################################################################################################################################################################################################################################################|Time: 0:00:00\n Tag Action Object Name Object Key Object Key Value Object Match Change Detail\n ---------------- -------- ---------------------- ------------ ---------------------- -------------- -----------------------------\n Aaron_Likes_tags remove AUTOMATION-LAB name AUTOMATION-LAB True removed: ['Aaron_Likes_tags']\n Aaron_Likes_tags remove Azure Central US name Azure Central US True no changes required.\n Aaron_Likes_tags remove Chicago Branch 2 name Chicago Branch 2 True no changes required.\n Aaron_Likes_tags remove New York Branch 1 name New York Branch 1 True no changes required.\n Aaron_Likes_tags remove Oracle DC name Oracle DC True no changes required.\n Aaron_Likes_tags remove Orange-Test name Orange-Test True no changes required.\n Aaron_Likes_tags remove San Francisco DC 1 name San Francisco DC 1 True no changes required.\n Aaron_Likes_tags remove Seattle Branch 3 name Seattle Branch 3 True no changes required.\n Aaron_Likes_tags remove Washington D.C. - DC 2 name Washington D.C. - DC 2 True no changes required.\n Aaron_Likes_tags remove test name test True no changes required.\n edwards-mbp-pro:cloudgenix_tagger aaron$ \n\n ```\n \n### Caveats and known issues:\n - None\n \n#### Version\n| Version | Build | Changes |\n| ------- | ----- | ------- |\n| **1.0.0** | **b1** | Initial Release. |\n\n#### Command line help\n```bash\nedwards-mbp-pro:cloudgenix_tagger aaron$ ./do_tags.py -h\nusage: do_tags.py [-h] (--add | --remove) [--simulate] --tag TAG --object\n OBJECT [--interfaces-site-key INTERFACES_SITE_KEY]\n [--interfaces-element-key INTERFACES_ELEMENT_KEY]\n [--key KEY]\n [--interfaces-site-pattern INTERFACES_SITE_PATTERN]\n [--interfaces-element-pattern INTERFACES_ELEMENT_PATTERN]\n --pattern PATTERN [--output OUTPUT]\n [--controller CONTROLLER] [--email EMAIL]\n [--password PASSWORD] [--insecure] [--noregion]\n [--sdkdebug SDKDEBUG]\n\nCloudGenix Tagger (v1.0.0)\n\noptional arguments:\n -h, --help show this help message and exit\n\nAction:\n Add or Remove Tags\n\n --add, -A\n --remove, -R\n --simulate, -S Simulate and display prospective changes. Don't make\n any actual modifications.\n --tag TAG, -T TAG Tag to add or remove from objects.\n --object OBJECT, -O OBJECT\n Object to add/remove tags from. One of sites,\n elements, interfaces, circuitcatagories.\n --interfaces-site-key INTERFACES_SITE_KEY, -SK INTERFACES_SITE_KEY\n Key in Site object to use for inclusion ('interfaces'\n only). Default 'name'\n --interfaces-element-key INTERFACES_ELEMENT_KEY, -EK INTERFACES_ELEMENT_KEY\n Key in Element object to use for inclusion\n ('interfaces' only). Default 'name'\n --key KEY, -K KEY Key in object to use for match. Default 'name'.\n --interfaces-site-pattern INTERFACES_SITE_PATTERN, -SP INTERFACES_SITE_PATTERN\n REGEX Pattern to match Site Object with for inclusion\n ('interfaces' only). Default '.*'\n --interfaces-element-pattern INTERFACES_ELEMENT_PATTERN, -EP INTERFACES_ELEMENT_PATTERN\n REGEX Pattern to match Element Object with for\n inclusion ('interfaces' only). Default '.*'\n --pattern PATTERN, -P PATTERN\n REGEX Pattern to match Object Key value with.\n --output OUTPUT Output to filename. If not specified, will print\n output on STDOUT.\n\nAPI:\n These options change how this program connects to the API.\n\n --controller CONTROLLER, -C CONTROLLER\n Controller URI, ex.\n https://api.elcapitan.cloudgenix.com\n\nLogin:\n These options allow skipping of interactive login\n\n --email EMAIL, -E EMAIL\n Use this email as User Name instead of\n cloudgenix_settings.py or prompting\n --password PASSWORD, -PW PASSWORD\n Use this Password instead of cloudgenix_settings.py or\n prompting\n --insecure, -I Do not verify SSL certificate\n --noregion, -NR Ignore Region-based redirection.\n\nDebug:\n These options enable debugging output\n\n --sdkdebug SDKDEBUG, -D SDKDEBUG\n Enable SDK Debug output, levels 0-2\nedwards-mbp-pro:cloudgenix_tagger aaron$ \n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ebob9/cloudgenix_tagger", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cloudgenix-tagger", "package_url": "https://pypi.org/project/cloudgenix-tagger/", "platform": "", "project_url": "https://pypi.org/project/cloudgenix-tagger/", "project_urls": { "Homepage": "https://github.com/ebob9/cloudgenix_tagger" }, "release_url": "https://pypi.org/project/cloudgenix-tagger/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Utility to manage tags across a large number of CloudGenix sites, elements, interfaces, and Circuit Catagories.", "version": "1.0.0" }, "last_serial": 5793024, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f699cf117136128aba83320348a471f4", "sha256": "a5e77b760059131144e7b483f660e980980a20fecb479ab1658e23b4a3f605fe" }, "downloads": -1, "filename": "cloudgenix_tagger-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f699cf117136128aba83320348a471f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12380, "upload_time": "2019-05-09T07:43:44", "url": "https://files.pythonhosted.org/packages/44/9c/88cb61d5c4f3ee224bb56f85ef0ab1b829f23712909565ff4311bbe85221/cloudgenix_tagger-1.0.0.tar.gz" } ], "1.0.1b1": [ { "comment_text": "", "digests": { "md5": "0ddf0d6e0a6e151f98c93cad7c7cbc3a", "sha256": "a47b9797645f55b4e9a7f897176903a9156a3f0010459312a92daf8059898df6" }, "downloads": -1, "filename": "cloudgenix_tagger-1.0.1b1.tar.gz", "has_sig": false, "md5_digest": "0ddf0d6e0a6e151f98c93cad7c7cbc3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12719, "upload_time": "2019-09-06T16:15:10", "url": "https://files.pythonhosted.org/packages/7a/70/d408ff85c8c4fd97822137e37f2478845778f1b29fde481f7d96ab24cbe3/cloudgenix_tagger-1.0.1b1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f699cf117136128aba83320348a471f4", "sha256": "a5e77b760059131144e7b483f660e980980a20fecb479ab1658e23b4a3f605fe" }, "downloads": -1, "filename": "cloudgenix_tagger-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f699cf117136128aba83320348a471f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12380, "upload_time": "2019-05-09T07:43:44", "url": "https://files.pythonhosted.org/packages/44/9c/88cb61d5c4f3ee224bb56f85ef0ab1b829f23712909565ff4311bbe85221/cloudgenix_tagger-1.0.0.tar.gz" } ] }