You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Yurii Shylov (JIRA)" <ji...@apache.org> on 2015/01/19 19:42:34 UTC
[jira] [Updated] (AMBARI-9203) Repository Version Management > Base
URL validation
[ https://issues.apache.org/jira/browse/AMBARI-9203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yurii Shylov updated AMBARI-9203:
---------------------------------
Attachment: AMBARI-9203.patch
> Repository Version Management > Base URL validation
> ---------------------------------------------------
>
> Key: AMBARI-9203
> URL: https://issues.apache.org/jira/browse/AMBARI-9203
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.0.0
> Reporter: Yurii Shylov
> Assignee: Yurii Shylov
> Fix For: 2.0.0
>
> Attachments: AMBARI-9203.patch
>
>
> Add new API for base url validations:
> {code}
> POST http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/operating_systems/redhat6/repositories/?validate_only=true
> {
> "Repositories": {
> "repo_id":"HDP-2.2",
> "base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0"
> }
> }
> {code}
> or
> {code}
> POST http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/operating_systems/redhat6/repositories/HDP-2.2?validate_only=true
> {
> "Repositories": {
> "base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0"
> }
> }
> {code}
> or
> {code}
> [
> {
> "Repositories": {
> "repo_id":"HDP-2.2",
> "base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0"
> }
> },
> {
> "Repositories": {
> "repo_id":"HDP-2.2",
> "base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0"
> }
> }
> ]
> {code}
> should result in 2xx status response *without* creating a new resource if base url is valid or 5xx status if invalid.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)