Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get mcis access info feature #1218

Merged
merged 1 commit into from
Oct 20, 2022
Merged

Conversation

seokho-son
Copy link
Member

MCIS에 포함된 VM 및 NLB의 접속 정보 (IP, DNS 등)을 종합적으로 리턴하는 기능
(CB-MapUI에 적용하여, SSH 키 다운로드 및 쉬운 접속에 활용)

Request URL

http://localhost:1323/tumblebug/ns/ns01/mcis/mcis01?option=accessinfo

Server response

Code Details
200 Response body { "McisId": "mcis01", "McisSubGroupAccessInfo": [ { "SubGroupId": "g1", "nlbListener": { "protocol": "", "ip": "", "port": "", "dnsName": "", "keyValueList": null }, "McisVmAccessInfo": [ { "vmId": "g1-1", "publicIP": "13.125.209.56", "privateIP": "192.168.20.133", "sshPort": "22", "privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAz21/aE1qLfUlBTT0dSZpOkKYGvnIIcj2U07CyDckTcWKj7Ua\nkJL+5m9GtWQOBGAiN2z+nsjaYT3Bf81i2XFsKB2xWXYNpbOVvbyMNJyiRZpxLGeE\nyJOMXDaOBvxWC+X+j6fKEfcRCkxaU4K00Pe2XpLa1I5nKpvkWD20PBc6bxNWBVyP\nCU9hLF9TEBhOYZhoqMI/eb7B4J27RINZ91KjaOXBYTLghI3YkPQgXbFEk+PuM6xo\nG8ceUZi4rmiH5UoLPB+1zC7doAt2dgLd2kIHFH55wtfINaW+ArakKbx8fGVj0RfZ\nutBWU2ItH25TBTXAA+lK8lwB6WkYWSukkA1JdQIDAQABAoIBAAGOpOI3kpB9wqVj\nXGJ0w114moO5VFNMmuzNLpEqOM+MqBmkFmr3b4pzU2iRM7m8rwUTgGXYxCrut8Ep\n3ZAcVd+HOYmeZUPVMU6XV8YdVuqG2kqnDEwlL2yRzEcpJcw5EcwqSk4QOMSHBjaS\nSKE4+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F7syuAEjKZ+2f1mkg8x\n-----END RSA PRIVATE KEY-----" }, { "vmId": "g1-2", "publicIP": "43.201.72.240", "privateIP": "192.168.20.172", "sshPort": "22", "privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAz21/aE1qLfUlBTT0dSZpOkKYGvnIIcj2U07CyDckTcWKj7Ua\nkJL+5m9GtWQOBGAiN2z+nsjaYT3Bf81i2XFsKB2xWXYNpbOVvbyMNJyiRZpxLGeE\nyJOMXDaOBvxWC+X+j6fKEfcRCkxaU4K00Pe2XpLa1I5nKpvkWD20PBc6bxNWBVyP\nCU9hLF9TEBhOYZhoqMI/eb7B4J27RINZ91KjaOXBYTLghI3YkPQgXbFEk+PuM6xo\nG8ceUZi4rmiH5UoLPB+1zC7doAt2dgLd2kIHFH55wtfINaW+ArakKbx8fGVj0RfZ\nutBWU2ItH25TBTXAA+lK8lwB6WkYWSukkA1JdQIDAQABAoIBAAGOpOI3kpB9wqVj\nXGJ0w114moO5VFNMmuzNLpEqOM+MqBmkFmr3b4pzU2iRM7m8rwUTgGXYxCrut8Ep\n3ZAcVd+HOYmeZUPVMU6XV8YdVuqG2kqnDEwlL2yRzEcpJcw5EcwqSk4QOMSHBjaS\nSKE4+tmC6LmnyAZ93Rz8eZnp4rpqu0QBsnUmQCdfsMGV45rQGkjYG1mddHYchrxf\nwPDUu50yEKS/BU25yE63Dr/+XePOec3ed4xeuzXLJ4WTls+owF68WO1uTxLvMQoe\nNHlTgT6L56mWxoGWAraubPTW5COH+tlgafjqkkYrqd8ozxKAg3nVsR39H5cvhGQl\nJWpIZgECgYEA/9D2f6djgUbY5z2+k07Bs+CSIWDDnrzaFrEJdo5BXe1GnTHoC5hG\ncz5LvFgD1KCf+LdQ3PxrtehP60EbaEgA2di4ZZTMcLiIyGXH4iYstCm/WXdUaKg0\nqSyYuckuXIqDqXs/i5PPz0+1IDnGpNlC5Oj0mgx48OGi1J7hj+YRnFUCgYEAz5Oj\nN4cELA87bT0zpeUzyy8COlcATP3JcigI0F/fFrDcn5mdBGeNGiMeQzcMMnYyeG2l\nu5j3uU8UFeRl5bqm1hPw2rz8LdGExluM4vjG+m9aEwekn+KBk2+KVOfrRjqqYCIy\nI9WMZVPWp4aaCAazYz/PxeCO/iNLsCGN86kKGKECgYBW9au1fStAGNtG0CBmZtFF\n2kMSgZg976ibKhcza+wgh7YHXZ2pw1u/dR+9qJW0w91daMNeO5hJv+za5cjxS/iu\nFROpxEky0Cf/J0opQBzWKZLYUM4qvXMZRwWrsg3Ge3eCN1lEkzyDFm9Vww4Zn5kz\nw1TSwQajq6/0YwX+KpE1+QKBgC6RsclwWghEdpGgbGjojgEkj7xk7mVXfo1E3A1b\npOIjVavcu7RUQvy9KjnsLKlZiSMpfkgjHliNnDT5I78xa+KVYLDCO1VQLxiNS4NU\nSte+iZfBXDaei3F3UbKQwWDlInok0djmPPQypfK5qO7qCe7XTxbWtV3gr0dZj849\ne01hAoGBAKVQM6nyEeyKtAP+o/Lrdb2pIa5WiREDwfhT6lW3bpsDyYAIFumwaLN4\nDs9X6Jbr9nqwvknGM

image

@lgtm-com
Copy link

lgtm-com bot commented Oct 19, 2022

This pull request introduces 4 alerts when merging 816e48e into 957273f - view on LGTM.com

new alerts:

  • 4 for Log entries created from user input

@jihoon-seo
Copy link
Member

Server response (Pretty JSON)

{
  "McisId": "mcis01",
  "McisSubGroupAccessInfo": [
    {
      "SubGroupId": "g1",
      "nlbListener": {
        "protocol": "",
        "ip": "",
        "port": "",
        "dnsName": "",
        "keyValueList": null
      },
      "McisVmAccessInfo": [
        {
          "vmId": "g1-1",
          "publicIP": "13.125.209.56",
          "privateIP": "192.168.20.133",
          "sshPort": "22",
          "privateKey": "-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----"
        },
        {
          "vmId": "g1-2",
          "publicIP": "43.201.72.240",
          "privateIP": "192.168.20.172",
          "sshPort": "22",
          "privateKey": "-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----"
        }
      ]
    }
  ]
}

해당 subgroup에 매치되는 NLB가 없는 경우

      "nlbListener": {
        "protocol": "",
        "ip": "",
        "port": "",
        "dnsName": "",
        "keyValueList": null
      },

이렇게 표시되는 상태인가보네용.. ㅎㅎ

@jihoon-seo jihoon-seo merged commit 498e7f1 into cloud-barista:main Oct 20, 2022
@seokho-son
Copy link
Member Author

related with cloud-barista/cb-mapui#76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants