ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yurii Shylov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-8353) Repository Version Management - Create subresource for hosts and clusters
Date Mon, 17 Nov 2014 18:20:33 GMT
Yurii Shylov created AMBARI-8353:
------------------------------------

             Summary: Repository Version Management - Create subresource for hosts and clusters
                 Key: AMBARI-8353
                 URL: https://issues.apache.org/jira/browse/AMBARI-8353
             Project: Ambari
          Issue Type: Task
          Components: ambari-server
    Affects Versions: 2.0.0
            Reporter: Yurii Shylov
            Assignee: Yurii Shylov
             Fix For: 2.0.0


{code}
GET /api/v1/clusters/c1/stack_versions
{
  "items": [
    "ClusterStackVersions": {
      "id": 1,
      "cluster_name": "c1"
    }
  ]
}

{code}

{code}
GET /api/v1/hosts/host1/stack_versions
{
  "items": [
    "HostStackVersions": {
      "id": 1,
      "host_name": "host1"
    }
  ]
}

{code}

{code}
GET /api/v1/clusters/c1/stack_versions/1
{
  "ClusterStackVersions": {
    "id": 1,
    "cluster_name": "c1",
    "stack": "HDP",
    "version": "2.2.0.1-885",
    "state": "INSTALLING"
    "installed_hosts": ["host1", "host2"],
    "current_hosts": ["host1"],
    "repositories": [
      {
        "os": "redhat6",
        "baseurls": [
          {
            "id": "HDP-2.2.0.1-885",
            "type": "HDP",
            "baseurl": "http://host1/hdp"
          },
          {
            "id": "HDP-UTILS-1.0.0.20",
            "type": "HDP-UTILS",
            "baseurl": "http://host1/hdp-utils"
          }
        ]
      }
    ]
  }
}
{code}

{code}
GET /api/v1/hosts/host1/stack_versions/1
{
  "HostStackVersions": {
    "id": 1,
    "host_name": "host1",
    "stack": "HDP",
    "version": "2.2.0.1-885",
    "state": "INSTALLING"
    "repositories": [
      {
        "os": "redhat6",
        "baseurls": [
          {
            "id": "HDP-2.2.0.1-885",
            "type": "HDP",
            "baseurl": "http://host1/hdp"
          },
          {
            "id": "HDP-UTILS-1.0.0.20",
            "type": "HDP-UTILS",
            "baseurl": "http://host1/hdp-utils"
          }
        ]
      }
    ]
  }
}

{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message