Skip to content

Instantly share code, notes, and snippets.

{
"RequestId": "66B079D9-196D-5FA4-BAC8-A10912A3A7E4",
"AvailableZones": {
"AvailableZone": [
{
"Status": "Available",
"StatusCategory": "WithStock",
"ZoneId": "cn-beijing-f",
"AvailableResources": {
"AvailableResource": [
This file has been truncated, but you can view the full file.
{
"RequestId": "2FCC263D-D7C8-556E-9388-BBD8A983B019",
"NextToken": "",
"InstanceTypes": {
"InstanceType": [
{
"NvmeSupport": "unsupported",
"PrimaryEniQueueNumber": 1,
"TotalEniQueueQuantity": 1,
"EniTrunkSupported": false,
#!/bin/bash
# by YunKon.KIM
echo "Go setup script"
echo ""
echo "1. Change direcotry to your home directory"
cd $HOME
echo""
#!/bin/bash
# by YunKon.KIM
echo "Go setup script"
echo ""
echo "1. Change direcotry to your home directory"
cd $HOME
echo""
@powerkimhub
powerkimhub / <Mission-2: Go 개발 환경 및 Test>
Last active August 11, 2020 12:29
<Mission-2: Go 개발 환경 및 Test>
## 생성 VM 내부에서 실행
# 1. pkg 목록 update // 현재는 불필요하지만...
# 2. go 개발 환경 설치 // apt install 사용하지 마시고요..
# 3. Test
# 1. pkg 목록 update
sudo apt update
# 2. go 개발 환경 설치
wget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz
@powerkimhub
powerkimhub / (CB-Spider)_Test-Scripts-for-IID-Workgin-Version.sh
Last active April 16, 2020 13:37
Test Scripts for CB-Spider IID Working Version - 2020.04.16.
##################
## Test Scripts for CB-Spider IID Working Version - 2020.04.16.
##################
## <Azure> VPC: Create -> List -> Get -> Delete
curl -sX POST http://localhost:1024/spider/vpc -H 'Content-Type: application/json' -d '{ "ConnectionName": "azure-northeu-config", "ReqInfo": { "IId": {"NameId": "VPC-01", "SystemId": ""}, "IPv4_CIDR": "192.168.0.0/16", "SubnetInfoList": [ { "IId": {"NameId": "Subnet-01", "SystemId": ""}, "IPv4_CIDR": "192.168.1.0/24"} ] } }' |json_pp
curl -sX GET http://localhost:1024/spider/vpc -H 'Content-Type: application/json' -d '{ "ConnectionName": "azure-northeu-config"}' |json_pp
curl -sX GET http://localhost:1024/spider/vpc/VPC-01 -H 'Content-Type: application/json' -d '{ "ConnectionName": "azure-northeu-config"}' |json_pp
curl -sX DELETE http://localhost:1024/spider/vpc/VPC-01 -H 'Content-Type: application/json' -d '{ "ConnectionName": "azure-northeu-config"}' |json_pp
## <Azure> SecurityGroup: Create -> List -> Get -> Delete
## <AWS>
curl -sX GET http://localhost:1024/spider/vmspec -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-tokyo-config" }' | json_pp
curl -sX GET http://localhost:1024/spider/vmspec/r5.4xlarge -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-tokyo-config" }' | json_pp
curl -sX GET http://localhost:1024/spider/vmorgspec -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-tokyo-config" }' | json_pp
curl -sX GET http://localhost:1024/spider/vmorgspec/r5.4xlarge -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-tokyo-config" }' | json_pp
## <Azure>
curl -sX GET http://localhost:1024/spider/vmspec -H 'Content-Type: application/json' -d '{ "ConnectionName": "azure-northeu-config" }' | json_pp
curl -sX GET http://localhost:1024/spider/vmspec/Standard_H16mr_Promo -H 'Content-Type: application/json' -d '{ "ConnectionName": "azure-northeu-config" }' | json_pp
## <AWS>
curl -sX GET http://localhost:1024/spider/vmspec/tokyo -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-tokyo-config" }' | json_pp
curl -sX GET http://localhost:1024/spider/vmspec/tokyo/r5.4xlarge -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-tokyo-config" }' | json_pp
# CSP original 정보
curl -sX GET http://localhost:1024/spider/vmorgspec/tokyo -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-tokyo-config" }' | json_pp
curl -sX GET http://localhost:1024/spider/vmorgspec/tokyo/r5.4xlarge -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-tokyo-config" }' | json_pp
## <Azure>
curl -sX GET http://localhost:1024/spider/vmspec/northeurope -H 'Content-Type: application/json' -d '{ "ConnectionName": "azure-northeu-config" }' | json_pp
@powerkimhub
powerkimhub / examples-security-group.sh
Created March 23, 2020 10:15
<CB-Spider REST API Examples>
- for 2020.03.23. Version
curl -sX POST http://localhost:1024/spider/securitygroup -H 'Content-Type: application/json' -d '{ "ConnectionName": "aws-ohio-config",
"ReqInfo": { "Name": "security01-powerkim", "SecurityRules": [ {"FromPort": "1", "ToPort" : "65535", "IPProtocol" : "tcp", "Direction" : "inbound"} ] } }'