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 power edge details to workspace data source #5205

Merged
merged 8 commits into from
Apr 15, 2024

Conversation

ismirlia
Copy link
Collaborator

This PR adds power edge router attributes to the workspace and workspaces data source.

What new workspacesdata source looks like:

example = {
  "id" = "103e52d4-cf4e-447d-8c6d-37145b53c3dd"
  "pi_cloud_instance_id" = "103e52d4-cf4e-447d-8c6d-37145b53c3dd"
  "pi_workspace_capabilities" = tomap({
    "cloud-connections" = false
    "custom-virtual-cores" = true
    "dedicated-hosts" = false
    "flexible-iops" = false
    "power-edge-router" = true
    "power-vpn-connections" = false
    "transit-gateway-connection" = true
  })
  "pi_workspace_details" = tolist([
    {
      "creation_date" = "2021-07-21T23:07:33.679Z"
      "crn" = "crn:v1:staging:public:power-iaas:dal12:a/efe5e8b9d3f04b948790fe5499bd18bc:103e52d4-cf4e-447d-8c6d-37145b53c3dd::"
      "power_edge_router" = tolist([
        {
          "migration_status" = "completed"
          "state" = "active"
          "type" = "manual"
        },
      ])
    },
  ])
  "pi_workspace_location" = tomap({
    "region" = "dal12"
    "type" = "data-center"
    "url" = "https://dal.power-iaas.test.cloud.ibm.com"
  })
  "pi_workspace_name" = "PowerNS-Dev01"
  "pi_workspace_status" = "active"
  "pi_workspace_type" = "off-premises"
}

What new workspaces data source looks like:

example = {
  "id" = "cc10d2a6-72b2-c506-1d0a-c4fe15d318e4"
  "pi_cloud_instance_id" = "103e52d4-cf4e-447d-8c6d-37145b53c3dd"
  "workspaces" = tolist([
    {
      "pi_workspace_capabilities" = tomap({
        "cloud-connections" = false
        "power-edge-router" = false
        "power-vpn-connections" = false
        "transit-gateway-connection" = false
      })
      "pi_workspace_details" = tolist([
        {
          "creation_date" = "2024-02-27T13:51:30.328Z"
          "crn" = "crn:v1:staging:public:power-iaas:che01:a/efe5e8b9d3f04b948790fe5499bd18bc:4a9bbe43-d3a9-4470-85e9-f8a0ee14ffc1::"
          "power_edge_router" = tolist([])
        },
      ])
      "pi_workspace_id" = "4a9bbe43-d3a9-4470-85e9-f8a0ee14ffc1"
      "pi_workspace_location" = tomap({
        "region" = "che01"
        "type" = "data-center"
        "url" = "https://dal.power-iaas.test.cloud.ibm.com"
      })
      "pi_workspace_name" = "thejas_ch1"
      "pi_workspace_status" = "failed"
      "pi_workspace_type" = "off-premises"
    },
    {
      "pi_workspace_capabilities" = tomap({
        "cloud-connections" = false
        "power-edge-router" = false
        "power-vpn-connections" = false
        "transit-gateway-connection" = false
      })
      "pi_workspace_details" = tolist([
        {
          "creation_date" = "2024-02-21T21:51:14.708Z"
          "crn" = "crn:v1:staging:public:power-iaas:wdc06-pvs-01:a/efe5e8b9d3f04b948790fe5499bd18bc:b88ce2fd-d08c-448f-a723-055b221db967::"
          "power_edge_router" = tolist([])
        },
      ])
      "pi_workspace_id" = "b88ce2fd-d08c-448f-a723-055b221db967"
      "pi_workspace_location" = tomap({
        "region" = "wdc06-pvs-01"
        "type" = "data-center"
        "url" = "https://eu-de.power-iaas.test.cloud.ibm.com"
      })
      "pi_workspace_name" = "zyh-bss-test-wdc06-pvs-01"
      "pi_workspace_status" = "failed"
      "pi_workspace_type" = "off-premises"
    },
  ])
}

@ismirlia ismirlia added the service/Power Systems Issues related to Power Systems label Mar 14, 2024
@hkantare hkantare merged commit a5201f3 into IBM-Cloud:master Apr 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Power Systems Issues related to Power Systems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants