{
"info": {
"author": "Prasanth B",
"author_email": "bprashanth243@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3"
],
"description": "# RestApi Automation\n\nUsing RestApi to Automate the Test cases -> Backup, Restore\n\n## Before Start\n\nThe Setup should be ready with Avamar server connected to vCenter and proxy registered with the Avamar Server.\n\n\n## Installation\n\nPython Version --> Preferably 3.5.0 and above.\n\nUse the package manager [pip] if possible the latest Version.\n\n```bash\napt-get install python-pip\n```\n#### Other Libraries\n\n```bash pip install requests``` --> to install the requests module\n\n```bash pip install yaml``` --> For Yaml Configuration\n\n```bash pip install logging``` --> For Log creation\n\n\n## Usage\n\nFill the Config.yaml file for User Entries. Some of them are explained below,\n\nAuthorization : Authorization Token to access Avamar Server(Use Postman to retrieve one).
\nvCenterSessionId : Session Id of the vCenter server.
\nvmType : The type of VM whose backup has to be taken(Windows, Linux)
\nFolderPath : Folder where the VM is kept
\nNewVMName : While Restoring the New VM name
\n\n\nFor Eg.\n\n```Yaml\n\nIP: 10.110.211.252\nAuthorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiUk9PVCIsInVzZXJfbmFtZSI6Ik1DVXNlciIsInNjb3BlIjpbIndyaXRlIl0sImRvbWFpbiI6Ii8iLCJhdXRob3JpemVkX2RvbWFpbiI6Ii8iLCJleHAiOjE1NTI2NDc2NzksImF1dGhvcml0aWVzIjpbIlJPT1QiXSwianRpIjoiNjBlZTUyNWItZjBmYi00NTE2LWIyMTEtYmZiNThiMzQ3Y2E3IiwiY2xpZW50X2lkIjoiM2MwNDFiODctNTIyYi00NThlLTgwZmYtYjY5MTZiMmU5N2JmIn0.EpkFA2litAI_CigsTK1s3GYFmG6BP48_EOj-IIPXgNX5-SwpDlg32-MP8XgCbMYXOpPLRUzlPnIIBA8jANBVL9Tg3esF_u2qmKU7CMLVyJTIfZhB9x1NAoE5S0_6Fb8Z68PkbUWkUYc0ubaoGEhMzc775bLxU4g_ULUdtkQSGKYCTg2CLnmqhONZaWTw5M83Y-L8qZ7T4DvgEbkWtXHZ0jdnLcSiAXtv1qX3rEESk8LYVSuvoeLIPSnNK50vydh_H_cPTw9jfF_J8Qfa5mTAAfnuzTZBPGtyA2zodtOin1yyEOC1VPz7HpHU-0NMOKF1YCVleZXzV35BdNw-JxBfS1c92BMZQoF-yqyTf1Q5qwGCMA0lghxd0ClNwTM4YCCe-o3FBcVeCWLehL5MyGDuLk0JI8uGRJPR7XHpwpy8KTSF8L_9A-0i3xS0ZZQf9AxTDIEMIheEAF0VWgu3ulZ92Ud_9qThICTUWvqkHonuLiKs2FoPxrGfFyOeSeLlaZEO\nvCenterSessionId: 4f99479faf19893b1dd86507b7fcfc7e\nvCenter: 10.110.211.168\nPolicyName: Gsan-Policy\nPolicyDomain: /10.110.211.168/VirtualMachines\nContent-Type: application/json\nVM_id: c146dd0ebed42ff4cd94460ddeb509fb6cbdf7e7\nvmType: Windows\nVcCid: 14bda782e11827a1c69201a43ac0e3cc2b4a24a8\nDatastore: datastore1\nFolderPath: /AVE_A10N_DC/vm/Automation/\nNewVMName: Restore-VM-2019_18\nResourcePoolPath: /AVE_A10N_DC/host/10.110.211.22/Resources/Compute-ResourcePool/\nDatacenterName: AVE_A10N_DC\n\n\n```\n\n## Running\n\nAfter filling the yaml file run the below command in the terminal,\n```bash\npython REST_Automation.py\n```\nLog file produced is\n\n## Contributing\n\nAll suggestions and trial are welcome. \n\n\n",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "vCenter",
"package_url": "https://pypi.org/project/vCenter/",
"platform": "",
"project_url": "https://pypi.org/project/vCenter/",
"project_urls": null,
"release_url": "https://pypi.org/project/vCenter/6.7.0.2/",
"requires_dist": null,
"requires_python": "",
"summary": "Connecting to a vCenter",
"version": "6.7.0.2"
},
"last_serial": 5255320,
"releases": {
"6.7.0.2": [
{
"comment_text": "",
"digests": {
"md5": "4410a6f69b3891f39d1d953a4eff6ac2",
"sha256": "008c7e38eab23bd4cef92b827117c0f7f65b93edfcc73746fbbff9e73d2d7ea5"
},
"downloads": -1,
"filename": "vCenter-6.7.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4410a6f69b3891f39d1d953a4eff6ac2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4691,
"upload_time": "2019-05-11T07:33:12",
"url": "https://files.pythonhosted.org/packages/e5/10/f1a52485649dd20c3513f77342ca0c2b07faa5f6ae5729a4d07dd214fcd9/vCenter-6.7.0.2-py3-none-any.whl"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "4410a6f69b3891f39d1d953a4eff6ac2",
"sha256": "008c7e38eab23bd4cef92b827117c0f7f65b93edfcc73746fbbff9e73d2d7ea5"
},
"downloads": -1,
"filename": "vCenter-6.7.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4410a6f69b3891f39d1d953a4eff6ac2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4691,
"upload_time": "2019-05-11T07:33:12",
"url": "https://files.pythonhosted.org/packages/e5/10/f1a52485649dd20c3513f77342ca0c2b07faa5f6ae5729a4d07dd214fcd9/vCenter-6.7.0.2-py3-none-any.whl"
}
]
}