You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by al...@apache.org on 2015/03/06 17:42:10 UTC

[1/2] incubator-brooklyn git commit: Adds instructions for deprecating a catalog item

Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master 580e96ff0 -> c6e09bf0d


Adds instructions for deprecating a catalog item


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/69215f87
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/69215f87
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/69215f87

Branch: refs/heads/master
Commit: 69215f8705541c612313b42ee153afe7088f19ed
Parents: 2066ea9
Author: Martin Harris <gi...@nakomis.com>
Authored: Fri Mar 6 11:11:49 2015 +0000
Committer: Martin Harris <gi...@nakomis.com>
Committed: Fri Mar 6 11:11:49 2015 +0000

----------------------------------------------------------------------
 docs/guide/ops/catalog/index.md | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/69215f87/docs/guide/ops/catalog/index.md
----------------------------------------------------------------------
diff --git a/docs/guide/ops/catalog/index.md b/docs/guide/ops/catalog/index.md
index 123cc40..dd1b991 100644
--- a/docs/guide/ops/catalog/index.md
+++ b/docs/guide/ops/catalog/index.md
@@ -83,7 +83,7 @@ curl http://127.0.0.1:8081/v1/catalog --data-binary @/path/to/mysql-catalog.yaml
 
 ### Deleting from the Catalog
 
-You can delete a versioned item from the catalog using the same endpoint at the REST API. 
+You can delete a versioned item from the catalog using the same endpoint as the REST API. 
 For example, to delete the item with id `my-MySQL` and version `1.0` with `curl`:
 
 {% highlight bash %}
@@ -93,6 +93,17 @@ curl -X DELETE http://127.0.0.1:8081/v1/catalog/entities/MySQL/1.0
 **Note:** Catalog items should not be deleted if there are running apps which were created using the same item. 
 During rebinding the catalog item is used to reconstruct the entity.
 
+If you have running apps which were created using the item you wish to delete, you should instead deprecate the catalog item.
+Deprecated catalog items will not appear in the add application wizard, or in the catalog list but will still
+be available to Brooklyn for rebinding. The option to display deprecated catalog items in the catalog list will be added
+in a future release.
+
+Deprecation applies to a specific version of a catalog item, so the full
+id including the version number is passed to the REST API as follows:
+
+{% highlight bash %}
+curl -X POST http://127.0.0.1:8081/v1/catalog/entities/MySQL:1.0/deprecated/true
+{% endhighlight %}
 
 ### Versioning
 


[2/2] incubator-brooklyn git commit: This closes #541

Posted by al...@apache.org.
This closes #541


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/c6e09bf0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/c6e09bf0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/c6e09bf0

Branch: refs/heads/master
Commit: c6e09bf0d6621349f430ace926825252390f2771
Parents: 580e96f 69215f8
Author: Aled Sage <al...@gmail.com>
Authored: Fri Mar 6 16:41:44 2015 +0000
Committer: Aled Sage <al...@gmail.com>
Committed: Fri Mar 6 16:41:44 2015 +0000

----------------------------------------------------------------------
 docs/guide/ops/catalog/index.md | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------