hpe-container-platform-community / hpecp-python-library

Python library for working with HPE Container Platform (Prototype)
https://hpe-container-platform-community.github.io/hpecp-python-library/index.html
MIT License
15 stars 3 forks source link

Implement /api/v2/config #259

Open snowch opened 4 years ago

snowch commented 4 years ago

GET /api/v2/config

{
  "_links": {
    "self": {
      "href": "/api/v2/config"
    }
  },
  "tenant_independent_auth": false,
  "custom_install_name": "demo-hpecp",
  "epic_on_cloud": true,
  "bdprefix": "hpecp-",
  "bddomain": "demo.bdlocal",
  "fqdn_assignment_mode": "index_sequential",
  "k8s_versions": [
    "1.15.12",
    "1.16.13",
    "1.17.9",
    "1.18.6"
  ],
  "infosight": {
    "configured": false,
    "updating": false,
    "last-status": "none",
    "privacy-overrides": {
      "all": false
    },
    "claim-token": ""
  },
  "support_exthosts": true,
  "_embedded": {
    "auth": {
      "_links": {
        "self": {
          "href": "/api/v2/config/auth"
        }
      },
      "supported_external_identity_servers": [
        "LDAP",
        "Active Directory"
      ],
      "supported_sso_workflows": [
        "SAML"
      ],
      "available_authentication_methods": [
        "Active Directory",
        "Local"
      ],
      "external_identity_server": {
        "verify_peer": false,
        "type": "Active Directory",
        "bind_type": "search_bind",
        "host": "10.1.0.11",
        "port": 636,
        "base_dn": "CN=Users,DC=samdom,DC=example,DC=com",
        "bind_dn": "cn=Administrator,CN=Users,DC=samdom,DC=example,DC=com",
        "user_attribute": "sAMAccountName",
        "security_protocol": "ldaps"
      }
    },
    "tenant_types": {
      "_links": {
        "self": {
          "href": "/api/v2/config/tenant_types"
        }
      },
      "_embedded": {
        "docker": {
          "_links": {
            "self": {
              "href": "/api/v2/config/tenant_types/docker"
            }
          },
          "_embedded": {
            "capabilities": {
              "_links": {
                "self": {
                  "href": "/api/v2/config/tenant_types/docker/capabilities"
                }
              },
              "filesystem_mount_supported": true,
              "gpu_usage_supported": true,
              "cluster_isolation_supported": true,
              "constraints_supported": true,
              "persistent_supported": true
            }
          }
        },
        "k8s": {
          "_links": {
            "self": {
              "href": "/api/v2/config/tenant_types/k8s"
            }
          },
          "_embedded": {
            "capabilities": {
              "_links": {
                "self": {
                  "href": "/api/v2/config/tenant_types/k8s/capabilities"
                }
              },
              "filesystem_mount_supported": true,
              "gpu_usage_supported": true,
              "cluster_isolation_supported": false,
              "constraints_supported": false,
              "persistent_supported": false
            }
          }
        }
      }
    },
    "pers_stor": {
      "_links": {
        "self": {
          "href": "/api/v2/config/pers_stor"
        }
      },
      "_embedded": {
        "pers_stor": []
      }
    },
    "notification": {
      "_links": {
        "self": {
          "href": "/api/v2/config/notification"
        }
      }
    }
  }
}