Posts

Showing posts from March, 2021

Using VMware Cloud on AWS SDDC-Group APIs (Part 4)

Image
Gilles Chekroun
 Lead VMware Cloud on AWS Solutions Architect --- Following the  Part1 ,    Part2  and Part3 I am adding now more description and use of SDDC Grouping APIs. In this article, I will focus on: Add/Remove Direct Connect Gateway Association Detailed SDDC Group info Static vTGW routes for VPCs Add Direct Connect Gateway Association On AWS Console, create a DX Gateway and note the DXGW ID for the config.ini parameters The SDDC Grouping API for DXGW Association is: A code example would be: def attach_dxgw ( routes , resource_id , org_id , dxgw_owner , dxgw_id , region , session_token ): myHeader = { 'csp-auth-token' : session_token} myURL = " {} /network/ {} /aws/operations" .format(BaseURL, org_id) body = { "type" : &q

Using VMware Cloud on AWS SDDC-Group APIs (Part 3)

Image
Gilles Chekroun
 Lead VMware Cloud on AWS Solutions Architect --- Following the  Part1  and Part2 I am adding more description and use of SDDC Grouping APIs. In this article, I will focus on: Adding / removing AWS account Accepting / removing Customer VPC attachments Adding Customer AWS account The API to use for that is: def connect_aws_account ( account , region , resource_id , org_id , session_token ): myHeader = { 'csp-auth-token' : session_token} myURL = " {} /network/ {} /aws/operations" .format(BaseURL, org_id) body = { "type" : "ADD_EXTERNAL_ACCOUNT" , "resource_id" : resource_id, "resource_type" : "network-connectivity-config" , "config" : { "type" : "AwsAddExternalAccountConfig" , "account" : {