This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pyVmomi | |
import argparse | |
import atexit | |
import itertools | |
from pyVmomi import vim, vmodl | |
from pyVim.connect import SmartConnect, Disconnect | |
import humanize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
""" | |
This simple script makes it easy to create server certificates | |
that are signed by your own Certificate Authority. | |
Mostly, this script just automates the workflow explained | |
in http://www.tc.umn.edu/~brams006/selfsign.html. | |
Before using this script, you'll need to create a private |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# synchronous api | |
# response = sg.client.mail.send.post(request_body=data) | |
# except urllib.error.HTTPError as exc: | |
# async implementation | |
api_endpoint = 'https://api.sendgrid.com/v3/mail/send' | |
headers = {'Authorization': f'Bearer {sendgrid_api_key}', | |
'Content-Type': 'application/json'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"msg":"","result":"{\"CTGBackbone\":[{\"backconeid\":\"df30f650-7027-3686-9d01-68fde89b41bb\",\"connectionInfo\":{\"bandwidth\":\"500\",\"bandwidthUnit\":\"Mbps\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"2\"},\"connectionPoints\":{\"destinationPE\":{\"cVlanId\":0,\"sVlanId\":0,\"eaPermitNumber\":\"12-G120-230733\",\"interfaceId\":\"10\",\"interfaceSerialNumber\":\"4J5FWH3\",\"interfaceType\":\"NNI\",\"making\":\"SD-WAN BX4000\",\"peAddress\":{\"geoPoint\":{\"lat\":59.344425,\"lon\":18.064489},\"addressType\":\"virtual\",\"serviceCity\":\"string\",\"cloudProvider\":\"string\",\"countryRegion\":\"string\",\"serviceRegion\":\"string\",\"cloudConnectId\":\"string\",\"cloudInterfaceType\":\"Direct\"},\"peId\":\"d1c40470-9175-4d7e-88e4-4c744467061e\",\"wanIp\":{\"ipType\":\"static\",\"portId\":\"string\",\"portType\":\"UNI\",\"ipAddress\":{\"ipList\":\"2.2.2.2\",\"addressType\":\"Ipv4\"},\"portTypeId\":\"123\"}},\"linkType\":\"pe-pe\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"msg":"","result":"[{\"backconeContent\":[{\"backboneConnectionInfo\":{\"bandwidth\":\"200\",\"bandwidthUnit\":\"Mbps\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"8lwx90cmoxgvk24h\"},\"backboneConnectionPoints\":{\"destinationPE\":{\"cVlanId\":53,\"sVlanId\":52,\"eaPermitNumber\":\"1\",\"interfaceId\":\"1\",\"interfaceSerialNumber\":\"ec640774738f2cf04071ec1d76c7c\",\"interfaceType\":\"UNI\",\"making\":\"BX3000\",\"peAddress\":{\"addressType\":\"physical\",\"buildingName\":\"4\",\"city\":\"西雅图\",\"countryRegion\":\"美国\",\"floor\":\"1\",\"geoPoint\":{\"lat\":47.6062095,\"lon\":-122.3320708},\"officeNumber\":\"3433\",\"postalCode\":\"200316\",\"province\":\"zhejiang\",\"rackNumber\":\"5\",\"streetName\":\"xihu avenu\",\"streetNumber\":\"1516\"},\"peId\":\"HB20190107000039\",\"wanIp\":{\"ipAddress\":{\"addressType\":\"Ipv4\",\"ipList\":\"2.2.2.2\"},\"ipType\":\"static\",\"portId\":\"string\",\"portType\":\"UNI\",\"portTypeId\":\"123\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"msg":"","result":"[{\"completionDate\":\"2023-05-24T00:00:00.000Z\",\"content\":[{\"connectionInfo\":{\"bandwidth\":\"569\",\"bandwidthUnit\":\"Gbps\",\"buyerId\":\"dAafuXfGWgyOBZU9\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"232\"},\"connectionPoints\":{\"boneId\":\"2dd35e62aa4b24adcfcccfed32803ca8\",\"destinationPE\":{\"cVlanId\":0,\"eaPermitNumber\":\"1000\",\"interfaceId\":\"32\",\"interfaceSerialNumber\":\"e62aa4b24adcfcccfed32803c\",\"interfaceType\":\"NNI\",\"making\":\"DELL\",\"peAddress\":{\"addressType\":\"physical\",\"buildingName\":\"65 Dachak-ro\",\"city\":\"首尔\",\"countryRegion\":\"韩国\",\"floor\":\"12\",\"geoPoint\":{\"lat\":37.5518911,\"lon\":126.9917937},\"officeNumber\":\"180-11224-1424\",\"postalCode\":\"string\",\"province\":\"string\",\"rackNumber\":\"1\",\"streetName\":\"Ihwa-dong\",\"streetNumber\":\"65 Dachak-ro\"},\"peId\":\"333\",\"sVlanId\":0,\"wanIp\":{\"ipAddress\":\"CT Dynamic\",\"ipType\":\"dynamic\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"msg":"","result":"{\"completionDate\":\"2023-05-28T00:00:00.000Z\",\"content\":[{\"connectionInfo\":{\"bandwidth\":\"1099\",\"bandwidthUnit\":\"Gbps\",\"buyerId\":\"dAafuXfGWgyOBZU9\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"string\"},\"connectionPoints\":{\"boneId\":\"df30f650-7027-3686-9d01-68fde89b41bb\",\"destinationPE\":{\"cVlanId\":0,\"eaPermitNumber\":\"1000\",\"interfaceId\":\"32\",\"interfaceSerialNumber\":\"e62aa4b24adcfcccfed32803c\",\"interfaceType\":\"NNI\",\"making\":\"DELL\",\"peAddress\":{\"addressType\":\"physical\",\"buildingName\":\"65 Dachak-ro\",\"city\":\"首尔\",\"countryRegion\":\"韩国\",\"floor\":\"12\",\"geoPoint\":{\"lat\":37.5518911,\"lon\":126.9917937,},\"officeNumber\":\"180-11224-1424\",\"postalCode\":\"string\",\"province\":\"string\",\"rackNumber\":\"1\",\"streetName\":\"Ihwa-dong\",\"streetNumber\":\"65 Dachak-ro\"},\"peId\":\"string\",\"sVlanId\":0,\"wanIp\":{\"ipAddress\":\"CT Dynamic\",\"ipType\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"msg":"","result":{\"CMIBackbone\":[{\"backconeid\":\"df30f650-7027-3686-9d01-68fde89b41bb\",\"connectionInfo\":{\"bandwidth\":500,\"bandwidthUnit\":\"Mbps\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"string\"},\"connectionPoints\":{\"destinationPE\":{\"id\":3,\"neId\":\"2390\",\"peName\":\"ap-hongkong-pop-pl1\",\"cVlanId\":0,\"eaPermitNumber\":\"12-G120-230733\",\"interfaceSerialNumber\":\"4J5FWH3\",\"interfaceType\":\"NNI\",\"making\":\"SD-WAN BX4000\",\"interfaceId\":\"10\",\"peAddress\":{\"city\":\"香港\",\"floor\":\"4\",\"geoPoint\":{\"lat\":114.276852,\"lon\":22.286531},\"province\":\"香港\",\"postalCode\":\"999077\",\"rackNumber\":\"HA12\",\"streetName\":\"西贡区将军澳工业村骏昌街3号3\",\"addressType\":\"physical\",\"buildingName\":\"将军澳机房\",\"officeNumber\":\"香港特别行政区西贡区将军澳工业村骏昌街3号\",\"streetNumber\":\"3号\",\"countryRegion\":\"中国\"},\"peId\":null,\"sVlanId\":0,\"wanIp\":{\"ipType\":\"static\",\"portId\":\"10\",\"portName\":\"eth1\",\"portTy |
OlderNewer