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

28 Commits

Author SHA1 Message Date
Tripti Attavar
39658ffa77 Add NSXT sample for NAT and CGW firewall
CRUD Public IP
CRUD NAT Rule
CRUD Group
CRUD CGW Firewall

Signed-Off-By: Tripti Attavar <tattavar@vmware.com>
2019-06-05 17:53:52 -07:00
Ajoy Aswadhati
8b55a3f96d fixed year in Copyright
Signed-off-by: Ajoy Aswadhati <aaswadhati@vmware.com>
2019-04-16 13:49:32 -07:00
Ajoy Aswadhati
32b136c980 Added NSXT sample that demonstrates the following operations:
- GET Infra, Tier1s
- GET segments
- GET domains
- Firewall CRUD operations

Signed-off-by: Ajoy Aswadhati <aaswadhati@vmware.com>
2019-04-15 13:49:27 -07:00
Tianhao He
6195ed7948 add list vmc task sample
Signed-off-by: Tianhao He <het@vmware.com>
2019-03-14 18:09:02 +08:00
Tianhao He
e610a71b97 add cancel task sample
Signed-off-by: Tianhao He <het@vmware.com>
2019-03-13 16:39:54 +08:00
Tianhao He
e15ee32793
Merge pull request #138 from tianhao64/master
add security group crud samples
2019-03-12 11:25:59 +08:00
Gordon Good
5e2ebfe1d4 Add networks_nsxt dir, simple example
Define a directory for NSX-T sample code. Add a basic
example that shows how to authenticate to VMC/NSX-T and
make a simple read call.

Signed-Off-By: Gordon Good <ggood@vmware.com>
2019-03-11 12:40:39 -07:00
Tianhao He
64eeae9299 add security group crud samples
Signed-off-by: Tianhao He <het@vmware.com>
2019-03-11 20:50:07 +08:00
Tianhao He
3d1a6d8c14 change network samples folder name to network_nsxv 2019-03-07 12:01:34 +08:00
Tianhao He
dd078bb9f7 update vmc add remove host sample
Signed-off-by: Tianhao He <het@vmware.com>
2019-02-12 10:33:31 +08:00
Tianhao He
4032e4cbb0 Add opaque network to deployed ovf
Signed-off-by: Tianhao He <het@vmware.com>
2019-01-31 13:34:15 +08:00
het
18b2ed120a Remove tabulate from the dependency list
Signed-off-by: het <het@vmware.com>
2018-11-22 15:51:29 +08:00
Tianhao He
285a06b261
Update deploy_ovf_template.py 2018-08-23 15:35:03 -07:00
Tianhao He
6b344229ce add account linking config when creating sddc
Signed-off-by: Tianhao He <het@vmware.com>
2018-06-15 13:25:11 +08:00
Alan Renouf
b7d7c57448
Updated VMC Readme
API is no longer in preview
2018-06-12 10:29:19 -07:00
Tianhao He
a60dcd567b Add README to describe VMC sddc samples and their prerequisites.
Signed-off-by: Tianhao He <het@vmware.com>
2018-06-06 14:13:13 -07:00
Tianhao He
40564950a2 add deploy ovf template in cloud sddc sample
Signed-off-by: Tianhao He <het@vmware.com>
2018-06-01 07:59:03 +08: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
60aa0d8266 update api docs
Signed-off-by: Tianhao He <het@vmware.com>
2018-04-26 16:30:40 -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
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
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
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
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
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