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 API to extract and refine sites info from MCIS info #1577

Merged
merged 2 commits into from
May 21, 2024

Conversation

yunkon-kim
Copy link
Member

@yunkon-kim yunkon-kim commented May 21, 2024

  • Add structs (models) for sites info
  • Add a func to extract sites info
  • Add API handler and route

API response sample

{
  "nsId": "",
  "mcisId": "",
  "count": 3,
  "sites": {
    "aws": {
      "kdemo-ns01-systemdefault-aws-ap-northeast-2": {
        "csp": "aws",
        "region": "ap-northeast-2",
        "vnet": "subnet-0a49a31662ac3869e",
        "subnet": "subnet-0a49a31662ac3869e"
      }
    },
    "azure": {
      "kdemo-ns01-systemdefault-azure-koreacentral": {
        "csp": "azure",
        "region": "koreacentral",
        "vnet": "kdemo-ns01-kdemo-ns01-systemdefault-azure-k-cp2q6qp5e95jebpgcqbg",
        "gatewaySubnetCidr": "10.46.128.0/18",
        "resourceGroup": "koreacentral"
      }
    },
    "gcp": {
      "kdemo-ns01-systemdefault-gcp-asia-northeast3": {
        "csp": "gcp",
        "region": "asia-northeast3",
        "vnet": "kdemo-ns01-kdemo-ns01-systemdefault-gcp-as-cp2q70h5e95jebpgcqgg"
      }
    }
  }
}

* Add structs (models) for sites info
* Add a func to extract sites info
* Add API handler and route
@yunkon-kim
Copy link
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label May 21, 2024
@cb-github-robot cb-github-robot merged commit c2edb7a into cloud-barista:main May 21, 2024
4 checks passed
@yunkon-kim yunkon-kim deleted the 240521-11 branch June 10, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This PR is approved and will be merged soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants