1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-25 02:39:59 -05:00
Commit Graph

291 Commits

Author SHA1 Message Date
Tianhao He
447cd1becb Update vapi-client-binding to reslove a known issue
Due to a known limitation, the vsphere_client can't make
API calls to sub components of vCenter service. This change
fixes that.

Signed-off-by: Tianhao He <het@vmware.com>
2018-05-25 12:10:36 +08:00
Tianhao He
303832b334
Merge pull request #65 from ggoodvmw/master
doc: remove extra NSX doc files and rename
2018-05-25 10:23:27 +08:00
Gordon Good
dc378c0af2 doc: remove extra NSX doc files and rename
Remove older doc files, and rename without any version numbers
in the filename for consistency with other doc files.

Signed-off-by: Gordon Good <ggood@vmware.com>
2018-05-24 11:04:44 -07:00
Tianhao He
485cb6172d
add online version for vsphere API 2018-05-23 12:05:08 +08:00
Tianhao He
62c110e50a
Update README.md 2018-05-22 23:49:26 +08:00
Tianhao He
4450aa3863
README for doc folder 2018-05-22 23:21:57 +08:00
Tianhao He
a2f0709f1b
Merge pull request #63 from tianhao64/master
VMware Cloud on AWS 1.4
2018-05-15 20:59:06 -07:00
Tianhao He
346f5b1cd6 VMware Cloud on AWS 1.4
- Updated bindings and samples for VMware Cloud on AWS APIs
- Added bindings for NSX APIs
- Added HVC samples
2018-05-15 20:56:21 -07:00
Tianhao He
fd624e7716
Update README.md 2018-05-15 16:42:39 -07:00
Tianhao He
6e13b78d3c
Update issue_template.md 2018-04-30 14:24:01 -07:00
Tianhao He
008081791a
Merge pull request #62 from tianhao64/master
update api docs
2018-04-26 16:33:38 -07:00
Tianhao He
60aa0d8266 update api docs
Signed-off-by: Tianhao He <het@vmware.com>
2018-04-26 16:30:40 -07:00
Tianhao He
76f3f0ce0b
Merge pull request #61 from tianhao64/master
add expose vm to public internet sample
2018-04-25 12:35:41 -07:00
Tianhao He
4959e85281 add expose vm to public internet sample
Sample execution output:

/Users/het/virenv/py36/bin/python /Users/het/github/vsphere-automation-sdk-python/samples/vmc/networks/expose_public_ip.py -r <refreh_token> -o <org_id> -s <sddc_id> --i <private_ip> -c

Wait for task ff09bd7b-22bd-439f-b4cd-154c270a5937 to finish
Checking task status every 2 seconds
Estimated time remaining: -1 minutes

Task ff09bd7b-22bd-439f-b4cd-154c270a5937 finished successfully

 # New firewall rule "Sample firewall rule 100" is added

 # New NAT rule "Sample NAT rule 72" is added

Signed-off-by: Tianhao He <het@vmware.com>
2018-04-23 19:02:20 -07:00
Tianhao He
ba4963be35
Fix install cmd.
Remove extra '/' in the install cmd.
2018-04-19 11:02:36 -07:00
Tianhao He
dade22a0ae Clean up readme
1. Remove contribution section as it has been moved to contribution.md
2. Cleanup other redundant sections.
2018-04-18 21:08:59 -07:00
Tianhao He
e116aae788
Update issue_template.md 2018-04-18 17:23:07 -07:00
Tianhao He
8e4206af30
Create issue_template.md 2018-04-17 20:19:33 -07:00
Tianhao He
b38da3d326
Create CONTRIBUTING.md 2018-04-17 19:48:08 -07:00
Tianhao He
67c25e16e5
Merge pull request #56 from tianhao64/master
vSphere 6.7 Release
2018-04-17 11:06:51 -07:00
Tianhao He
f1032b4e43 vSphere 6.7 Release
Signed-off-by: Tianhao He <het@vmware.com>
2018-04-17 11:01:27 -07:00
Tianhao He
1ea926ad45
Update README.md 2018-04-04 16:09:39 -07:00
Tianhao He
c9c9855ae3
Merge pull request #54 from tianhao64/readme
Update README.md
2018-04-04 15:20:04 -07:00
Tianhao He
aa6667beb5 Update README.md 2018-04-04 15:15:21 -07:00
Tianhao He
eda57e2a07 Add connect to vmc vsphere sample
Sample output:

VM ID    VM Name
-------  ----------------------------------------------------------
vm-35    vcenter
vm-50    nsx-manager
vm-51    Node-7c1f558c-d026-4e48-be2b-f0bb6e6c220f-NSX-controller-1
vm-52    Node-db8fda3f-f611-4631-a3ac-700ab6412ea0-NSX-controller-2
vm-53    Node-844750bc-0191-45da-9a0d-1f849de2ea08-NSX-controller-3

Signed-off-by: Tianhao He <het@vmware.com>
2018-03-26 13:10:59 -07:00
Tianhao He
474eb8f901
Merge pull request #50 from kmruddy/master
Update logical_network_crud.py and sddc_crud.py Samples
2018-03-23 09:59:12 -07:00
Kyle Ruddy
49cc259793 Update Sample Name - sddc_crud.py
Since the sample has been updated to do more than just creating and
deleting an SDDC, the file name has been updated as well.
2018-03-23 08:28:24 -04:00
Kyle Ruddy
0a62db4e0f Added List_SDDC Function & Added Standard Output Function
Adding a standalone list_sddc function, parameters to handle the
calling of whether or not the intended action be a list, create, and/or
delete method, added a standard output function to match what’s
available as part of the logical network example.
2018-03-21 17:41:40 -04:00
Kyle Ruddy
b8554584c2 Remove DHCP Column from Output
Not every logical switch contains DHCP IP Pool information. Removing
the DHCP column from being output.

Resolving the Following Error:
(VMWonAWSDemo) kruddy-m02:vsphere-automation-sdk-python kyleruddy$
python3 ./samples/vmc/networks/logical_network_crud.py -r $refreshtoken
-o $orgid -s $sddcid --network-name 'Python-SDK-LogicalNetwork' -c

# Example: Add a logical network to the compute gateway
  Compute Gateway ID: edge-2

# New logical network "Python-SDK-LogicalNetwork" is added

# Example: List all logical networks
Traceback (most recent call last):
  File "./samples/vmc/networks/logical_network_crud.py", line 208, in
<module>
    main()
  File "./samples/vmc/networks/logical_network_crud.py", line 201, in
main
    logical_network_crud.get_logical_network()
  File "./samples/vmc/networks/logical_network_crud.py", line 134, in
get_logical_network
    self.print_output(networks)
  File "./samples/vmc/networks/logical_network_crud.py", line 192, in
print_output
    network.dhcp_configs.ip_pools[0].ip_range])
AttributeError: 'NoneType' object has no attribute 'ip_pools'
2018-03-21 17:34:28 -04:00
Tianhao He
2ab8622b32
Merge pull request #49 from tianhao64/master
Add exception handling for sddc samples to get detailed error message
2018-03-14 10:03:56 -07:00
Tianhao He
08028b54dd Add exception handling for sddc samples to get detailed error message
Signed-off-by: Tianhao He <het@vmware.com>
2018-03-13 17:35:12 -07:00
Tianhao He
5347716f83
Merge pull request #48 from tianhao64/master
VMware Cloud on AWS M3 release
2018-03-08 14:44:51 -08:00
Tianhao He
aae89a9af0 VMware Cloud on AWS M3 release
* Support VMware Cloud on AWS Networking APIs and add a few samples.
* Added vsphere_client module to simplify login and API invocation.
* Modified existing samples to use vsphere_client.
* Update on vm template APIs.

Signed-off-by: Tianhao He <het@vmware.com>
2018-03-08 13:15:46 -08:00
Tianhao He
8febd6904f remove empty tasks folder 2018-01-09 14:07:03 -08:00
Tianhao He
4dfae31677
Merge pull request #41 from tianhao64/master
Add hok token support for sso.py
2017-12-08 10:39:54 -08:00
Tianhao He
9db63a9577 Add hok token support for sso.py
Make the sso.py python3 compatible.
Add acquire token by token support.
Add hok token support.

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-12-08 10:35:56 -08:00
Tianhao He
1cd0d5dd39
Remove --no-cache from the install cmd
The option is not needed. Also it seems the option is not working on Ubuntu.
2017-12-05 23:55:42 -08:00
Tianhao He
fd6fff995a
Merge pull request #40 from tianhao64/master
Add VMware Cloud on AWS APIs
2017-12-05 16:37:40 -08:00
Tianhao He
775dbeffa9 Add VMware Cloud on AWS APIs
Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-12-05 16:24:30 -08:00
Tianhao He
32ce0831ed Update vapiconnect.py 2017-10-20 09:23:36 -07:00
Tianhao He
29bd63ba91 Update vapiconnect.py 2017-10-19 18:39:34 -07:00
Tianhao He
d2c2d2280e Update README.md 2017-10-09 16:22:08 -07:00
Steve Trefethen
22efbcd382 Fix API Reference link which is currently "not found". 2017-08-30 11:34:34 -07:00
Tianhao He
755a79f560 Merge pull request #34 from tianhao64/master
Updated bindings for vSphere 6.6.1 release
2017-08-29 15:30:56 -07:00
Tianhao He
a3e9688fdc Updated bindings for vSphere 6.6.1 release
1. Updated bindings for vSphere 6.6.1 release for VMware Cloud 1.1
2. Update password and remove IP from testbed.py
3. Package vSphere Automation runtime and bindings in wheel format.
4. Update travis test commend.

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-08-29 15:27:52 -07:00
Tianhao He
8503fcd9a0 Merge pull request #30 from tianhao64/master
Improve sample code
2017-08-18 04:49:14 -07:00
Tianhao He
abe05ece27 Improve sample code
1. Make sample code more consistent
2. Improve input parameter parser

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-08-18 04:46:18 -07:00
Tianhao He
47e6c610c4 Merge pull request #29 from tianhao64/master
Remove run_sample.sh and add a password arg for main.py
2017-08-17 11:39:01 -07:00
Pavan Bidkar
44222e1dee Fixed argument name in main.py to vcenterpassword, which was differing with build_arg_parser() from setup_cli.py. Added Argument in help text (#3)
Signed-off-by: Pavan Bidkar pbidkar@vmware.com

Signed-off-by: pgbidkar <pbidkar@vmware.com>
2017-08-17 11:23:35 -07:00
Tianhao He
be279fb622 add vc password parameter 2017-08-17 00:27:34 -07:00