|
...
|
...
|
@@ -1,4 +1,4 @@
|
|
1
|
|
-<!DOCTYPE HTML><html><head><title>OpenShiftV3 -- Draft API documentation</title><meta http-equiv=X-UA-Compatible content="IE=edge"><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=generator content="https://github.com/kevinrenskers/raml2html 1.0.3"><link rel=stylesheet href=http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css><link rel=stylesheet href=http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css><script type=text/javascript src=http://code.jquery.com/jquery-1.11.0.min.js></script><script type=text/javascript src=http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js></script><script type=text/javascript src=http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js></script><script type=text/javascript>
|
|
|
1
|
+<!DOCTYPE HTML><html><head><title>OpenShift 3 API documentation</title><meta http-equiv=X-UA-Compatible content="IE=edge"><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=generator content="https://github.com/kevinrenskers/raml2html 1.0.3"><link rel=stylesheet href=http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css><link rel=stylesheet href=http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/styles/default.min.css><script type=text/javascript src=http://code.jquery.com/jquery-1.11.0.min.js></script><script type=text/javascript src=http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js></script><script type=text/javascript src=http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js></script><script type=text/javascript>
|
|
2
|
2
|
$(document).ready(function() {
|
|
3
|
3
|
$('.page-header pre code, .top-resource-description pre code').each(function(i, block) {
|
|
4
|
4
|
hljs.highlightBlock(block);
|
|
...
|
...
|
@@ -110,43 +110,23 @@
|
|
110
|
110
|
.list-group-item:hover {
|
|
111
|
111
|
background-color: #f5f5f5;
|
|
112
|
112
|
}
|
|
113
|
|
- </style></head><body data-spy=scroll data-target=#sidebar><div class=container><div class=row><div class=col-md-9 role=main><div class=page-header><h1>OpenShiftV3 -- Draft API documentation <small>version alpha</small></h1><p>http://server/broker/rest</p><h3 id=Overview><a href=#Overview>Overview</a></h3><p>The 3.x model attempts to expose underlying Docker and Google models as accurately as possible, with a focus on easy composition of applications by a developer (install Ruby, push code, add MySQL). Unlike 2.x, more flexibility of configuration is exposed after creation in all aspects of the model. Terminology is still being weighed, but the concept of an application as a separate object is being removed in favor of more flexible composition of "services" - allowing two web containers to reuse a DB, or expose a DB directly to the edge of the network. The existing API will continue to be supported through 3.x, with concepts mapped as closely as possible to the new model.</p></div><div class="panel panel-default"><div class=panel-heading><h3 id=_projects class=panel-title>/projects</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__projects><span class=parent></span>/projects</a> <span class=methods><a href=# data-toggle=modal data-target=#_projects_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_projects_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__projects class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_projects_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all projects for your account.</p><p>Projects are a similar concept to v2 domains. A project is a grouping of services with shared access control and resource limits. Applications can be assembled from services in a project by linking them together via service endpoints.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_projects_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new project</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_projects_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/projects</h4></div><div class=modal-body><div class="alert alert-info"><p>List all projects for your account.</p><p>Projects are a similar concept to v2 domains. A project is a grouping of services with shared access control and resource limits. Applications can be assembled from services in a project by linking them together via service endpoints.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_projects_get_request data-toggle=tab>Request</a></li><li><a href=#_projects_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_projects_get_request></div><div class=tab-pane id=_projects_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
114
|
|
- "data":
|
|
|
113
|
+ </style></head><body data-spy=scroll data-target=#sidebar><div class=container><div class=row><div class=col-md-9 role=main><div class=page-header><h1>OpenShift 3 API documentation <small>version v1beta1</small></h1><p>http://localhost:8080/osapi/v1beta1</p><h3 id=Overview><a href=#Overview>Overview</a></h3><p>The OpenShift 3.x model attempts to expose underlying Docker and Kubernetes models as accurately as possible, with a focus on easy composition of applications by a developer (install Ruby, push code, add MySQL).</p><p>Unlike 2.x, more flexibility of configuration is exposed after creation in all aspects of the model. Terminology is still being weighed, but the concept of an application as a separate object is being removed in favor of more flexible composition of "services" - allowing two web containers to reuse a DB, or expose a DB directly to the edge of the network. The existing API will continue to be supported through 3.x, with concepts mapped as closely as possible to the new model.</p><h3 id=Kubernetes-API><a href=#Kubernetes-API>Kubernetes API</a></h3><p>OpenShift exposes <a href=http://htmlpreview.github.io/?https://github.com/GoogleCloudPlatform/kubernetes/blob/master/api/kubernetes.html>Kubernetes API</a> at <a href="http://localhost:8080/api/v1beta1/">http://localhost:8080/api/v1beta1/</a>.</p></div><div class="panel panel-default"><div class=panel-heading><h3 id=_aliases class=panel-title>/aliases (NOT IMPLEMENTED)</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__aliases><span class=parent></span>/aliases</a> <span class=methods><a href=# data-toggle=modal data-target=#_aliases_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_aliases_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__aliases class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_aliases_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all aliases visible to you.</p><p>Aliases in v3 perform the same function as aliases in v2. The main difference is that in v3 an alias is associated with a service, not an application.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_aliases_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create an alias for this service.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_aliases_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/aliases</h4></div><div class=modal-body><div class="alert alert-info"><p>List all aliases visible to you.</p><p>Aliases in v3 perform the same function as aliases in v2. The main difference is that in v3 an alias is associated with a service, not an application.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_aliases_get_request data-toggle=tab>Request</a></li><li><a href=#_aliases_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_aliases_get_request><h3>Query Parameters</h3><ul><li><strong>serviceID</strong>: <em>(string)</em><p>filter aliases by associated service.</p></li></ul></div><div class=tab-pane id=_aliases_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
114
|
+ "list":
|
|
115
|
115
|
[
|
|
116
|
116
|
{
|
|
117
|
|
- "id": "53c4249f076573c0f4000001",
|
|
118
|
|
- "suffix": "dev.rhcloud.com",
|
|
119
|
|
- "name": "mydomain",
|
|
120
|
|
- "members": [
|
|
121
|
|
- {
|
|
122
|
|
- "login": "adminuser",
|
|
123
|
|
- "role": "admin",
|
|
124
|
|
- "type": "user",
|
|
125
|
|
- "owner": true
|
|
126
|
|
- }
|
|
127
|
|
- ]
|
|
128
|
|
- },
|
|
129
|
|
- {
|
|
130
|
|
- "id": "54c4259f076573c0f4000023",
|
|
131
|
|
- "suffix": "dev.rhcloud.com",
|
|
132
|
|
- "name": "appdomain",
|
|
133
|
|
- "members": [
|
|
134
|
|
- {
|
|
135
|
|
- "login": "adminuser",
|
|
136
|
|
- "role": "admin",
|
|
137
|
|
- "type": "user",
|
|
138
|
|
- "owner": true
|
|
139
|
|
- }
|
|
140
|
|
- ]
|
|
|
117
|
+ "id": "myalias",
|
|
|
118
|
+ "ssl_certificate": "-----BEGIN CERTIFICATE-----\nMIIDoDCCAogCCQDzF8AJCHnrbjANBgkqhkiG9w0BAQUFADCBkTELMAkGA1UEBhMC\nVVMxCzAJBgNVBAgMAkNBMRIwEAYDVQQHDAlTdW5ueXZhbGUxDzANBgNVBAoMBnJl\nZGhhdDESMBAGA1UECwwJb3BlbnNoaWZ0MRIwEAYDVQQDDAlvcGVuc2hpZnQxKDAm\nBgkqhkiG9w0BCQEWGWluZm9Ab3BlbnNoaWZ0LnJlZGhhdC5jb20wHhcNMTMwMjE5\nMjExMTQ4WhcNMTQwMjE5MjExMTQ4WjCBkTELMAkGA1UEBhMCVVMxCzAJBgNVBAgM\nAkNBMRIwEAYDVQQHDAlTdW5ueXZhbGUxDzANBgNVBAoMBnJlZGhhdDESMBAGA1UE\nCwwJb3BlbnNoaWZ0MRIwEAYDVQQDDAlvcGVuc2hpZnQxKDAmBgkqhkiG9w0BCQEW\nGWluZm9Ab3BlbnNoaWZ0LnJlZGhhdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IB\nDwAwggEKAoIBAQDAEbH4MCi3iIDP1HS+/Xwu8SjdSc5WJX6htV7hJpmFZ8HohV/8\nba0v6aM9IJIIt+sIe2J62t/9G3leOdIHBxeACN4fV2l/iA/fvxvlnFKeD7sHm9Oc\nYj1H6YYJ57sIOf/oLDpJl6l3Rw8VC3+3W0/lzlVpA8qt7fpkiW7XQJCPplUSrdVC\n3okQ2T5NAod5+wVIOqELgE5bLX1LRs5VPsjytHkJ7rKXs55FHR3kpsoImn5xD0Ky\n6lRn8cIMolQoyN5HIGr8f5P+07hrHibve8jje/DKTssb5yEUAEmh6iGHQsRAnsUW\nQoIEUOLqQCu9re2No4G52Kl2xQIjyJF7rCfxAgMBAAEwDQYJKoZIhvcNAQEFBQAD\nggEBAGHrya/ZkiAje2kHsOajXMlO2+y1iLfUDcRLuEWpUa8sI5EM4YtemQrsupFp\n8lVYG5C4Vh8476oF9t8Wex5eH3ocwbSvPIUqE07hdmrubiMq4wxFVRYq7g9lHAnx\nl+bABuN/orbAcPcGAGg7AkXVoAc3Fza/ZcgMcw7NOtDTEss70V9OdgCfQUJL0KdO\nhCO8bQ1EaEiq6zEh8RpZe8mu+f/GYATX1I+eJUc6F6cn83oJjE9bqAVzk7TzTHeK\nEBKN50C14wWtXeG7n2+ugaVO+0xnvHeUrQBLHSRyOHqxXrQQ5XmzcaBiyI0f2IQM\nHst1BVXyX0n/L/ZoYYsv5juJmDo=\n-----END CERTIFICATE-----",
|
|
|
119
|
+ "private_key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEAwBGx+DAot4iAz9R0vv18LvEo3UnOViV+obVe4SaZhWfB6IVf\n/G2tL+mjPSCSCLfrCHtietrf/Rt5XjnSBwcXgAjeH1dpf4gP378b5ZxSng+7B5vT\nnGI9R+mGCee7CDn/6Cw6SZepd0cPFQt/t1tP5c5VaQPKre36ZIlu10CQj6ZVEq3V\nQt6JENk+TQKHefsFSDqhC4BOWy19S0bOVT7I8rR5Ce6yl7OeRR0d5KbKCJp+cQ9C\nsupUZ/HCDKJUKMjeRyBq/H+T/tO4ax4m73vI43vwyk7LG+chFABJoeohh0LEQJ7F\nFkKCBFDi6kArva3tjaOBudipdsUCI8iRe6wn8QIDAQABAoIBAG/on4JVRRQSw8LU\nLiWt+jI7ryyoOUH2XL8JtzuGSwLwvomlVJT2rmbxQXx3Qr8zsgziHzIn30RRQrkF\nBXu0xRuDjzBBtSVqeJ1Mc4uoNncEAVxgjb5bewswZDnXPCGB8bosMtX4OPRXgdEo\nPwTtfjMOsrMaU3hd5Xu4m81tQA2BvwOlx8aYDyH0jeTnervc5uRGbeTBQG4Bu40E\nrWNmXvgNq2EzTAwbbN6Ma97gw9KgXnM4Nlh29Fxb5TBeUU9lkzuTZAZIDXKIm7AG\nUwMbj/A038yAumYQtThTE/3e4W3rn7F2Vko900bC4aAC1KQOAzjIeQqzqkVxWTWq\n4SUFQAECgYEA/ODwifOTuI6hdZK6JRgc4wp6Rc0fkqHuxLzABXoIGuSVlWyimqIN\nZySAkpo5EW6DNraRJxNCOBmWeGPEhHGrea+JPiPEwCK0F7SxvSmg3jzNzw3Es31T\necET7eDwuSOY9v4XDzLyiXXkEUUReD7Ng2hEYL+HaQrl5jWj4lxgq/ECgYEAwnCb\nKrz7FwX8AqtFAEi6uUrc12k1xYKQfrwSxbfdK2vBBUpgB71Iq/fqP+1BittEljDG\n8f4jEtMBFfEPhLzGIHaI3UiHUHXS4GetA77TRgR8lnKKpj1FcMIY2iKU479707O5\nQ08pgWRUDQ8BVg2ePgbo5QjLMc/rv7UF3AHvPAECgYB/auAIwqDGN6gHU/1TP4ke\npWLi1O55tfpXSzv+BnUbB96PQgPUop7aP7xBIlBrBiI7aVZOOBf/qHT3CF421geu\n8tHWa7NxlIrl/vgn9lfGYyDYmXlpb1amXLEsBVGGF/e1TGZWFDe9J5fZU9HvosVu\n1xTNIvSZ6xHYI2MGZcGYIQKBgEYeebaV5C7PV6xWu1F46O19U9rS9DM//H/XryVi\nQv4vo7IWuj7QQe7SPsXC98ntfPR0rqoCLf/R3ChfgGsr8H8wf/bc+v9HHj8S5E/f\ndy1e3Nccg2ej3PDm7jNsGSlwmmUkAQGHAL7KwYzcBm1UB+bycvZ1j2FtS+UckPpg\nMDgBAoGALD8PkxHb4U4DtbNFSYRrUdvS9heav/yph3lTMfifNkOir36io6v8RPgb\nD2bHKKZgmYlTgJrxD45Er9agC5jclJO35QRU/OfGf3GcnABkBI7vlvUKADAo65Sq\nweZkdJnbrIadcvLOHOzkKC9m+rxFTC9VoN1dwK2zwYvUXfa1VJA=\n-----END RSA PRIVATE KEY-----",
|
|
|
120
|
+ "pass_phrase": "abcd"
|
|
141
|
121
|
}
|
|
142
|
122
|
]
|
|
143
|
123
|
}
|
|
144
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_projects_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/projects</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new project</p></div><ul class="nav nav-tabs"><li class=active><a href=#_projects_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_projects_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
124
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_aliases_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/aliases</h4></div><div class=modal-body><div class="alert alert-info"><p>Create an alias for this service.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_aliases_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_aliases_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
145
|
125
|
"data":
|
|
146
|
126
|
{
|
|
147
|
127
|
"id": "53c4249f076573c0f4000001",
|
|
148
|
128
|
"suffix": "dev.rhcloud.com",
|
|
149
|
|
- "name": "myproject",
|
|
|
129
|
+ "name": "mydomain",
|
|
150
|
130
|
"members": [
|
|
151
|
131
|
{
|
|
152
|
132
|
"login": "adminuser",
|
|
...
|
...
|
@@ -157,12 +137,12 @@
|
|
157
|
157
|
]
|
|
158
|
158
|
}
|
|
159
|
159
|
}
|
|
160
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_project__projectID_ class=panel-title>/project/{projectID}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__project__projectID_><span class=parent></span>/project/{projectID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_project__projectID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_project__projectID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_project__projectID__delete><span class="badge badge_delete">delete</span></a> <a href=# data-toggle=modal data-target=#_project__projectID__post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__project__projectID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_project__projectID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific project</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_project__projectID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a project</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_project__projectID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a project</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_project__projectID__post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Instantiate a template in the given project</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_project__projectID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/project/{projectID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific project</p></div><ul class="nav nav-tabs"><li class=active><a href=#_project__projectID__get_request data-toggle=tab>Request</a></li><li><a href=#_project__projectID__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_project__projectID__get_request><h3>URI Parameters</h3><ul><li><strong>projectID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_project__projectID__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
160
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__aliases__aliasID_><span class=parent>/aliases</span>/{aliasID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_aliases__aliasID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_aliases__aliasID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_aliases__aliasID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__aliases__aliasID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_aliases__aliasID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific alias.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_aliases__aliasID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a specific alias.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_aliases__aliasID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific alias.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_aliases__aliasID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/aliases</span>/{aliasID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific alias.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_aliases__aliasID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_aliases__aliasID__get_request><h3>URI Parameters</h3><ul><li><strong>aliasID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
161
|
161
|
"data":
|
|
162
|
162
|
{
|
|
163
|
163
|
"id": "53c4249f076573c0f4000001",
|
|
164
|
164
|
"suffix": "dev.rhcloud.com",
|
|
165
|
|
- "name": "myproject",
|
|
|
165
|
+ "name": "mydomain",
|
|
166
|
166
|
"members": [
|
|
167
|
167
|
{
|
|
168
|
168
|
"login": "adminuser",
|
|
...
|
...
|
@@ -173,23 +153,847 @@
|
|
173
|
173
|
]
|
|
174
|
174
|
}
|
|
175
|
175
|
}
|
|
176
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_project__projectID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent></span>/project/{projectID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a project</p></div><ul class="nav nav-tabs"><li class=active><a href=#_project__projectID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_project__projectID__put_request><h3>URI Parameters</h3><ul><li><strong>projectID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
176
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_aliases__aliasID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/aliases</span>/{aliasID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a specific alias.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_aliases__aliasID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_aliases__aliasID__put_request><h3>URI Parameters</h3><ul><li><strong>aliasID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
177
|
177
|
"data":
|
|
178
|
178
|
{
|
|
179
|
179
|
"id": "53c4249f076573c0f4000001",
|
|
180
|
|
- "name": "newproject-name"
|
|
|
180
|
+ "suffix": "dev.rhcloud.com",
|
|
|
181
|
+ "name": "mydomain",
|
|
|
182
|
+ "members": [
|
|
|
183
|
+ {
|
|
|
184
|
+ "login": "adminuser",
|
|
|
185
|
+ "role": "admin",
|
|
|
186
|
+ "type": "user",
|
|
|
187
|
+ "owner": true
|
|
|
188
|
+ }
|
|
|
189
|
+ ]
|
|
181
|
190
|
}
|
|
182
|
191
|
}
|
|
183
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_project__projectID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/project/{projectID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a project</p></div><ul class="nav nav-tabs"><li class=active><a href=#_project__projectID__delete_request data-toggle=tab>Request</a></li><li><a href=#_project__projectID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_project__projectID__delete_request><h3>URI Parameters</h3><ul><li><strong>projectID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_project__projectID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
192
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_aliases__aliasID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/aliases</span>/{aliasID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific alias.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_aliases__aliasID__delete_request data-toggle=tab>Request</a></li><li><a href=#_aliases__aliasID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_aliases__aliasID__delete_request><h3>URI Parameters</h3><ul><li><strong>aliasID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_aliases__aliasID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
184
|
193
|
"apiVersion": "v1beta1",
|
|
185
|
194
|
"creationTimestamp": null,
|
|
186
|
195
|
"kind": "Status",
|
|
187
|
196
|
"status": "success"
|
|
188
|
197
|
}
|
|
189
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_project__projectID__post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/project/{projectID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Instantiate a template in the given project</p></div><ul class="nav nav-tabs"><li class=active><a href=#_project__projectID__post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_project__projectID__post_request><h3>URI Parameters</h3><ul><li><strong>projectID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
190
|
|
- "templateId": "the-template-id"
|
|
|
198
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_buildConfigHooks__buildID___secret___plugin_ class=panel-title>/buildConfigHooks/{buildID}/{secret}/{plugin}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__buildConfigHooks__buildID___secret___plugin_><span class=parent></span>/buildConfigHooks/{buildID}/{secret}/{plugin}</a> <span class=methods><a href=# data-toggle=modal data-target=#_buildConfigHooks__buildID___secret___plugin__post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__buildConfigHooks__buildID___secret___plugin_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_buildConfigHooks__buildID___secret___plugin__post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Webhook on push event from external repository.</p><p>buildID specifies which build to trigger, whereas plugin defines source of the request, this might be github, bitbucket or others.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigHooks__buildID___secret___plugin__post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/buildConfigHooks/{buildID}/{secret}/{plugin}</h4></div><div class=modal-body><div class="alert alert-info"><p>Webhook on push event from external repository.</p><p>buildID specifies which build to trigger, whereas plugin defines source of the request, this might be github, bitbucket or others.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigHooks__buildID___secret___plugin__post_request data-toggle=tab>Request</a></li><li><a href=#_buildConfigHooks__buildID___secret___plugin__post_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigHooks__buildID___secret___plugin__post_request><h3>URI Parameters</h3><ul><li><strong>buildID</strong>: <em>required (string)</em></li><li><strong>secret</strong>: <em>required (string)</em></li><li><strong>plugin</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_buildConfigHooks__buildID___secret___plugin__post_response><h2>HTTP status code <a href=http://httpstatus.es/204 target=_blank>204</a></h2><p>No content</p></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_buildConfigs class=panel-title>/buildConfigs</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__buildConfigs><span class=parent></span>/buildConfigs</a> <span class=methods><a href=# data-toggle=modal data-target=#_buildConfigs_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_buildConfigs_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__buildConfigs class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_buildConfigs_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all BuildConfigs.</p><p>BuildConfig contains the inputs needed to produce a new deployable image.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_buildConfigs_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new build.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/buildConfigs</h4></div><div class=modal-body><div class="alert alert-info"><p>List all BuildConfigs.</p><p>BuildConfig contains the inputs needed to produce a new deployable image.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs_get_request data-toggle=tab>Request</a></li><li><a href=#_buildConfigs_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs_get_request></div><div class=tab-pane id=_buildConfigs_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/buildConfigs</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new build.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
199
|
+ "kind": "BuildConfig",
|
|
|
200
|
+ "apiVersion": "v1beta1",
|
|
|
201
|
+ "desiredInput": {
|
|
|
202
|
+ "type": "sti",
|
|
|
203
|
+ "sourceURI": "git://github.com/pmorie/simple-ruby",
|
|
|
204
|
+ "builderImage": "openshift/ruby-19-centos",
|
|
|
205
|
+ "imageTag": "test-ruby-app"
|
|
|
206
|
+ }
|
|
|
207
|
+}
|
|
|
208
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__buildConfigs__configID_><span class=parent>/buildConfigs</span>/{configID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_buildConfigs__configID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_buildConfigs__configID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_buildConfigs__configID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__buildConfigs__configID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_buildConfigs__configID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific build configuration.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_buildConfigs__configID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a specific build configuration.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_buildConfigs__configID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific build configuration.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs__configID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/buildConfigs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific build configuration.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs__configID__get_request data-toggle=tab>Request</a></li><li><a href=#_buildConfigs__configID__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs__configID__get_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_buildConfigs__configID__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
209
|
+ "apiVersion": "v1beta1",
|
|
|
210
|
+ "creationTimestamp": "2014-09-16T19:33:36Z",
|
|
|
211
|
+ "desiredInput": {
|
|
|
212
|
+ "builderImage": "openshift/ruby-19-centos",
|
|
|
213
|
+ "imageTag": "test-ruby-app",
|
|
|
214
|
+ "sourceURI": "git://github.com/pmorie/simple-ruby",
|
|
|
215
|
+ "type": "sti"
|
|
|
216
|
+ },
|
|
|
217
|
+ "id": "5a6a5b9c-3dd8-11e4-9d75-0800279696e1",
|
|
|
218
|
+ "kind": "BuildConfig",
|
|
|
219
|
+ "resourceVersion": 117
|
|
|
220
|
+}
|
|
|
221
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs__configID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/buildConfigs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a specific build configuration.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs__configID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs__configID__put_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
222
|
+ "apiVersion": "v1beta1",
|
|
|
223
|
+ "creationTimestamp": "2014-09-16T19:33:36Z",
|
|
|
224
|
+ "desiredInput": {
|
|
|
225
|
+ "builderImage": "openshift/ruby-19-centos",
|
|
|
226
|
+ "imageTag": "test-ruby-app",
|
|
|
227
|
+ "sourceURI": "git://github.com/pmorie/simple-ruby",
|
|
|
228
|
+ "type": "sti"
|
|
|
229
|
+ },
|
|
|
230
|
+ "id": "5a6a5b9c-3dd8-11e4-9d75-0800279696e1",
|
|
|
231
|
+ "kind": "BuildConfig",
|
|
|
232
|
+ "resourceVersion": 117
|
|
|
233
|
+}
|
|
|
234
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs__configID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/buildConfigs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific build configuration.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs__configID__delete_request data-toggle=tab>Request</a></li><li><a href=#_buildConfigs__configID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs__configID__delete_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_buildConfigs__configID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
235
|
+ "apiVersion": "v1beta1",
|
|
|
236
|
+ "creationTimestamp": null,
|
|
|
237
|
+ "kind": "Status",
|
|
|
238
|
+ "status": "success"
|
|
|
239
|
+}
|
|
|
240
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_builds class=panel-title>/builds</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__builds><span class=parent></span>/builds</a> <span class=methods><a href=# data-toggle=modal data-target=#_builds_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_builds_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__builds class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_builds_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all builds.</p><p>Build encapsulates the inputs needed to produce a new deployable image, as well as the status of the operation and a reference to the Pod which runs the build.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_builds_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new build.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/builds</h4></div><div class=modal-body><div class="alert alert-info"><p>List all builds.</p><p>Build encapsulates the inputs needed to produce a new deployable image, as well as the status of the operation and a reference to the Pod which runs the build.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds_get_request data-toggle=tab>Request</a></li><li><a href=#_builds_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds_get_request></div><div class=tab-pane id=_builds_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
241
|
+ "apiVersion": "v1beta1",
|
|
|
242
|
+ "creationTimestamp": null,
|
|
|
243
|
+ "items": [
|
|
|
244
|
+ {
|
|
|
245
|
+ "creationTimestamp": "2014-09-16T02:58:19Z",
|
|
|
246
|
+ "id": "5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
|
247
|
+ "input": {
|
|
|
248
|
+ "imageTag": "test/dockerbuild",
|
|
|
249
|
+ "sourceURI": "git://github.com/test/dockerbuild",
|
|
|
250
|
+ "type": "docker"
|
|
|
251
|
+ },
|
|
|
252
|
+ "podID": "build-sti-5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
|
253
|
+ "resourceVersion": 114,
|
|
|
254
|
+ "status": "new"
|
|
|
255
|
+ }
|
|
|
256
|
+ ],
|
|
|
257
|
+ "kind": "BuildList",
|
|
|
258
|
+ "resourceVersion": 116
|
|
|
259
|
+}
|
|
|
260
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/builds</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new build.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
261
|
+ "kind": "Build",
|
|
|
262
|
+ "apiVersion": "v1beta1",
|
|
|
263
|
+ "input": {
|
|
|
264
|
+ "type": "docker",
|
|
|
265
|
+ "sourceURI": "github.com/test/dockerBuild",
|
|
|
266
|
+ "imageTag": "test/dockerBuild"
|
|
|
267
|
+ }
|
|
|
268
|
+}
|
|
|
269
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__builds__buildID_><span class=parent>/builds</span>/{buildID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_builds__buildID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_builds__buildID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_builds__buildID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__builds__buildID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_builds__buildID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get details about a specific build.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_builds__buildID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a specific build.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_builds__buildID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific build.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds__buildID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/builds</span>/{buildID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get details about a specific build.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds__buildID__get_request data-toggle=tab>Request</a></li><li><a href=#_builds__buildID__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds__buildID__get_request><h3>URI Parameters</h3><ul><li><strong>buildID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_builds__buildID__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
270
|
+ "apiVersion": "v1beta1",
|
|
|
271
|
+ "creationTimestamp": "2014-09-16T02:58:19Z",
|
|
|
272
|
+ "id": "5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
|
273
|
+ "input": {
|
|
|
274
|
+ "imageTag": "test/dockerBuild",
|
|
|
275
|
+ "sourceURI": "github.com/test/dockerBuild",
|
|
|
276
|
+ "type": "docker"
|
|
|
277
|
+ },
|
|
|
278
|
+ "kind": "Build",
|
|
|
279
|
+ "podID": "build-sti-5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
|
280
|
+ "resourceVersion": 114,
|
|
|
281
|
+ "status": "pending"
|
|
|
282
|
+}
|
|
|
283
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds__buildID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/builds</span>/{buildID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a specific build.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds__buildID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds__buildID__put_request><h3>URI Parameters</h3><ul><li><strong>buildID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
284
|
+ "apiVersion": "v1beta1",
|
|
|
285
|
+ "creationTimestamp": "2014-09-16T02:58:19Z",
|
|
|
286
|
+ "id": "5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
|
287
|
+ "input": {
|
|
|
288
|
+ "imageTag": "test/dockerBuild",
|
|
|
289
|
+ "sourceURI": "github.com/test/dockerBuild",
|
|
|
290
|
+ "type": "docker"
|
|
|
291
|
+ },
|
|
|
292
|
+ "kind": "Build",
|
|
|
293
|
+ "podID": "build-sti-5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
|
294
|
+ "resourceVersion": 114,
|
|
|
295
|
+ "status": "pending"
|
|
|
296
|
+}
|
|
|
297
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds__buildID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/builds</span>/{buildID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific build.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds__buildID__delete_request data-toggle=tab>Request</a></li><li><a href=#_builds__buildID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds__buildID__delete_request><h3>URI Parameters</h3><ul><li><strong>buildID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_builds__buildID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
298
|
+ "apiVersion": "v1beta1",
|
|
|
299
|
+ "creationTimestamp": null,
|
|
|
300
|
+ "kind": "Status",
|
|
|
301
|
+ "status": "success"
|
|
|
302
|
+}
|
|
|
303
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_configs class=panel-title>/configs (NOT IMPLEMENTED)</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__configs><span class=parent></span>/configs</a> <span class=methods><a href=# data-toggle=modal data-target=#_configs_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_configs_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__configs class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_configs_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all configs that your account has access to.</p><p>A config defines 0..n Kubernetes resources.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_configs_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new config.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_configs_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/configs</h4></div><div class=modal-body><div class="alert alert-info"><p>List all configs that your account has access to.</p><p>A config defines 0..n Kubernetes resources.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_configs_get_request data-toggle=tab>Request</a></li><li><a href=#_configs_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_configs_get_request></div><div class=tab-pane id=_configs_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_configs_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/configs</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new config.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_configs_post_request data-toggle=tab>Request</a></li><li><a href=#_configs_post_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_configs_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
|
304
|
+ "$schema": "http://json-schema.org/draft-03/schema",
|
|
|
305
|
+ "type": "object",
|
|
|
306
|
+ "required": true,
|
|
|
307
|
+ "description": "Config resource.",
|
|
|
308
|
+ "properties": {
|
|
|
309
|
+ "id": {
|
|
|
310
|
+ "type": "string",
|
|
|
311
|
+ "required": true
|
|
|
312
|
+ },
|
|
|
313
|
+ "name": {
|
|
|
314
|
+ "type": "string",
|
|
|
315
|
+ "required": true
|
|
|
316
|
+ },
|
|
|
317
|
+ "description": {
|
|
|
318
|
+ "type": "string",
|
|
|
319
|
+ "required": false
|
|
|
320
|
+ },
|
|
|
321
|
+ "items": {
|
|
|
322
|
+ "type": "array",
|
|
|
323
|
+ "required": false,
|
|
|
324
|
+ "items": {
|
|
|
325
|
+ "type": "object",
|
|
|
326
|
+ "required": true,
|
|
|
327
|
+ "properties": {
|
|
|
328
|
+ "kind": {
|
|
|
329
|
+ "type": "string",
|
|
|
330
|
+ "required": true
|
|
|
331
|
+ },
|
|
|
332
|
+ "id": {
|
|
|
333
|
+ "type": "string",
|
|
|
334
|
+ "required": true
|
|
|
335
|
+ }
|
|
|
336
|
+ }
|
|
|
337
|
+ }
|
|
|
338
|
+ }
|
|
|
339
|
+ }
|
|
|
340
|
+}</code></pre><p><strong>Example</strong>:</p><pre><code>{
|
|
|
341
|
+ "kind": "Config",
|
|
|
342
|
+ "id": "example1",
|
|
|
343
|
+ "name": "My awesome PHP app",
|
|
|
344
|
+ "description": "Example PHP application with PostgreSQL database",
|
|
|
345
|
+ "apiVersion": "v1beta1",
|
|
|
346
|
+ "creationTimestamp": "2014-09-22T09:48:27Z",
|
|
|
347
|
+ "items": [
|
|
|
348
|
+ {
|
|
|
349
|
+ "kind": "Service",
|
|
|
350
|
+ "id": "frontend",
|
|
|
351
|
+ "creationTimestamp": null,
|
|
|
352
|
+ "apiVersion": "v1beta1",
|
|
|
353
|
+ "port": 8080,
|
|
|
354
|
+ "containerPort": 9292,
|
|
|
355
|
+ "selector": {
|
|
|
356
|
+ "name": "frontend"
|
|
|
357
|
+ }
|
|
|
358
|
+ },
|
|
|
359
|
+ {
|
|
|
360
|
+ "kind": "Service",
|
|
|
361
|
+ "id": "database",
|
|
|
362
|
+ "creationTimestamp": null,
|
|
|
363
|
+ "apiVersion": "v1beta1",
|
|
|
364
|
+ "port": 5432,
|
|
|
365
|
+ "containerPort": 5432,
|
|
|
366
|
+ "selector": {
|
|
|
367
|
+ "name": "database"
|
|
|
368
|
+ }
|
|
|
369
|
+ },
|
|
|
370
|
+ {
|
|
|
371
|
+ "kind": "ReplicationController",
|
|
|
372
|
+ "id": "frontendController",
|
|
|
373
|
+ "creationTimestamp": null,
|
|
|
374
|
+ "apiVersion": "v1beta1",
|
|
|
375
|
+ "desiredState": {
|
|
|
376
|
+ "replicas": 2,
|
|
|
377
|
+ "replicaSelector": {
|
|
|
378
|
+ "name": "frontend"
|
|
|
379
|
+ },
|
|
|
380
|
+ "podTemplate": {
|
|
|
381
|
+ "desiredState": {
|
|
|
382
|
+ "manifest": {
|
|
|
383
|
+ "version": "v1beta1",
|
|
|
384
|
+ "id": "frontendController",
|
|
|
385
|
+ "volumes": null,
|
|
|
386
|
+ "containers": [
|
|
|
387
|
+ {
|
|
|
388
|
+ "name": "nginx-php-app",
|
|
|
389
|
+ "image": "mfojtik/nginx-php-app",
|
|
|
390
|
+ "ports": [
|
|
|
391
|
+ {
|
|
|
392
|
+ "hostPort": 8080,
|
|
|
393
|
+ "containerPort": 9292,
|
|
|
394
|
+ "protocol": "TCP"
|
|
|
395
|
+ }
|
|
|
396
|
+ ],
|
|
|
397
|
+ "env": [
|
|
|
398
|
+ {
|
|
|
399
|
+ "name": "PGPASSWORD",
|
|
|
400
|
+ "key": "PGPASSWORD",
|
|
|
401
|
+ "value": "MPbGM5T0"
|
|
|
402
|
+ },
|
|
|
403
|
+ {
|
|
|
404
|
+ "name": "PGUSER",
|
|
|
405
|
+ "key": "PGUSER",
|
|
|
406
|
+ "value": "adminO8bR"
|
|
|
407
|
+ },
|
|
|
408
|
+ {
|
|
|
409
|
+ "name": "PGDATABASE",
|
|
|
410
|
+ "key": "PGDATABASE",
|
|
|
411
|
+ "value": "mydb"
|
|
|
412
|
+ }
|
|
|
413
|
+ ]
|
|
|
414
|
+ }
|
|
|
415
|
+ ]
|
|
|
416
|
+ },
|
|
|
417
|
+ "restartpolicy": {}
|
|
|
418
|
+ },
|
|
|
419
|
+ "labels": {
|
|
|
420
|
+ "name": "frontend"
|
|
|
421
|
+ }
|
|
|
422
|
+ }
|
|
|
423
|
+ },
|
|
|
424
|
+ "labels": {
|
|
|
425
|
+ "name": "frontend"
|
|
|
426
|
+ }
|
|
|
427
|
+ },
|
|
|
428
|
+ {
|
|
|
429
|
+ "kind": "Pod",
|
|
|
430
|
+ "id": "postgresql",
|
|
|
431
|
+ "creationTimestamp": null,
|
|
|
432
|
+ "apiVersion": "v1beta1",
|
|
|
433
|
+ "labels": {
|
|
|
434
|
+ "name": "database"
|
|
|
435
|
+ },
|
|
|
436
|
+ "desiredState": {
|
|
|
437
|
+ "manifest": {
|
|
|
438
|
+ "version": "v1beta1",
|
|
|
439
|
+ "id": "database",
|
|
|
440
|
+ "volumes": null,
|
|
|
441
|
+ "containers": [
|
|
|
442
|
+ {
|
|
|
443
|
+ "name": "postgresql",
|
|
|
444
|
+ "image": "postgres",
|
|
|
445
|
+ "ports": [
|
|
|
446
|
+ {
|
|
|
447
|
+ "hostPort": 5432,
|
|
|
448
|
+ "containerPort": 5432,
|
|
|
449
|
+ "protocol": "TCP"
|
|
|
450
|
+ }
|
|
|
451
|
+ ],
|
|
|
452
|
+ "env": [
|
|
|
453
|
+ {
|
|
|
454
|
+ "name": "PGPASSWORD",
|
|
|
455
|
+ "key": "PGPASSWORD",
|
|
|
456
|
+ "value": "MPbGM5T0"
|
|
|
457
|
+ },
|
|
|
458
|
+ {
|
|
|
459
|
+ "name": "PGUSER",
|
|
|
460
|
+ "key": "PGUSER",
|
|
|
461
|
+ "value": "adminO8bR"
|
|
|
462
|
+ },
|
|
|
463
|
+ {
|
|
|
464
|
+ "name": "PGDATABASE",
|
|
|
465
|
+ "key": "PGDATABASE",
|
|
|
466
|
+ "value": "mydb"
|
|
|
467
|
+ }
|
|
|
468
|
+ ]
|
|
|
469
|
+ }
|
|
|
470
|
+ ]
|
|
|
471
|
+ },
|
|
|
472
|
+ "restartpolicy": {
|
|
|
473
|
+ "type": "RestartAlways"
|
|
|
474
|
+ }
|
|
|
475
|
+ },
|
|
|
476
|
+ "currentState": {
|
|
|
477
|
+ "manifest": {
|
|
|
478
|
+ "version": "",
|
|
|
479
|
+ "id": "",
|
|
|
480
|
+ "volumes": null,
|
|
|
481
|
+ "containers": null
|
|
|
482
|
+ },
|
|
|
483
|
+ "restartpolicy": {}
|
|
|
484
|
+ }
|
|
|
485
|
+ }
|
|
|
486
|
+ ]
|
|
|
487
|
+}</code></pre></div><div class=tab-pane id=_configs_post_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
488
|
+ "apiVersion": "v1beta1",
|
|
|
489
|
+ "creationTimestamp": null,
|
|
|
490
|
+ "kind": "Status",
|
|
|
491
|
+ "status": "success"
|
|
|
492
|
+}
|
|
|
493
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__configs__configID_><span class=parent>/configs</span>/{configID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_configs__configID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_configs__configID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_configs__configID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__configs__configID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_configs__configID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific config.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_configs__configID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a specific config.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_configs__configID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific config.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_configs__configID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/configs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific config.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_configs__configID__get_request data-toggle=tab>Request</a></li><li><a href=#_configs__configID__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_configs__configID__get_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_configs__configID__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
494
|
+ "kind": "Config",
|
|
|
495
|
+ "id": "example1",
|
|
|
496
|
+ "name": "My awesome PHP app",
|
|
|
497
|
+ "description": "Example PHP application with PostgreSQL database",
|
|
|
498
|
+ "apiVersion": "v1beta1",
|
|
|
499
|
+ "creationTimestamp": "2014-09-22T09:48:27Z",
|
|
|
500
|
+ "items": [
|
|
|
501
|
+ {
|
|
|
502
|
+ "kind": "Service",
|
|
|
503
|
+ "id": "frontend",
|
|
|
504
|
+ "creationTimestamp": null,
|
|
|
505
|
+ "apiVersion": "v1beta1",
|
|
|
506
|
+ "port": 8080,
|
|
|
507
|
+ "containerPort": 9292,
|
|
|
508
|
+ "selector": {
|
|
|
509
|
+ "name": "frontend"
|
|
|
510
|
+ }
|
|
|
511
|
+ },
|
|
|
512
|
+ {
|
|
|
513
|
+ "kind": "Service",
|
|
|
514
|
+ "id": "database",
|
|
|
515
|
+ "creationTimestamp": null,
|
|
|
516
|
+ "apiVersion": "v1beta1",
|
|
|
517
|
+ "port": 5432,
|
|
|
518
|
+ "containerPort": 5432,
|
|
|
519
|
+ "selector": {
|
|
|
520
|
+ "name": "database"
|
|
|
521
|
+ }
|
|
|
522
|
+ },
|
|
|
523
|
+ {
|
|
|
524
|
+ "kind": "ReplicationController",
|
|
|
525
|
+ "id": "frontendController",
|
|
|
526
|
+ "creationTimestamp": null,
|
|
|
527
|
+ "apiVersion": "v1beta1",
|
|
|
528
|
+ "desiredState": {
|
|
|
529
|
+ "replicas": 2,
|
|
|
530
|
+ "replicaSelector": {
|
|
|
531
|
+ "name": "frontend"
|
|
|
532
|
+ },
|
|
|
533
|
+ "podTemplate": {
|
|
|
534
|
+ "desiredState": {
|
|
|
535
|
+ "manifest": {
|
|
|
536
|
+ "version": "v1beta1",
|
|
|
537
|
+ "id": "frontendController",
|
|
|
538
|
+ "volumes": null,
|
|
|
539
|
+ "containers": [
|
|
|
540
|
+ {
|
|
|
541
|
+ "name": "nginx-php-app",
|
|
|
542
|
+ "image": "mfojtik/nginx-php-app",
|
|
|
543
|
+ "ports": [
|
|
|
544
|
+ {
|
|
|
545
|
+ "hostPort": 8080,
|
|
|
546
|
+ "containerPort": 9292,
|
|
|
547
|
+ "protocol": "TCP"
|
|
|
548
|
+ }
|
|
|
549
|
+ ],
|
|
|
550
|
+ "env": [
|
|
|
551
|
+ {
|
|
|
552
|
+ "name": "PGPASSWORD",
|
|
|
553
|
+ "key": "PGPASSWORD",
|
|
|
554
|
+ "value": "MPbGM5T0"
|
|
|
555
|
+ },
|
|
|
556
|
+ {
|
|
|
557
|
+ "name": "PGUSER",
|
|
|
558
|
+ "key": "PGUSER",
|
|
|
559
|
+ "value": "adminO8bR"
|
|
|
560
|
+ },
|
|
|
561
|
+ {
|
|
|
562
|
+ "name": "PGDATABASE",
|
|
|
563
|
+ "key": "PGDATABASE",
|
|
|
564
|
+ "value": "mydb"
|
|
|
565
|
+ }
|
|
|
566
|
+ ]
|
|
|
567
|
+ }
|
|
|
568
|
+ ]
|
|
|
569
|
+ },
|
|
|
570
|
+ "restartpolicy": {}
|
|
|
571
|
+ },
|
|
|
572
|
+ "labels": {
|
|
|
573
|
+ "name": "frontend"
|
|
|
574
|
+ }
|
|
|
575
|
+ }
|
|
|
576
|
+ },
|
|
|
577
|
+ "labels": {
|
|
|
578
|
+ "name": "frontend"
|
|
|
579
|
+ }
|
|
|
580
|
+ },
|
|
|
581
|
+ {
|
|
|
582
|
+ "kind": "Pod",
|
|
|
583
|
+ "id": "postgresql",
|
|
|
584
|
+ "creationTimestamp": null,
|
|
|
585
|
+ "apiVersion": "v1beta1",
|
|
|
586
|
+ "labels": {
|
|
|
587
|
+ "name": "database"
|
|
|
588
|
+ },
|
|
|
589
|
+ "desiredState": {
|
|
|
590
|
+ "manifest": {
|
|
|
591
|
+ "version": "v1beta1",
|
|
|
592
|
+ "id": "database",
|
|
|
593
|
+ "volumes": null,
|
|
|
594
|
+ "containers": [
|
|
|
595
|
+ {
|
|
|
596
|
+ "name": "postgresql",
|
|
|
597
|
+ "image": "postgres",
|
|
|
598
|
+ "ports": [
|
|
|
599
|
+ {
|
|
|
600
|
+ "hostPort": 5432,
|
|
|
601
|
+ "containerPort": 5432,
|
|
|
602
|
+ "protocol": "TCP"
|
|
|
603
|
+ }
|
|
|
604
|
+ ],
|
|
|
605
|
+ "env": [
|
|
|
606
|
+ {
|
|
|
607
|
+ "name": "PGPASSWORD",
|
|
|
608
|
+ "key": "PGPASSWORD",
|
|
|
609
|
+ "value": "MPbGM5T0"
|
|
|
610
|
+ },
|
|
|
611
|
+ {
|
|
|
612
|
+ "name": "PGUSER",
|
|
|
613
|
+ "key": "PGUSER",
|
|
|
614
|
+ "value": "adminO8bR"
|
|
|
615
|
+ },
|
|
|
616
|
+ {
|
|
|
617
|
+ "name": "PGDATABASE",
|
|
|
618
|
+ "key": "PGDATABASE",
|
|
|
619
|
+ "value": "mydb"
|
|
|
620
|
+ }
|
|
|
621
|
+ ]
|
|
|
622
|
+ }
|
|
|
623
|
+ ]
|
|
|
624
|
+ },
|
|
|
625
|
+ "restartpolicy": {
|
|
|
626
|
+ "type": "RestartAlways"
|
|
|
627
|
+ }
|
|
|
628
|
+ },
|
|
|
629
|
+ "currentState": {
|
|
|
630
|
+ "manifest": {
|
|
|
631
|
+ "version": "",
|
|
|
632
|
+ "id": "",
|
|
|
633
|
+ "volumes": null,
|
|
|
634
|
+ "containers": null
|
|
|
635
|
+ },
|
|
|
636
|
+ "restartpolicy": {}
|
|
|
637
|
+ }
|
|
|
638
|
+ }
|
|
|
639
|
+ ]
|
|
|
640
|
+}</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_configs__configID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/configs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a specific config.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_configs__configID__put_request data-toggle=tab>Request</a></li><li><a href=#_configs__configID__put_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_configs__configID__put_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_configs__configID__put_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
641
|
+ "apiVersion": "v1beta1",
|
|
|
642
|
+ "creationTimestamp": null,
|
|
|
643
|
+ "kind": "Status",
|
|
|
644
|
+ "status": "success"
|
|
|
645
|
+}
|
|
|
646
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_configs__configID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/configs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific config.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_configs__configID__delete_request data-toggle=tab>Request</a></li><li><a href=#_configs__configID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_configs__configID__delete_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_configs__configID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
647
|
+ "apiVersion": "v1beta1",
|
|
|
648
|
+ "creationTimestamp": null,
|
|
|
649
|
+ "kind": "Status",
|
|
|
650
|
+ "status": "success"
|
|
|
651
|
+}
|
|
|
652
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_deploymentConfigs class=panel-title>/deploymentConfigs</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__deploymentConfigs><span class=parent></span>/deploymentConfigs</a> <span class=methods><a href=# data-toggle=modal data-target=#_deploymentConfigs_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_deploymentConfigs_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__deploymentConfigs class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_deploymentConfigs_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all DeploymentConfigs.</p><p>A DeploymentConfig represents a configuration for a single deployment of a replication controller: a template for the deployment, how new deployments are triggered, what the current deployed state is.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_deploymentConfigs_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new build.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deploymentConfigs_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/deploymentConfigs</h4></div><div class=modal-body><div class="alert alert-info"><p>List all DeploymentConfigs.</p><p>A DeploymentConfig represents a configuration for a single deployment of a replication controller: a template for the deployment, how new deployments are triggered, what the current deployed state is.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deploymentConfigs_get_request data-toggle=tab>Request</a></li><li><a href=#_deploymentConfigs_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deploymentConfigs_get_request></div><div class=tab-pane id=_deploymentConfigs_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
653
|
+ "apiVersion": "v1beta1",
|
|
|
654
|
+ "creationTimestamp": null,
|
|
|
655
|
+ "kind": "DeploymentConfigList",
|
|
|
656
|
+ "items": [
|
|
|
657
|
+ {
|
|
|
658
|
+ "id": "redisslave-config",
|
|
|
659
|
+ "kind": "DeploymentConfig",
|
|
|
660
|
+ "apiVersion": "v1beta1",
|
|
|
661
|
+ "triggerPolicy": "manual",
|
|
|
662
|
+ "template": {
|
|
|
663
|
+ "strategy": {
|
|
|
664
|
+ "type": "customPod",
|
|
|
665
|
+ "customPod": {
|
|
|
666
|
+ "image": "127.0.0.1:5000/openshift/kube-deploy"
|
|
|
667
|
+ }
|
|
|
668
|
+ },
|
|
|
669
|
+ "controllerTemplate": {
|
|
|
670
|
+ "replicas": 2,
|
|
|
671
|
+ "replicaSelector": {
|
|
|
672
|
+ "name": "redisslave"
|
|
|
673
|
+ },
|
|
|
674
|
+ "podTemplate": {
|
|
|
675
|
+ "desiredState": {
|
|
|
676
|
+ "manifest": {
|
|
|
677
|
+ "version": "v1beta1",
|
|
|
678
|
+ "id": "redisSlaveController",
|
|
|
679
|
+ "containers": [
|
|
|
680
|
+ {
|
|
|
681
|
+ "name": "slave",
|
|
|
682
|
+ "image": "brendanburns/redis-slave",
|
|
|
683
|
+ "env": [
|
|
|
684
|
+ {
|
|
|
685
|
+ "name": "REDIS_PASSWORD",
|
|
|
686
|
+ "value": "secret"
|
|
|
687
|
+ }
|
|
|
688
|
+ ],
|
|
|
689
|
+ "ports": [
|
|
|
690
|
+ {
|
|
|
691
|
+ "containerPort": 6379
|
|
|
692
|
+ }
|
|
|
693
|
+ ]
|
|
|
694
|
+ }
|
|
|
695
|
+ ]
|
|
|
696
|
+ }
|
|
|
697
|
+ },
|
|
|
698
|
+ "labels": {
|
|
|
699
|
+ "name": "redisslave"
|
|
|
700
|
+ }
|
|
|
701
|
+ }
|
|
|
702
|
+ }
|
|
|
703
|
+ }
|
|
|
704
|
+ }
|
|
|
705
|
+ ]
|
|
|
706
|
+}
|
|
|
707
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deploymentConfigs_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/deploymentConfigs</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new build.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deploymentConfigs_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deploymentConfigs_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
708
|
+ "apiVersion": "v1beta1",
|
|
|
709
|
+ "creationTimestamp": null,
|
|
|
710
|
+ "kind": "Status",
|
|
|
711
|
+ "status": "success"
|
|
|
712
|
+}
|
|
|
713
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__deploymentConfigs__configID_><span class=parent>/deploymentConfigs</span>/{configID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_deploymentConfigs__configID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_deploymentConfigs__configID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_deploymentConfigs__configID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__deploymentConfigs__configID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_deploymentConfigs__configID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific build configuration.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_deploymentConfigs__configID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a specific build configuration.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_deploymentConfigs__configID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific build configuration.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deploymentConfigs__configID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/deploymentConfigs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific build configuration.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deploymentConfigs__configID__get_request data-toggle=tab>Request</a></li><li><a href=#_deploymentConfigs__configID__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deploymentConfigs__configID__get_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_deploymentConfigs__configID__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
714
|
+ "id": "redisslave-config",
|
|
|
715
|
+ "kind": "DeploymentConfig",
|
|
|
716
|
+ "apiVersion": "v1beta1",
|
|
|
717
|
+ "triggerPolicy": "manual",
|
|
|
718
|
+ "template": {
|
|
|
719
|
+ "strategy": {
|
|
|
720
|
+ "type": "customPod",
|
|
|
721
|
+ "customPod": {
|
|
|
722
|
+ "image": "127.0.0.1:5000/openshift/kube-deploy"
|
|
|
723
|
+ }
|
|
|
724
|
+ },
|
|
|
725
|
+ "controllerTemplate": {
|
|
|
726
|
+ "replicas": 2,
|
|
|
727
|
+ "replicaSelector": {
|
|
|
728
|
+ "name": "redisslave"
|
|
|
729
|
+ },
|
|
|
730
|
+ "podTemplate": {
|
|
|
731
|
+ "desiredState": {
|
|
|
732
|
+ "manifest": {
|
|
|
733
|
+ "version": "v1beta1",
|
|
|
734
|
+ "id": "redisSlaveController",
|
|
|
735
|
+ "containers": [
|
|
|
736
|
+ {
|
|
|
737
|
+ "name": "slave",
|
|
|
738
|
+ "image": "brendanburns/redis-slave",
|
|
|
739
|
+ "env": [
|
|
|
740
|
+ {
|
|
|
741
|
+ "name": "REDIS_PASSWORD",
|
|
|
742
|
+ "value": "secret"
|
|
|
743
|
+ }
|
|
|
744
|
+ ],
|
|
|
745
|
+ "ports": [
|
|
|
746
|
+ {
|
|
|
747
|
+ "containerPort": 6379
|
|
|
748
|
+ }
|
|
|
749
|
+ ]
|
|
|
750
|
+ }
|
|
|
751
|
+ ]
|
|
|
752
|
+ }
|
|
|
753
|
+ },
|
|
|
754
|
+ "labels": {
|
|
|
755
|
+ "name": "redisslave"
|
|
|
756
|
+ }
|
|
|
757
|
+ }
|
|
|
758
|
+ }
|
|
|
759
|
+ }
|
|
|
760
|
+}
|
|
|
761
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deploymentConfigs__configID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/deploymentConfigs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a specific build configuration.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deploymentConfigs__configID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deploymentConfigs__configID__put_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
762
|
+ "id": "redisslave-config",
|
|
|
763
|
+ "kind": "DeploymentConfig",
|
|
|
764
|
+ "apiVersion": "v1beta1",
|
|
|
765
|
+ "triggerPolicy": "manual",
|
|
|
766
|
+ "template": {
|
|
|
767
|
+ "strategy": {
|
|
|
768
|
+ "type": "customPod",
|
|
|
769
|
+ "customPod": {
|
|
|
770
|
+ "image": "127.0.0.1:5000/openshift/kube-deploy"
|
|
|
771
|
+ }
|
|
|
772
|
+ },
|
|
|
773
|
+ "controllerTemplate": {
|
|
|
774
|
+ "replicas": 2,
|
|
|
775
|
+ "replicaSelector": {
|
|
|
776
|
+ "name": "redisslave"
|
|
|
777
|
+ },
|
|
|
778
|
+ "podTemplate": {
|
|
|
779
|
+ "desiredState": {
|
|
|
780
|
+ "manifest": {
|
|
|
781
|
+ "version": "v1beta1",
|
|
|
782
|
+ "id": "redisSlaveController",
|
|
|
783
|
+ "containers": [
|
|
|
784
|
+ {
|
|
|
785
|
+ "name": "slave",
|
|
|
786
|
+ "image": "brendanburns/redis-slave",
|
|
|
787
|
+ "env": [
|
|
|
788
|
+ {
|
|
|
789
|
+ "name": "REDIS_PASSWORD",
|
|
|
790
|
+ "value": "secret"
|
|
|
791
|
+ }
|
|
|
792
|
+ ],
|
|
|
793
|
+ "ports": [
|
|
|
794
|
+ {
|
|
|
795
|
+ "containerPort": 6379
|
|
|
796
|
+ }
|
|
|
797
|
+ ]
|
|
|
798
|
+ }
|
|
|
799
|
+ ]
|
|
|
800
|
+ }
|
|
|
801
|
+ },
|
|
|
802
|
+ "labels": {
|
|
|
803
|
+ "name": "redisslave"
|
|
|
804
|
+ }
|
|
|
805
|
+ }
|
|
|
806
|
+ }
|
|
|
807
|
+ }
|
|
|
808
|
+}
|
|
|
809
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deploymentConfigs__configID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/deploymentConfigs</span>/{configID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific build configuration.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deploymentConfigs__configID__delete_request data-toggle=tab>Request</a></li><li><a href=#_deploymentConfigs__configID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deploymentConfigs__configID__delete_request><h3>URI Parameters</h3><ul><li><strong>configID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_deploymentConfigs__configID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
810
|
+ "apiVersion": "v1beta1",
|
|
|
811
|
+ "creationTimestamp": null,
|
|
|
812
|
+ "kind": "Status",
|
|
|
813
|
+ "status": "success"
|
|
|
814
|
+}
|
|
|
815
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_deployments class=panel-title>/deployments</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__deployments><span class=parent></span>/deployments</a> <span class=methods><a href=# data-toggle=modal data-target=#_deployments_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_deployments_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__deployments class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_deployments_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all deployments.</p><p>A deployment represents a single unique realization of a deployment config.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_deployments_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new deployment.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deployments_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/deployments</h4></div><div class=modal-body><div class="alert alert-info"><p>List all deployments.</p><p>A deployment represents a single unique realization of a deployment config.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deployments_get_request data-toggle=tab>Request</a></li><li><a href=#_deployments_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deployments_get_request></div><div class=tab-pane id=_deployments_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
816
|
+ "apiVersion": "v1beta1",
|
|
|
817
|
+ "creationTimestamp": null,
|
|
|
818
|
+ "kind": "DeploymentList",
|
|
|
819
|
+ "items": [
|
|
|
820
|
+ {
|
|
|
821
|
+ "id": "redisslave-deploy",
|
|
|
822
|
+ "kind": "Deployment",
|
|
|
823
|
+ "apiVersion": "v1beta1",
|
|
|
824
|
+ "triggerPolicy": "manual",
|
|
|
825
|
+ "configId": "redisslave-config",
|
|
|
826
|
+ "strategy": {
|
|
|
827
|
+ "type": "customPod",
|
|
|
828
|
+ "customPod": {
|
|
|
829
|
+ "image": "127.0.0.1:5000/openshift/kube-deploy"
|
|
|
830
|
+ }
|
|
|
831
|
+ },
|
|
|
832
|
+ "controllerTemplate": {
|
|
|
833
|
+ "replicas": 2,
|
|
|
834
|
+ "replicaSelector": {
|
|
|
835
|
+ "name": "redisslave"
|
|
|
836
|
+ },
|
|
|
837
|
+ "podTemplate": {
|
|
|
838
|
+ "desiredState": {
|
|
|
839
|
+ "manifest": {
|
|
|
840
|
+ "version": "v1beta1",
|
|
|
841
|
+ "id": "redisSlaveController",
|
|
|
842
|
+ "containers": [
|
|
|
843
|
+ {
|
|
|
844
|
+ "name": "slave",
|
|
|
845
|
+ "image": "brendanburns/redis-slave",
|
|
|
846
|
+ "env": [
|
|
|
847
|
+ {
|
|
|
848
|
+ "name": "REDIS_PASSWORD",
|
|
|
849
|
+ "value": "secret"
|
|
|
850
|
+ }
|
|
|
851
|
+ ],
|
|
|
852
|
+ "ports": [
|
|
|
853
|
+ {
|
|
|
854
|
+ "containerPort": 6379
|
|
|
855
|
+ }
|
|
|
856
|
+ ]
|
|
|
857
|
+ }
|
|
|
858
|
+ ]
|
|
|
859
|
+ }
|
|
|
860
|
+ },
|
|
|
861
|
+ "labels": {
|
|
|
862
|
+ "name": "redisslave"
|
|
|
863
|
+ }
|
|
|
864
|
+ }
|
|
|
865
|
+ }
|
|
|
866
|
+ }
|
|
|
867
|
+ ]
|
|
|
868
|
+}
|
|
|
869
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deployments_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/deployments</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new deployment.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deployments_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deployments_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
870
|
+ "id": "redisslave-deploy",
|
|
|
871
|
+ "kind": "Deployment",
|
|
|
872
|
+ "apiVersion": "v1beta1",
|
|
|
873
|
+ "triggerPolicy": "manual",
|
|
|
874
|
+ "configId": "redisslave-config",
|
|
|
875
|
+ "strategy": {
|
|
|
876
|
+ "type": "customPod",
|
|
|
877
|
+ "customPod": {
|
|
|
878
|
+ "image": "127.0.0.1:5000/openshift/kube-deploy"
|
|
|
879
|
+ }
|
|
|
880
|
+ },
|
|
|
881
|
+ "controllerTemplate": {
|
|
|
882
|
+ "replicas": 2,
|
|
|
883
|
+ "replicaSelector": {
|
|
|
884
|
+ "name": "redisslave"
|
|
|
885
|
+ },
|
|
|
886
|
+ "podTemplate": {
|
|
|
887
|
+ "desiredState": {
|
|
|
888
|
+ "manifest": {
|
|
|
889
|
+ "version": "v1beta1",
|
|
|
890
|
+ "id": "redisSlaveController",
|
|
|
891
|
+ "containers": [
|
|
|
892
|
+ {
|
|
|
893
|
+ "name": "slave",
|
|
|
894
|
+ "image": "brendanburns/redis-slave",
|
|
|
895
|
+ "env": [
|
|
|
896
|
+ {
|
|
|
897
|
+ "name": "REDIS_PASSWORD",
|
|
|
898
|
+ "value": "secret"
|
|
|
899
|
+ }
|
|
|
900
|
+ ],
|
|
|
901
|
+ "ports": [
|
|
|
902
|
+ {
|
|
|
903
|
+ "containerPort": 6379
|
|
|
904
|
+ }
|
|
|
905
|
+ ]
|
|
|
906
|
+ }
|
|
|
907
|
+ ]
|
|
|
908
|
+ }
|
|
|
909
|
+ },
|
|
|
910
|
+ "labels": {
|
|
|
911
|
+ "name": "redisslave"
|
|
|
912
|
+ }
|
|
|
913
|
+ }
|
|
|
914
|
+ }
|
|
191
|
915
|
}
|
|
192
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_imageRepositories class=panel-title>/imageRepositories</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__imageRepositories><span class=parent></span>/imageRepositories</a> <span class=methods><a href=# data-toggle=modal data-target=#_imageRepositories_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_imageRepositories_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__imageRepositories class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_imageRepositories_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Lists all image repositories.</p><p>An image repository is a collection of images that share the same metadata. It may reference a Docker image repository on a Docker registry, but this is optional. An image repository also contains a mapping of tags to images.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_imageRepositories_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new image repository</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/imageRepositories</h4></div><div class=modal-body><div class="alert alert-info"><p>Lists all image repositories.</p><p>An image repository is a collection of images that share the same metadata. It may reference a Docker image repository on a Docker registry, but this is optional. An image repository also contains a mapping of tags to images.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories_get_request data-toggle=tab>Request</a></li><li><a href=#_imageRepositories_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories_get_request></div><div class=tab-pane id=_imageRepositories_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
916
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__deployments__deploymentID_><span class=parent>/deployments</span>/{deploymentID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_deployments__deploymentID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_deployments__deploymentID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_deployments__deploymentID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__deployments__deploymentID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_deployments__deploymentID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get details about a specific deployment.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_deployments__deploymentID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a specific deployment.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_deployments__deploymentID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific deployment.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deployments__deploymentID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/deployments</span>/{deploymentID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get details about a specific deployment.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deployments__deploymentID__get_request data-toggle=tab>Request</a></li><li><a href=#_deployments__deploymentID__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deployments__deploymentID__get_request><h3>URI Parameters</h3><ul><li><strong>deploymentID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_deployments__deploymentID__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
917
|
+ "id": "redisslave-deploy",
|
|
|
918
|
+ "kind": "Deployment",
|
|
|
919
|
+ "apiVersion": "v1beta1",
|
|
|
920
|
+ "triggerPolicy": "manual",
|
|
|
921
|
+ "configId": "redisslave-config",
|
|
|
922
|
+ "strategy": {
|
|
|
923
|
+ "type": "customPod",
|
|
|
924
|
+ "customPod": {
|
|
|
925
|
+ "image": "127.0.0.1:5000/openshift/kube-deploy"
|
|
|
926
|
+ }
|
|
|
927
|
+ },
|
|
|
928
|
+ "controllerTemplate": {
|
|
|
929
|
+ "replicas": 2,
|
|
|
930
|
+ "replicaSelector": {
|
|
|
931
|
+ "name": "redisslave"
|
|
|
932
|
+ },
|
|
|
933
|
+ "podTemplate": {
|
|
|
934
|
+ "desiredState": {
|
|
|
935
|
+ "manifest": {
|
|
|
936
|
+ "version": "v1beta1",
|
|
|
937
|
+ "id": "redisSlaveController",
|
|
|
938
|
+ "containers": [
|
|
|
939
|
+ {
|
|
|
940
|
+ "name": "slave",
|
|
|
941
|
+ "image": "brendanburns/redis-slave",
|
|
|
942
|
+ "env": [
|
|
|
943
|
+ {
|
|
|
944
|
+ "name": "REDIS_PASSWORD",
|
|
|
945
|
+ "value": "secret"
|
|
|
946
|
+ }
|
|
|
947
|
+ ],
|
|
|
948
|
+ "ports": [
|
|
|
949
|
+ {
|
|
|
950
|
+ "containerPort": 6379
|
|
|
951
|
+ }
|
|
|
952
|
+ ]
|
|
|
953
|
+ }
|
|
|
954
|
+ ]
|
|
|
955
|
+ }
|
|
|
956
|
+ },
|
|
|
957
|
+ "labels": {
|
|
|
958
|
+ "name": "redisslave"
|
|
|
959
|
+ }
|
|
|
960
|
+ }
|
|
|
961
|
+ }
|
|
|
962
|
+}
|
|
|
963
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deployments__deploymentID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/deployments</span>/{deploymentID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a specific deployment.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deployments__deploymentID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deployments__deploymentID__put_request><h3>URI Parameters</h3><ul><li><strong>deploymentID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
964
|
+ "id": "redisslave-deploy",
|
|
|
965
|
+ "kind": "Deployment",
|
|
|
966
|
+ "apiVersion": "v1beta1",
|
|
|
967
|
+ "triggerPolicy": "manual",
|
|
|
968
|
+ "configId": "redisslave-config",
|
|
|
969
|
+ "strategy": {
|
|
|
970
|
+ "type": "customPod",
|
|
|
971
|
+ "customPod": {
|
|
|
972
|
+ "image": "127.0.0.1:5000/openshift/kube-deploy"
|
|
|
973
|
+ }
|
|
|
974
|
+ },
|
|
|
975
|
+ "controllerTemplate": {
|
|
|
976
|
+ "replicas": 2,
|
|
|
977
|
+ "replicaSelector": {
|
|
|
978
|
+ "name": "redisslave"
|
|
|
979
|
+ },
|
|
|
980
|
+ "podTemplate": {
|
|
|
981
|
+ "desiredState": {
|
|
|
982
|
+ "manifest": {
|
|
|
983
|
+ "version": "v1beta1",
|
|
|
984
|
+ "id": "redisSlaveController",
|
|
|
985
|
+ "containers": [
|
|
|
986
|
+ {
|
|
|
987
|
+ "name": "slave",
|
|
|
988
|
+ "image": "brendanburns/redis-slave",
|
|
|
989
|
+ "env": [
|
|
|
990
|
+ {
|
|
|
991
|
+ "name": "REDIS_PASSWORD",
|
|
|
992
|
+ "value": "secret"
|
|
|
993
|
+ }
|
|
|
994
|
+ ],
|
|
|
995
|
+ "ports": [
|
|
|
996
|
+ {
|
|
|
997
|
+ "containerPort": 6379
|
|
|
998
|
+ }
|
|
|
999
|
+ ]
|
|
|
1000
|
+ }
|
|
|
1001
|
+ ]
|
|
|
1002
|
+ }
|
|
|
1003
|
+ },
|
|
|
1004
|
+ "labels": {
|
|
|
1005
|
+ "name": "redisslave"
|
|
|
1006
|
+ }
|
|
|
1007
|
+ }
|
|
|
1008
|
+ }
|
|
|
1009
|
+}
|
|
|
1010
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deployments__deploymentID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/deployments</span>/{deploymentID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific deployment.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deployments__deploymentID__delete_request data-toggle=tab>Request</a></li><li><a href=#_deployments__deploymentID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deployments__deploymentID__delete_request><h3>URI Parameters</h3><ul><li><strong>deploymentID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_deployments__deploymentID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
1011
|
+ "apiVersion": "v1beta1",
|
|
|
1012
|
+ "creationTimestamp": null,
|
|
|
1013
|
+ "kind": "Status",
|
|
|
1014
|
+ "status": "success"
|
|
|
1015
|
+}
|
|
|
1016
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_imageRepositories class=panel-title>/imageRepositories</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__imageRepositories><span class=parent></span>/imageRepositories</a> <span class=methods><a href=# data-toggle=modal data-target=#_imageRepositories_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_imageRepositories_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__imageRepositories class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_imageRepositories_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all image repositories.</p><p>An image repository is a collection of images that share the same metadata. It may reference a Docker image repository on a Docker registry, but this is optional. An image repository also contains a mapping of tags to images.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_imageRepositories_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new image repository.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/imageRepositories</h4></div><div class=modal-body><div class="alert alert-info"><p>List all image repositories.</p><p>An image repository is a collection of images that share the same metadata. It may reference a Docker image repository on a Docker registry, but this is optional. An image repository also contains a mapping of tags to images.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories_get_request data-toggle=tab>Request</a></li><li><a href=#_imageRepositories_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories_get_request></div><div class=tab-pane id=_imageRepositories_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
193
|
1017
|
"apiVersion": "v1beta1",
|
|
194
|
1018
|
"creationTimestamp": null,
|
|
195
|
1019
|
"items": [
|
|
...
|
...
|
@@ -219,7 +1023,7 @@
|
|
219
|
219
|
"kind": "ImageRepositoryList",
|
|
220
|
220
|
"resourceVersion": 22
|
|
221
|
221
|
}
|
|
222
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/imageRepositories</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new image repository</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
222
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/imageRepositories</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new image repository.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
223
|
223
|
"apiVersion": "v1beta1",
|
|
224
|
224
|
"dockerImageRepository": "openshift/ruby-19-centos",
|
|
225
|
225
|
"id": "test",
|
|
...
|
...
|
@@ -231,7 +1035,7 @@
|
|
231
|
231
|
"latest": "120e218dd395ec314e7b6249f39d2853911b3d6def6ea164ae05722649f34b16"
|
|
232
|
232
|
}
|
|
233
|
233
|
}
|
|
234
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_imageRepositories__repositoryID_ class=panel-title>/imageRepositories/{repositoryID}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__imageRepositories__repositoryID_><span class=parent></span>/imageRepositories/{repositoryID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_imageRepositories__repositoryID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_imageRepositories__repositoryID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_imageRepositories__repositoryID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__imageRepositories__repositoryID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_imageRepositories__repositoryID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get information about an image repository</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_imageRepositories__repositoryID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update an image repository</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_imageRepositories__repositoryID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete an image repository</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories__repositoryID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/imageRepositories/{repositoryID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get information about an image repository</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories__repositoryID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories__repositoryID__get_request><h3>URI Parameters</h3><ul><li><strong>repositoryID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
234
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__imageRepositories__repositoryID_><span class=parent>/imageRepositories</span>/{repositoryID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_imageRepositories__repositoryID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_imageRepositories__repositoryID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_imageRepositories__repositoryID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__imageRepositories__repositoryID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_imageRepositories__repositoryID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get information about a specific image repository.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_imageRepositories__repositoryID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update an image repository.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_imageRepositories__repositoryID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete an image repository.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories__repositoryID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/imageRepositories</span>/{repositoryID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get information about a specific image repository.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories__repositoryID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories__repositoryID__get_request><h3>URI Parameters</h3><ul><li><strong>repositoryID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
235
|
235
|
"apiVersion": "v1beta1",
|
|
236
|
236
|
"creationTimestamp": "2014-09-10T09:33:42-04:00",
|
|
237
|
237
|
"dockerImageRepository": "openshift/ruby-19-centos",
|
|
...
|
...
|
@@ -245,7 +1049,7 @@
|
|
245
|
245
|
"latest": "120e218dd395ec314e7b6249f39d2853911b3d6def6ea164ae05722649f34b16"
|
|
246
|
246
|
}
|
|
247
|
247
|
}
|
|
248
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories__repositoryID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent></span>/imageRepositories/{repositoryID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update an image repository</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories__repositoryID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories__repositoryID__put_request><h3>URI Parameters</h3><ul><li><strong>repositoryID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
248
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories__repositoryID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/imageRepositories</span>/{repositoryID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update an image repository.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories__repositoryID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories__repositoryID__put_request><h3>URI Parameters</h3><ul><li><strong>repositoryID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
249
|
249
|
"apiVersion": "v1beta1",
|
|
250
|
250
|
"creationTimestamp": "2014-09-10T09:33:42-04:00",
|
|
251
|
251
|
"dockerImageRepository": "openshift/ruby-19-centos",
|
|
...
|
...
|
@@ -259,13 +1063,99 @@
|
|
259
|
259
|
"latest": "120e218dd395ec314e7b6249f39d2853911b3d6def6ea164ae05722649f34b16"
|
|
260
|
260
|
}
|
|
261
|
261
|
}
|
|
262
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories__repositoryID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/imageRepositories/{repositoryID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete an image repository</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories__repositoryID__delete_request data-toggle=tab>Request</a></li><li><a href=#_imageRepositories__repositoryID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories__repositoryID__delete_request><h3>URI Parameters</h3><ul><li><strong>repositoryID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_imageRepositories__repositoryID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
262
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositories__repositoryID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/imageRepositories</span>/{repositoryID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete an image repository.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositories__repositoryID__delete_request data-toggle=tab>Request</a></li><li><a href=#_imageRepositories__repositoryID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositories__repositoryID__delete_request><h3>URI Parameters</h3><ul><li><strong>repositoryID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_imageRepositories__repositoryID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
263
|
263
|
"apiVersion": "v1beta1",
|
|
264
|
264
|
"creationTimestamp": null,
|
|
265
|
265
|
"kind": "Status",
|
|
266
|
266
|
"status": "success"
|
|
267
|
267
|
}
|
|
268
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_images class=panel-title>/images</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__images><span class=parent></span>/images</a> <span class=methods><a href=# data-toggle=modal data-target=#_images_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_images_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__images class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_images_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Lists all images.</p><p>An image is a reference to an image in a Docker image repository on a Docker registry, plus a set of metadata. The metadata that Openshift stores for an image will augment the metadata that has already been specified in the image through its Dockerfile.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_images_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new image definition</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_images_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/images</h4></div><div class=modal-body><div class="alert alert-info"><p>Lists all images.</p><p>An image is a reference to an image in a Docker image repository on a Docker registry, plus a set of metadata. The metadata that Openshift stores for an image will augment the metadata that has already been specified in the image through its Dockerfile.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_images_get_request data-toggle=tab>Request</a></li><li><a href=#_images_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_images_get_request></div><div class=tab-pane id=_images_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
268
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_imageRepositoryMappings class=panel-title>/imageRepositoryMappings</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__imageRepositoryMappings><span class=parent></span>/imageRepositoryMappings</a> <span class=methods><a href=# data-toggle=modal data-target=#_imageRepositoryMappings_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__imageRepositoryMappings class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_imageRepositoryMappings_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create an image and update an image repository.</p><p>This is designed as a webhook that a Docker registry can invoke when a new tag is created. The image repository mapping contains a reference to the repository, the image's metadata, and the name of the new tag. Upon execution, a new image is created if it doesn't already exist, and the image repository is updated with the new tag.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositoryMappings_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/imageRepositoryMappings</h4></div><div class=modal-body><div class="alert alert-info"><p>Create an image and update an image repository.</p><p>This is designed as a webhook that a Docker registry can invoke when a new tag is created. The image repository mapping contains a reference to the repository, the image's metadata, and the name of the new tag. Upon execution, a new image is created if it doesn't already exist, and the image repository is updated with the new tag.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositoryMappings_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositoryMappings_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
269
|
+ "dockerImageRepository": "localhost:5000/someproject/somerepo",
|
|
|
270
|
+ "image": {
|
|
|
271
|
+ "dockerImageReference": "localhost:5000/someproject/somerepo:c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
|
272
|
+ "id": "c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
|
273
|
+ "metadata": {
|
|
|
274
|
+ "Size": 0,
|
|
|
275
|
+ "architecture": "amd64",
|
|
|
276
|
+ "config": {
|
|
|
277
|
+ "AttachStderr": false,
|
|
|
278
|
+ "AttachStdin": false,
|
|
|
279
|
+ "AttachStdout": false,
|
|
|
280
|
+ "Cmd": [
|
|
|
281
|
+ "/bin/sh"
|
|
|
282
|
+ ],
|
|
|
283
|
+ "CpuShares": 0,
|
|
|
284
|
+ "Cpuset": "",
|
|
|
285
|
+ "Domainname": "",
|
|
|
286
|
+ "Entrypoint": null,
|
|
|
287
|
+ "Env": [
|
|
|
288
|
+ "c=e",
|
|
|
289
|
+ "b=2",
|
|
|
290
|
+ "a=1",
|
|
|
291
|
+ "HOME=/",
|
|
|
292
|
+ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
293
|
+ ],
|
|
|
294
|
+ "ExposedPorts": null,
|
|
|
295
|
+ "Hostname": "",
|
|
|
296
|
+ "Image": "",
|
|
|
297
|
+ "Memory": 0,
|
|
|
298
|
+ "MemorySwap": 0,
|
|
|
299
|
+ "NetworkDisabled": false,
|
|
|
300
|
+ "OnBuild": null,
|
|
|
301
|
+ "OpenStdin": false,
|
|
|
302
|
+ "PortSpecs": null,
|
|
|
303
|
+ "StdinOnce": false,
|
|
|
304
|
+ "Tty": false,
|
|
|
305
|
+ "User": "",
|
|
|
306
|
+ "Volumes": null,
|
|
|
307
|
+ "WorkingDir": ""
|
|
|
308
|
+ },
|
|
|
309
|
+ "container": "6b03c2dda0f8cbfa6186d96557e35e35c61915a70e4217a465f92f26c2d9290b",
|
|
|
310
|
+ "container_config": {
|
|
|
311
|
+ "AttachStderr": true,
|
|
|
312
|
+ "AttachStdin": false,
|
|
|
313
|
+ "AttachStdout": true,
|
|
|
314
|
+ "Cmd": [
|
|
|
315
|
+ "/bin/sh"
|
|
|
316
|
+ ],
|
|
|
317
|
+ "CpuShares": 0,
|
|
|
318
|
+ "Cpuset": "",
|
|
|
319
|
+ "Domainname": "",
|
|
|
320
|
+ "Entrypoint": null,
|
|
|
321
|
+ "Env": [
|
|
|
322
|
+ "c=e",
|
|
|
323
|
+ "b=2",
|
|
|
324
|
+ "a=1",
|
|
|
325
|
+ "HOME=/",
|
|
|
326
|
+ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
327
|
+ ],
|
|
|
328
|
+ "ExposedPorts": null,
|
|
|
329
|
+ "Hostname": "6b03c2dda0f8",
|
|
|
330
|
+ "Image": "localhost:5000/someproject/somerepo",
|
|
|
331
|
+ "Memory": 0,
|
|
|
332
|
+ "MemorySwap": 0,
|
|
|
333
|
+ "NetworkDisabled": false,
|
|
|
334
|
+ "OnBuild": null,
|
|
|
335
|
+ "OpenStdin": false,
|
|
|
336
|
+ "PortSpecs": null,
|
|
|
337
|
+ "StdinOnce": false,
|
|
|
338
|
+ "Tty": false,
|
|
|
339
|
+ "User": "",
|
|
|
340
|
+ "Volumes": null,
|
|
|
341
|
+ "WorkingDir": ""
|
|
|
342
|
+ },
|
|
|
343
|
+ "created": "2014-09-04T17:43:39.863545902Z",
|
|
|
344
|
+ "docker_version": "1.1.2",
|
|
|
345
|
+ "id": "c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
|
346
|
+ "os": "linux",
|
|
|
347
|
+ "parent": "32730be9f383719ce6308329c8ee5aac189ece9e41928dc10b8bc0fc35e9d1d5"
|
|
|
348
|
+ }
|
|
|
349
|
+ },
|
|
|
350
|
+ "kind": "ImageRepositoryMapping",
|
|
|
351
|
+ "tag": "latest",
|
|
|
352
|
+ "version": "v1beta1"
|
|
|
353
|
+}
|
|
|
354
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_images class=panel-title>/images</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__images><span class=parent></span>/images</a> <span class=methods><a href=# data-toggle=modal data-target=#_images_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_images_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__images class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_images_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all images.</p><p>An image is a reference to an image in a Docker image repository on a Docker registry, plus a set of metadata. The metadata that Openshift stores for an image will augment the metadata that has already been specified in the image through its Dockerfile.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_images_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new image definition.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_images_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/images</h4></div><div class=modal-body><div class="alert alert-info"><p>List all images.</p><p>An image is a reference to an image in a Docker image repository on a Docker registry, plus a set of metadata. The metadata that Openshift stores for an image will augment the metadata that has already been specified in the image through its Dockerfile.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_images_get_request data-toggle=tab>Request</a></li><li><a href=#_images_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_images_get_request></div><div class=tab-pane id=_images_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
269
|
355
|
"apiVersion": "v1beta1",
|
|
270
|
356
|
"creationTimestamp": null,
|
|
271
|
357
|
"items": [
|
|
...
|
...
|
@@ -373,7 +1263,7 @@
|
|
373
|
373
|
"kind": "ImageList",
|
|
374
|
374
|
"resourceVersion": 22
|
|
375
|
375
|
}
|
|
376
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_images_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/images</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new image definition</p></div><ul class="nav nav-tabs"><li class=active><a href=#_images_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_images_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
376
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_images_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/images</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new image definition.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_images_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_images_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
377
|
377
|
"apiVersion": "v1beta1",
|
|
378
|
378
|
"dockerImageReference": "localhost:5000/someproject/somerepo:c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
379
|
379
|
"id": "c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
...
|
...
|
@@ -437,7 +1327,7 @@
|
|
437
|
437
|
"parent": "32730be9f383719ce6308329c8ee5aac189ece9e41928dc10b8bc0fc35e9d1d5"
|
|
438
|
438
|
},
|
|
439
|
439
|
}
|
|
440
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_images__imageID_ class=panel-title>/images/{imageID}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__images__imageID_><span class=parent></span>/images/{imageID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_images__imageID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_images__imageID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__images__imageID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_images__imageID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get image definition</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_images__imageID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete an image</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_images__imageID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/images/{imageID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get image definition</p></div><ul class="nav nav-tabs"><li class=active><a href=#_images__imageID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_images__imageID__get_request><h3>URI Parameters</h3><ul><li><strong>imageID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
440
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__images__imageID_><span class=parent>/images</span>/{imageID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_images__imageID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_images__imageID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__images__imageID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_images__imageID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific image definition.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_images__imageID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific image.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_images__imageID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/images</span>/{imageID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific image definition.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_images__imageID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_images__imageID__get_request><h3>URI Parameters</h3><ul><li><strong>imageID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
441
|
441
|
"apiVersion": "v1beta1",
|
|
442
|
442
|
"creationTimestamp": "2014-09-10T12:23:24-04:00",
|
|
443
|
443
|
"dockerImageReference": "localhost:5000/someproject/somerepo:c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
...
|
...
|
@@ -503,343 +1393,13 @@
|
|
503
|
503
|
},
|
|
504
|
504
|
"resourceVersion": 18
|
|
505
|
505
|
}
|
|
506
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_images__imageID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/images/{imageID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete an image</p></div><ul class="nav nav-tabs"><li class=active><a href=#_images__imageID__delete_request data-toggle=tab>Request</a></li><li><a href=#_images__imageID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_images__imageID__delete_request><h3>URI Parameters</h3><ul><li><strong>imageID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_images__imageID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
506
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_images__imageID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/images</span>/{imageID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific image.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_images__imageID__delete_request data-toggle=tab>Request</a></li><li><a href=#_images__imageID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_images__imageID__delete_request><h3>URI Parameters</h3><ul><li><strong>imageID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_images__imageID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
507
|
507
|
"apiVersion": "v1beta1",
|
|
508
|
508
|
"creationTimestamp": null,
|
|
509
|
509
|
"kind": "Status",
|
|
510
|
510
|
"status": "success"
|
|
511
|
511
|
}
|
|
512
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_imageRepositoryMappings class=panel-title>/imageRepositoryMappings</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__imageRepositoryMappings><span class=parent></span>/imageRepositoryMappings</a> <span class=methods><a href=# data-toggle=modal data-target=#_imageRepositoryMappings_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__imageRepositoryMappings class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_imageRepositoryMappings_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Creates an image and updates an image repository.</p><p>This is designed as a webhook that a Docker registry can invoke when a new tag is created. The image repository mapping contains a reference to the repository, the image's metadata, and the name of the new tag. Upon execution, a new image is created if it doesn't already exist, and the image repository is updated with the new tag.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_imageRepositoryMappings_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/imageRepositoryMappings</h4></div><div class=modal-body><div class="alert alert-info"><p>Creates an image and updates an image repository.</p><p>This is designed as a webhook that a Docker registry can invoke when a new tag is created. The image repository mapping contains a reference to the repository, the image's metadata, and the name of the new tag. Upon execution, a new image is created if it doesn't already exist, and the image repository is updated with the new tag.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_imageRepositoryMappings_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_imageRepositoryMappings_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
513
|
|
- "dockerImageRepository": "localhost:5000/someproject/somerepo",
|
|
514
|
|
- "image": {
|
|
515
|
|
- "dockerImageReference": "localhost:5000/someproject/somerepo:c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
516
|
|
- "id": "c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
517
|
|
- "metadata": {
|
|
518
|
|
- "Size": 0,
|
|
519
|
|
- "architecture": "amd64",
|
|
520
|
|
- "config": {
|
|
521
|
|
- "AttachStderr": false,
|
|
522
|
|
- "AttachStdin": false,
|
|
523
|
|
- "AttachStdout": false,
|
|
524
|
|
- "Cmd": [
|
|
525
|
|
- "/bin/sh"
|
|
526
|
|
- ],
|
|
527
|
|
- "CpuShares": 0,
|
|
528
|
|
- "Cpuset": "",
|
|
529
|
|
- "Domainname": "",
|
|
530
|
|
- "Entrypoint": null,
|
|
531
|
|
- "Env": [
|
|
532
|
|
- "c=e",
|
|
533
|
|
- "b=2",
|
|
534
|
|
- "a=1",
|
|
535
|
|
- "HOME=/",
|
|
536
|
|
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
537
|
|
- ],
|
|
538
|
|
- "ExposedPorts": null,
|
|
539
|
|
- "Hostname": "",
|
|
540
|
|
- "Image": "",
|
|
541
|
|
- "Memory": 0,
|
|
542
|
|
- "MemorySwap": 0,
|
|
543
|
|
- "NetworkDisabled": false,
|
|
544
|
|
- "OnBuild": null,
|
|
545
|
|
- "OpenStdin": false,
|
|
546
|
|
- "PortSpecs": null,
|
|
547
|
|
- "StdinOnce": false,
|
|
548
|
|
- "Tty": false,
|
|
549
|
|
- "User": "",
|
|
550
|
|
- "Volumes": null,
|
|
551
|
|
- "WorkingDir": ""
|
|
552
|
|
- },
|
|
553
|
|
- "container": "6b03c2dda0f8cbfa6186d96557e35e35c61915a70e4217a465f92f26c2d9290b",
|
|
554
|
|
- "container_config": {
|
|
555
|
|
- "AttachStderr": true,
|
|
556
|
|
- "AttachStdin": false,
|
|
557
|
|
- "AttachStdout": true,
|
|
558
|
|
- "Cmd": [
|
|
559
|
|
- "/bin/sh"
|
|
560
|
|
- ],
|
|
561
|
|
- "CpuShares": 0,
|
|
562
|
|
- "Cpuset": "",
|
|
563
|
|
- "Domainname": "",
|
|
564
|
|
- "Entrypoint": null,
|
|
565
|
|
- "Env": [
|
|
566
|
|
- "c=e",
|
|
567
|
|
- "b=2",
|
|
568
|
|
- "a=1",
|
|
569
|
|
- "HOME=/",
|
|
570
|
|
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
571
|
|
- ],
|
|
572
|
|
- "ExposedPorts": null,
|
|
573
|
|
- "Hostname": "6b03c2dda0f8",
|
|
574
|
|
- "Image": "localhost:5000/someproject/somerepo",
|
|
575
|
|
- "Memory": 0,
|
|
576
|
|
- "MemorySwap": 0,
|
|
577
|
|
- "NetworkDisabled": false,
|
|
578
|
|
- "OnBuild": null,
|
|
579
|
|
- "OpenStdin": false,
|
|
580
|
|
- "PortSpecs": null,
|
|
581
|
|
- "StdinOnce": false,
|
|
582
|
|
- "Tty": false,
|
|
583
|
|
- "User": "",
|
|
584
|
|
- "Volumes": null,
|
|
585
|
|
- "WorkingDir": ""
|
|
586
|
|
- },
|
|
587
|
|
- "created": "2014-09-04T17:43:39.863545902Z",
|
|
588
|
|
- "docker_version": "1.1.2",
|
|
589
|
|
- "id": "c115fca463efa744a5492ca580ef24b20ed5ef2155c624cc5b1262aefc14797b",
|
|
590
|
|
- "os": "linux",
|
|
591
|
|
- "parent": "32730be9f383719ce6308329c8ee5aac189ece9e41928dc10b8bc0fc35e9d1d5"
|
|
592
|
|
- }
|
|
593
|
|
- },
|
|
594
|
|
- "kind": "ImageRepositoryMapping",
|
|
595
|
|
- "tag": "latest",
|
|
596
|
|
- "version": "v1beta1"
|
|
597
|
|
-}
|
|
598
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_services class=panel-title>/services</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__services><span class=parent></span>/services</a> <span class=methods><a href=# data-toggle=modal data-target=#_services_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_services_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__services class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_services_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Lists all services that your account has access to</p><p>Services can be public or owned by a project. They contain a template of a pod and reference image repositories that supply the images for those templates. A service may be configured to react to an image being pushed to an image repository by initiating a deployment. Deployments are associated with a service and make use of Kubernetes replication controllers to manage pods in a cluster. For deployments, a service contains a policy that constrains how deployments can occur. For example, it may require that there exist at least 2 operational pods at all times. A deployment needs to operate under those constraints when making changes.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_services_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new service</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_services_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/services</h4></div><div class=modal-body><div class="alert alert-info"><p>Lists all services that your account has access to</p><p>Services can be public or owned by a project. They contain a template of a pod and reference image repositories that supply the images for those templates. A service may be configured to react to an image being pushed to an image repository by initiating a deployment. Deployments are associated with a service and make use of Kubernetes replication controllers to manage pods in a cluster. For deployments, a service contains a policy that constrains how deployments can occur. For example, it may require that there exist at least 2 operational pods at all times. A deployment needs to operate under those constraints when making changes.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_services_get_request data-toggle=tab>Request</a></li><li><a href=#_services_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_services_get_request><h3>Query Parameters</h3><ul><li><strong>projectId</strong>: <em>(string)</em><p>filter the services owned by a particular project</p></li></ul></div><div class=tab-pane id=_services_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
599
|
|
- "list":
|
|
600
|
|
- [
|
|
601
|
|
- {
|
|
602
|
|
- "id": "53c4249f076573c0f4000001",
|
|
603
|
|
- "name": "service-name",
|
|
604
|
|
- "domain": "domain-id",
|
|
605
|
|
- "desiredState":
|
|
606
|
|
- {
|
|
607
|
|
- "replicas": 3,
|
|
608
|
|
- "replicaSelector": { "name": "service-name" },
|
|
609
|
|
- "replicaPolicy": {
|
|
610
|
|
- "atLeast": 2
|
|
611
|
|
- },
|
|
612
|
|
- "activeDeployment": "a_deployment_id",
|
|
613
|
|
- "podTemplate":
|
|
614
|
|
- {
|
|
615
|
|
- "desiredState":
|
|
616
|
|
- {
|
|
617
|
|
- "image": "server/domain/name",
|
|
618
|
|
- "network-ports": [
|
|
619
|
|
- {
|
|
620
|
|
- "hostPort": 8080,
|
|
621
|
|
- "containerPort": 80
|
|
622
|
|
- }
|
|
623
|
|
- ],
|
|
624
|
|
- "owner": true
|
|
625
|
|
- },
|
|
626
|
|
- "labels": {
|
|
627
|
|
- "name": "service-name"
|
|
628
|
|
- }
|
|
629
|
|
- }
|
|
630
|
|
- }
|
|
631
|
|
- ]
|
|
632
|
|
- }
|
|
633
|
|
-}
|
|
634
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_services_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/services</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_services_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_services_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
635
|
|
- "data":
|
|
636
|
|
- {
|
|
637
|
|
- "name": "service-name",
|
|
638
|
|
- "desiredState":
|
|
639
|
|
- {
|
|
640
|
|
- "replicas": 3,
|
|
641
|
|
- "replicaPolicy": {
|
|
642
|
|
- "atLeast": 2
|
|
643
|
|
- },
|
|
644
|
|
- "podTemplate":
|
|
645
|
|
- {
|
|
646
|
|
- "desiredState":
|
|
647
|
|
- {
|
|
648
|
|
- "image": "server/domain/name",
|
|
649
|
|
- "network-ports": [
|
|
650
|
|
- {
|
|
651
|
|
- "hostPort": 8080,
|
|
652
|
|
- "containerPort": 80
|
|
653
|
|
- }
|
|
654
|
|
- ]
|
|
655
|
|
- }
|
|
656
|
|
- }
|
|
657
|
|
- }
|
|
658
|
|
- }
|
|
659
|
|
-}
|
|
660
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_service__serviceID_ class=panel-title>/service/{serviceID}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__service__serviceID_><span class=parent></span>/service/{serviceID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_service__serviceID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_service__serviceID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_service__serviceID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__service__serviceID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_service__serviceID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific service definition</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_service__serviceID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a service</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_service__serviceID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a service</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_service__serviceID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/service/{serviceID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific service definition</p></div><ul class="nav nav-tabs"><li class=active><a href=#_service__serviceID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_service__serviceID__get_request><h3>URI Parameters</h3><ul><li><strong>serviceID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
661
|
|
- "data":
|
|
662
|
|
- {
|
|
663
|
|
- "id": "53c4249f076573c0f4000001",
|
|
664
|
|
- "name": "service-name",
|
|
665
|
|
- "domain": "domain-id",
|
|
666
|
|
- "desiredState":
|
|
667
|
|
- {
|
|
668
|
|
- "replicas": 3,
|
|
669
|
|
- "replicaSelector": { "name": "service-name" },
|
|
670
|
|
- "replicaPolicy": {
|
|
671
|
|
- "atLeast": 2
|
|
672
|
|
- },
|
|
673
|
|
- "activeDeployment": "a_deployment_id",
|
|
674
|
|
- "podTemplate":
|
|
675
|
|
- {
|
|
676
|
|
- "desiredState":
|
|
677
|
|
- {
|
|
678
|
|
- "image": "server/domain/name",
|
|
679
|
|
- "network-ports": [
|
|
680
|
|
- {
|
|
681
|
|
- "hostPort": 8080,
|
|
682
|
|
- "containerPort": 80
|
|
683
|
|
- }
|
|
684
|
|
- ],
|
|
685
|
|
- "owner": true
|
|
686
|
|
- },
|
|
687
|
|
- "labels": {
|
|
688
|
|
- "name": "service-name"
|
|
689
|
|
- }
|
|
690
|
|
- }
|
|
691
|
|
- }
|
|
692
|
|
- }
|
|
693
|
|
-}
|
|
694
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_service__serviceID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent></span>/service/{serviceID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_service__serviceID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_service__serviceID__put_request><h3>URI Parameters</h3><ul><li><strong>serviceID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
695
|
|
- "data":
|
|
696
|
|
- {
|
|
697
|
|
- "id": "53c4249f076573c0f4000001",
|
|
698
|
|
- "name": "service-name",
|
|
699
|
|
- "domain": "domain-id",
|
|
700
|
|
- "desiredState":
|
|
701
|
|
- {
|
|
702
|
|
- "replicas": 3,
|
|
703
|
|
- "replicaSelector": { "name": "service-name" },
|
|
704
|
|
- "replicaPolicy": {
|
|
705
|
|
- "atLeast": 2
|
|
706
|
|
- },
|
|
707
|
|
- "activeDeployment": "a_deployment_id",
|
|
708
|
|
- "podTemplate":
|
|
709
|
|
- {
|
|
710
|
|
- "desiredState":
|
|
711
|
|
- {
|
|
712
|
|
- "image": "server/domain/name",
|
|
713
|
|
- "network-ports": [
|
|
714
|
|
- {
|
|
715
|
|
- "hostPort": 8080,
|
|
716
|
|
- "containerPort": 80
|
|
717
|
|
- }
|
|
718
|
|
- ],
|
|
719
|
|
- "owner": true
|
|
720
|
|
- },
|
|
721
|
|
- "labels": {
|
|
722
|
|
- "name": "service-name"
|
|
723
|
|
- }
|
|
724
|
|
- }
|
|
725
|
|
- }
|
|
726
|
|
- }
|
|
727
|
|
-}
|
|
728
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_service__serviceID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/service/{serviceID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_service__serviceID__delete_request data-toggle=tab>Request</a></li><li><a href=#_service__serviceID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_service__serviceID__delete_request><h3>URI Parameters</h3><ul><li><strong>serviceID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_service__serviceID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
729
|
|
- "apiVersion": "v1beta1",
|
|
730
|
|
- "creationTimestamp": null,
|
|
731
|
|
- "kind": "Status",
|
|
732
|
|
- "status": "success"
|
|
733
|
|
-}
|
|
734
|
|
-</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__service__serviceID__environment_variables><span class=parent>/service/{serviceID}</span>/environment-variables</a> <span class=methods><a href=# data-toggle=modal data-target=#_service__serviceID__environment_variables_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_service__serviceID__environment_variables_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__service__serviceID__environment_variables class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_service__serviceID__environment_variables_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Environment variables associated with this service</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_service__serviceID__environment_variables_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create/update environment variables</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_service__serviceID__environment_variables_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/service/{serviceID}</span>/environment-variables</h4></div><div class=modal-body><div class="alert alert-info"><p>Environment variables associated with this service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_service__serviceID__environment_variables_get_request data-toggle=tab>Request</a></li><li><a href=#_service__serviceID__environment_variables_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_service__serviceID__environment_variables_get_request><h3>URI Parameters</h3><ul><li><strong>serviceID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_service__serviceID__environment_variables_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
735
|
|
- "data":
|
|
736
|
|
- [
|
|
737
|
|
- { "name": "var1", "value": "value1" },
|
|
738
|
|
- { "name": "var2", "value": "value2" }
|
|
739
|
|
- ]
|
|
740
|
|
-}
|
|
741
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_service__serviceID__environment_variables_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent>/service/{serviceID}</span>/environment-variables</h4></div><div class=modal-body><div class="alert alert-info"><p>Create/update environment variables</p></div><ul class="nav nav-tabs"><li class=active><a href=#_service__serviceID__environment_variables_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_service__serviceID__environment_variables_post_request><h3>URI Parameters</h3><ul><li><strong>serviceID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
742
|
|
- "data":
|
|
743
|
|
- [
|
|
744
|
|
- { "name": "var1", "value": "value1" },
|
|
745
|
|
- { "name": "var2", "value": "value2" }
|
|
746
|
|
- ]
|
|
747
|
|
-}
|
|
748
|
|
-</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__service__serviceID__environment_variables__variableName_><span class=parent>/service/{serviceID}/environment-variables</span>/{variableName}</a> <span class=methods><a href=# data-toggle=modal data-target=#_service__serviceID__environment_variables__variableName__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_service__serviceID__environment_variables__variableName__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_service__serviceID__environment_variables__variableName__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__service__serviceID__environment_variables__variableName_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_service__serviceID__environment_variables__variableName__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get environment variable</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_service__serviceID__environment_variables__variableName__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update an environment variable's value</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_service__serviceID__environment_variables__variableName__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete an environment variable</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_service__serviceID__environment_variables__variableName__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/service/{serviceID}/environment-variables</span>/{variableName}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get environment variable</p></div><ul class="nav nav-tabs"><li class=active><a href=#_service__serviceID__environment_variables__variableName__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_service__serviceID__environment_variables__variableName__get_request><h3>URI Parameters</h3><ul><li><strong>serviceID</strong>: <em>required (string)</em></li><li><strong>variableName</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
749
|
|
- "data": { "name": "var1", "value": "value1" }
|
|
750
|
|
-}
|
|
751
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_service__serviceID__environment_variables__variableName__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/service/{serviceID}/environment-variables</span>/{variableName}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update an environment variable's value</p></div><ul class="nav nav-tabs"><li class=active><a href=#_service__serviceID__environment_variables__variableName__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_service__serviceID__environment_variables__variableName__put_request><h3>URI Parameters</h3><ul><li><strong>serviceID</strong>: <em>required (string)</em></li><li><strong>variableName</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
752
|
|
- "data": { "name": "var1", "value": "value1" }
|
|
753
|
|
-}
|
|
754
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_service__serviceID__environment_variables__variableName__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/service/{serviceID}/environment-variables</span>/{variableName}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete an environment variable</p></div><ul class="nav nav-tabs"><li class=active><a href=#_service__serviceID__environment_variables__variableName__delete_request data-toggle=tab>Request</a></li><li><a href=#_service__serviceID__environment_variables__variableName__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_service__serviceID__environment_variables__variableName__delete_request><h3>URI Parameters</h3><ul><li><strong>serviceID</strong>: <em>required (string)</em></li><li><strong>variableName</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_service__serviceID__environment_variables__variableName__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
755
|
|
- "apiVersion": "v1beta1",
|
|
756
|
|
- "creationTimestamp": null,
|
|
757
|
|
- "kind": "Status",
|
|
758
|
|
- "status": "success"
|
|
759
|
|
-}
|
|
760
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_deployments class=panel-title>/deployments</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__deployments><span class=parent></span>/deployments</a> <span class=methods><a href=# data-toggle=modal data-target=#_deployments_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_deployments_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__deployments class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_deployments_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Lists active deployments in the current project</p><p>Deployments effect change in a service such as scaling up, down, updating the current image, etc. Deployments may use different policies for carrying out the change. For example, a rolling update with a single pod change at a time, or a batch update, etc. Deployments make use of Kubernetes replicationControllers to bring about the changes.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_deployments_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new deployment</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deployments_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/deployments</h4></div><div class=modal-body><div class="alert alert-info"><p>Lists active deployments in the current project</p><p>Deployments effect change in a service such as scaling up, down, updating the current image, etc. Deployments may use different policies for carrying out the change. For example, a rolling update with a single pod change at a time, or a batch update, etc. Deployments make use of Kubernetes replicationControllers to bring about the changes.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deployments_get_request data-toggle=tab>Request</a></li><li><a href=#_deployments_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deployments_get_request></div><div class=tab-pane id=_deployments_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
761
|
|
- "list": [
|
|
762
|
|
- {
|
|
763
|
|
- "id": "1234235172374",
|
|
764
|
|
- "serviceId": "the-service-id",
|
|
765
|
|
- "replicationControllers": [
|
|
766
|
|
- "replication-controller-id1",
|
|
767
|
|
- "replication-controller-id2",
|
|
768
|
|
- "replication-controller-id3"
|
|
769
|
|
- ],
|
|
770
|
|
- "currentState": {
|
|
771
|
|
- "replicas": 1,
|
|
772
|
|
- "replicaSelector": {
|
|
773
|
|
- "name": "nginx"
|
|
774
|
|
- },
|
|
775
|
|
- "containers": [{
|
|
776
|
|
- "image": "dockerfile/nginx",
|
|
777
|
|
- "ports": [{"containerPort": 80, "hostPort": 8080}]
|
|
778
|
|
- }],
|
|
779
|
|
- },
|
|
780
|
|
- "desiredState": {
|
|
781
|
|
- "replicas": 2,
|
|
782
|
|
- "replicaSelector": {
|
|
783
|
|
- "name": "nginx"
|
|
784
|
|
- },
|
|
785
|
|
- "containers": [{
|
|
786
|
|
- "image": "dockerfile/nginx/v2tag",
|
|
787
|
|
- "ports": [{"containerPort": 80, "hostPort": 8080}]
|
|
788
|
|
- }],
|
|
789
|
|
- },
|
|
790
|
|
- "status": "active"
|
|
791
|
|
- }
|
|
792
|
|
- ]
|
|
793
|
|
-}
|
|
794
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deployments_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/deployments</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new deployment</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deployments_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deployments_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
795
|
|
- "object": {
|
|
796
|
|
- "id": "1234235172374",
|
|
797
|
|
- "serviceId": "the-service-id",
|
|
798
|
|
- "desiredState": {
|
|
799
|
|
- "replicas": 2,
|
|
800
|
|
- "replicaSelector": {
|
|
801
|
|
- "name": "nginx"
|
|
802
|
|
- },
|
|
803
|
|
- "containers": [{
|
|
804
|
|
- "image": "dockerfile/nginx/v2tag",
|
|
805
|
|
- "ports": [{"containerPort": 80, "hostPort": 8080}]
|
|
806
|
|
- }]
|
|
807
|
|
- }
|
|
808
|
|
- }
|
|
809
|
|
-}
|
|
810
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_deployment__deploymentID_ class=panel-title>/deployment/{deploymentID}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__deployment__deploymentID_><span class=parent></span>/deployment/{deploymentID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_deployment__deploymentID__get><span class="badge badge_get">get</span></a></span></h4></div><div id=panel__deployment__deploymentID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_deployment__deploymentID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get deployment details</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_deployment__deploymentID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/deployment/{deploymentID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get deployment details</p></div><ul class="nav nav-tabs"><li class=active><a href=#_deployment__deploymentID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_deployment__deploymentID__get_request><h3>URI Parameters</h3><ul><li><strong>deploymentID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
811
|
|
- "object": {
|
|
812
|
|
- "id": "1234235172374",
|
|
813
|
|
- "serviceId": "the-service-id",
|
|
814
|
|
- "replicationControllers": [
|
|
815
|
|
- "replication-controller-id1",
|
|
816
|
|
- "replication-controller-id2",
|
|
817
|
|
- "replication-controller-id3"
|
|
818
|
|
- ],
|
|
819
|
|
- "currentState": {
|
|
820
|
|
- "replicas": 1,
|
|
821
|
|
- "replicaSelector": {
|
|
822
|
|
- "name": "nginx"
|
|
823
|
|
- },
|
|
824
|
|
- "containers": [{
|
|
825
|
|
- "image": "dockerfile/nginx",
|
|
826
|
|
- "ports": [{"containerPort": 80, "hostPort": 8080}]
|
|
827
|
|
- }],
|
|
828
|
|
- },
|
|
829
|
|
- "desiredState": {
|
|
830
|
|
- "replicas": 2,
|
|
831
|
|
- "replicaSelector": {
|
|
832
|
|
- "name": "nginx"
|
|
833
|
|
- },
|
|
834
|
|
- "containers": [{
|
|
835
|
|
- "image": "dockerfile/nginx/v2tag",
|
|
836
|
|
- "ports": [{"containerPort": 80, "hostPort": 8080}]
|
|
837
|
|
- }],
|
|
838
|
|
- },
|
|
839
|
|
- "status": "active"
|
|
840
|
|
- }
|
|
841
|
|
-}
|
|
842
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_links class=panel-title>/links</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__links><span class=parent></span>/links</a> <span class=methods><a href=# data-toggle=modal data-target=#_links_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_links_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__links class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_links_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List of links between services in your account</p><p>Unlike a Docker link, a Link in OpenShift defines a relationship between services which may be composed by multiple Docker images. A link may include additional metadata about the relationship such as the algorithm to use to distribute requests.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_links_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new link between this service and a different service</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_links_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/links</h4></div><div class=modal-body><div class="alert alert-info"><p>List of links between services in your account</p><p>Unlike a Docker link, a Link in OpenShift defines a relationship between services which may be composed by multiple Docker images. A link may include additional metadata about the relationship such as the algorithm to use to distribute requests.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_links_get_request data-toggle=tab>Request</a></li><li><a href=#_links_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_links_get_request><h3>Query Parameters</h3><ul><li><strong>projectId</strong>: <em>(string)</em><p>filter the links owned by a particular project</p></li><li><strong>serviceId</strong>: <em>(string)</em><p>filter the links attached to a particular service</p></li></ul></div><div class=tab-pane id=_links_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
512
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_links class=panel-title>/links (NOT IMPLEMENTED)</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__links><span class=parent></span>/links</a> <span class=methods><a href=# data-toggle=modal data-target=#_links_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_links_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__links class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_links_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List of links between services in your account.</p><p>Unlike a Docker link, a Link in OpenShift defines a relationship between services which may be composed by multiple Docker images. A link may include additional metadata about the relationship such as the algorithm to use to distribute requests.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_links_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new link between two services.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_links_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/links</h4></div><div class=modal-body><div class="alert alert-info"><p>List of links between services in your account.</p><p>Unlike a Docker link, a Link in OpenShift defines a relationship between services which may be composed by multiple Docker images. A link may include additional metadata about the relationship such as the algorithm to use to distribute requests.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_links_get_request data-toggle=tab>Request</a></li><li><a href=#_links_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_links_get_request><h3>Query Parameters</h3><ul><li><strong>projectID</strong>: <em>(string)</em><p>filter the links owned by a particular project.</p></li><li><strong>serviceID</strong>: <em>(string)</em><p>filter the links attached to a particular service.</p></li></ul></div><div class=tab-pane id=_links_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
843
|
513
|
"list":
|
|
844
|
514
|
[
|
|
845
|
515
|
{
|
|
...
|
...
|
@@ -856,7 +1416,7 @@
|
|
856
|
856
|
}
|
|
857
|
857
|
]
|
|
858
|
858
|
}
|
|
859
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_links_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/links</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new link between this service and a different service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_links_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_links_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
859
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_links_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/links</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new link between two services.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_links_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_links_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
860
|
860
|
"data":
|
|
861
|
861
|
{
|
|
862
|
862
|
"id": "53c4249f076573c0f4000001",
|
|
...
|
...
|
@@ -871,7 +1431,7 @@
|
|
871
|
871
|
"policy": "round-robin"
|
|
872
|
872
|
}
|
|
873
|
873
|
}
|
|
874
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_link__linkID_ class=panel-title>/link/{linkID}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__link__linkID_><span class=parent></span>/link/{linkID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_link__linkID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_link__linkID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_link__linkID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__link__linkID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_link__linkID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get link details</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_link__linkID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a link</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_link__linkID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a link</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_link__linkID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/link/{linkID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get link details</p></div><ul class="nav nav-tabs"><li class=active><a href=#_link__linkID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_link__linkID__get_request><h3>URI Parameters</h3><ul><li><strong>linkID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
874
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__links__linkID_><span class=parent>/links</span>/{linkID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_links__linkID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_links__linkID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_links__linkID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__links__linkID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_links__linkID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get details about a specific link.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_links__linkID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a specific link.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_links__linkID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific link.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_links__linkID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/links</span>/{linkID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get details about a specific link.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_links__linkID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_links__linkID__get_request><h3>URI Parameters</h3><ul><li><strong>linkID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
875
|
875
|
"data":
|
|
876
|
876
|
{
|
|
877
|
877
|
"id": "53c4249f076573c0f4000001",
|
|
...
|
...
|
@@ -886,7 +1446,7 @@
|
|
886
|
886
|
"policy": "round-robin"
|
|
887
|
887
|
}
|
|
888
|
888
|
}
|
|
889
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_link__linkID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent></span>/link/{linkID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a link</p></div><ul class="nav nav-tabs"><li class=active><a href=#_link__linkID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_link__linkID__put_request><h3>URI Parameters</h3><ul><li><strong>linkID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
889
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_links__linkID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/links</span>/{linkID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a specific link.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_links__linkID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_links__linkID__put_request><h3>URI Parameters</h3><ul><li><strong>linkID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
890
|
890
|
"data":
|
|
891
|
891
|
{
|
|
892
|
892
|
"id": "53c4249f076573c0f4000001",
|
|
...
|
...
|
@@ -901,29 +1461,49 @@
|
|
901
|
901
|
"policy": "round-robin"
|
|
902
|
902
|
}
|
|
903
|
903
|
}
|
|
904
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_link__linkID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/link/{linkID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a link</p></div><ul class="nav nav-tabs"><li class=active><a href=#_link__linkID__delete_request data-toggle=tab>Request</a></li><li><a href=#_link__linkID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_link__linkID__delete_request><h3>URI Parameters</h3><ul><li><strong>linkID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_link__linkID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
904
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_links__linkID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/links</span>/{linkID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific link.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_links__linkID__delete_request data-toggle=tab>Request</a></li><li><a href=#_links__linkID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_links__linkID__delete_request><h3>URI Parameters</h3><ul><li><strong>linkID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_links__linkID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
905
|
905
|
"apiVersion": "v1beta1",
|
|
906
|
906
|
"creationTimestamp": null,
|
|
907
|
907
|
"kind": "Status",
|
|
908
|
908
|
"status": "success"
|
|
909
|
909
|
}
|
|
910
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_aliases class=panel-title>/aliases</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__aliases><span class=parent></span>/aliases</a> <span class=methods><a href=# data-toggle=modal data-target=#_aliases_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_aliases_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__aliases class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_aliases_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all aliases visible to you</p><p>Aliases in v3 perform the same function as aliases in v2. The main difference is that in v3 an alias is associated with a service, not an application.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_aliases_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create an alias for this service</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_aliases_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/aliases</h4></div><div class=modal-body><div class="alert alert-info"><p>List all aliases visible to you</p><p>Aliases in v3 perform the same function as aliases in v2. The main difference is that in v3 an alias is associated with a service, not an application.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_aliases_get_request data-toggle=tab>Request</a></li><li><a href=#_aliases_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_aliases_get_request><h3>Query Parameters</h3><ul><li><strong>serviceId</strong>: <em>(string)</em><p>filter aliases by associated service</p></li></ul></div><div class=tab-pane id=_aliases_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
911
|
|
- "list":
|
|
|
910
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_projects class=panel-title>/projects (NOT IMPLEMENTED)</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__projects><span class=parent></span>/projects</a> <span class=methods><a href=# data-toggle=modal data-target=#_projects_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_projects_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__projects class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_projects_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all projects for your account.</p><p>Projects are a similar concept to v2 domains. A project is a grouping of services with shared access control and resource limits. Applications can be assembled from services in a project by linking them together via service endpoints.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_projects_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new project.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_projects_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/projects</h4></div><div class=modal-body><div class="alert alert-info"><p>List all projects for your account.</p><p>Projects are a similar concept to v2 domains. A project is a grouping of services with shared access control and resource limits. Applications can be assembled from services in a project by linking them together via service endpoints.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_projects_get_request data-toggle=tab>Request</a></li><li><a href=#_projects_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_projects_get_request></div><div class=tab-pane id=_projects_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
911
|
+ "data":
|
|
912
|
912
|
[
|
|
913
|
913
|
{
|
|
914
|
|
- "id": "myalias",
|
|
915
|
|
- "ssl_certificate": "-----BEGIN CERTIFICATE-----\nMIIDoDCCAogCCQDzF8AJCHnrbjANBgkqhkiG9w0BAQUFADCBkTELMAkGA1UEBhMC\nVVMxCzAJBgNVBAgMAkNBMRIwEAYDVQQHDAlTdW5ueXZhbGUxDzANBgNVBAoMBnJl\nZGhhdDESMBAGA1UECwwJb3BlbnNoaWZ0MRIwEAYDVQQDDAlvcGVuc2hpZnQxKDAm\nBgkqhkiG9w0BCQEWGWluZm9Ab3BlbnNoaWZ0LnJlZGhhdC5jb20wHhcNMTMwMjE5\nMjExMTQ4WhcNMTQwMjE5MjExMTQ4WjCBkTELMAkGA1UEBhMCVVMxCzAJBgNVBAgM\nAkNBMRIwEAYDVQQHDAlTdW5ueXZhbGUxDzANBgNVBAoMBnJlZGhhdDESMBAGA1UE\nCwwJb3BlbnNoaWZ0MRIwEAYDVQQDDAlvcGVuc2hpZnQxKDAmBgkqhkiG9w0BCQEW\nGWluZm9Ab3BlbnNoaWZ0LnJlZGhhdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IB\nDwAwggEKAoIBAQDAEbH4MCi3iIDP1HS+/Xwu8SjdSc5WJX6htV7hJpmFZ8HohV/8\nba0v6aM9IJIIt+sIe2J62t/9G3leOdIHBxeACN4fV2l/iA/fvxvlnFKeD7sHm9Oc\nYj1H6YYJ57sIOf/oLDpJl6l3Rw8VC3+3W0/lzlVpA8qt7fpkiW7XQJCPplUSrdVC\n3okQ2T5NAod5+wVIOqELgE5bLX1LRs5VPsjytHkJ7rKXs55FHR3kpsoImn5xD0Ky\n6lRn8cIMolQoyN5HIGr8f5P+07hrHibve8jje/DKTssb5yEUAEmh6iGHQsRAnsUW\nQoIEUOLqQCu9re2No4G52Kl2xQIjyJF7rCfxAgMBAAEwDQYJKoZIhvcNAQEFBQAD\nggEBAGHrya/ZkiAje2kHsOajXMlO2+y1iLfUDcRLuEWpUa8sI5EM4YtemQrsupFp\n8lVYG5C4Vh8476oF9t8Wex5eH3ocwbSvPIUqE07hdmrubiMq4wxFVRYq7g9lHAnx\nl+bABuN/orbAcPcGAGg7AkXVoAc3Fza/ZcgMcw7NOtDTEss70V9OdgCfQUJL0KdO\nhCO8bQ1EaEiq6zEh8RpZe8mu+f/GYATX1I+eJUc6F6cn83oJjE9bqAVzk7TzTHeK\nEBKN50C14wWtXeG7n2+ugaVO+0xnvHeUrQBLHSRyOHqxXrQQ5XmzcaBiyI0f2IQM\nHst1BVXyX0n/L/ZoYYsv5juJmDo=\n-----END CERTIFICATE-----",
|
|
916
|
|
- "private_key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEAwBGx+DAot4iAz9R0vv18LvEo3UnOViV+obVe4SaZhWfB6IVf\n/G2tL+mjPSCSCLfrCHtietrf/Rt5XjnSBwcXgAjeH1dpf4gP378b5ZxSng+7B5vT\nnGI9R+mGCee7CDn/6Cw6SZepd0cPFQt/t1tP5c5VaQPKre36ZIlu10CQj6ZVEq3V\nQt6JENk+TQKHefsFSDqhC4BOWy19S0bOVT7I8rR5Ce6yl7OeRR0d5KbKCJp+cQ9C\nsupUZ/HCDKJUKMjeRyBq/H+T/tO4ax4m73vI43vwyk7LG+chFABJoeohh0LEQJ7F\nFkKCBFDi6kArva3tjaOBudipdsUCI8iRe6wn8QIDAQABAoIBAG/on4JVRRQSw8LU\nLiWt+jI7ryyoOUH2XL8JtzuGSwLwvomlVJT2rmbxQXx3Qr8zsgziHzIn30RRQrkF\nBXu0xRuDjzBBtSVqeJ1Mc4uoNncEAVxgjb5bewswZDnXPCGB8bosMtX4OPRXgdEo\nPwTtfjMOsrMaU3hd5Xu4m81tQA2BvwOlx8aYDyH0jeTnervc5uRGbeTBQG4Bu40E\nrWNmXvgNq2EzTAwbbN6Ma97gw9KgXnM4Nlh29Fxb5TBeUU9lkzuTZAZIDXKIm7AG\nUwMbj/A038yAumYQtThTE/3e4W3rn7F2Vko900bC4aAC1KQOAzjIeQqzqkVxWTWq\n4SUFQAECgYEA/ODwifOTuI6hdZK6JRgc4wp6Rc0fkqHuxLzABXoIGuSVlWyimqIN\nZySAkpo5EW6DNraRJxNCOBmWeGPEhHGrea+JPiPEwCK0F7SxvSmg3jzNzw3Es31T\necET7eDwuSOY9v4XDzLyiXXkEUUReD7Ng2hEYL+HaQrl5jWj4lxgq/ECgYEAwnCb\nKrz7FwX8AqtFAEi6uUrc12k1xYKQfrwSxbfdK2vBBUpgB71Iq/fqP+1BittEljDG\n8f4jEtMBFfEPhLzGIHaI3UiHUHXS4GetA77TRgR8lnKKpj1FcMIY2iKU479707O5\nQ08pgWRUDQ8BVg2ePgbo5QjLMc/rv7UF3AHvPAECgYB/auAIwqDGN6gHU/1TP4ke\npWLi1O55tfpXSzv+BnUbB96PQgPUop7aP7xBIlBrBiI7aVZOOBf/qHT3CF421geu\n8tHWa7NxlIrl/vgn9lfGYyDYmXlpb1amXLEsBVGGF/e1TGZWFDe9J5fZU9HvosVu\n1xTNIvSZ6xHYI2MGZcGYIQKBgEYeebaV5C7PV6xWu1F46O19U9rS9DM//H/XryVi\nQv4vo7IWuj7QQe7SPsXC98ntfPR0rqoCLf/R3ChfgGsr8H8wf/bc+v9HHj8S5E/f\ndy1e3Nccg2ej3PDm7jNsGSlwmmUkAQGHAL7KwYzcBm1UB+bycvZ1j2FtS+UckPpg\nMDgBAoGALD8PkxHb4U4DtbNFSYRrUdvS9heav/yph3lTMfifNkOir36io6v8RPgb\nD2bHKKZgmYlTgJrxD45Er9agC5jclJO35QRU/OfGf3GcnABkBI7vlvUKADAo65Sq\nweZkdJnbrIadcvLOHOzkKC9m+rxFTC9VoN1dwK2zwYvUXfa1VJA=\n-----END RSA PRIVATE KEY-----",
|
|
917
|
|
- "pass_phrase": "abcd"
|
|
|
914
|
+ "id": "53c4249f076573c0f4000001",
|
|
|
915
|
+ "suffix": "dev.rhcloud.com",
|
|
|
916
|
+ "name": "mydomain",
|
|
|
917
|
+ "members": [
|
|
|
918
|
+ {
|
|
|
919
|
+ "login": "adminuser",
|
|
|
920
|
+ "role": "admin",
|
|
|
921
|
+ "type": "user",
|
|
|
922
|
+ "owner": true
|
|
|
923
|
+ }
|
|
|
924
|
+ ]
|
|
|
925
|
+ },
|
|
|
926
|
+ {
|
|
|
927
|
+ "id": "54c4259f076573c0f4000023",
|
|
|
928
|
+ "suffix": "dev.rhcloud.com",
|
|
|
929
|
+ "name": "appdomain",
|
|
|
930
|
+ "members": [
|
|
|
931
|
+ {
|
|
|
932
|
+ "login": "adminuser",
|
|
|
933
|
+ "role": "admin",
|
|
|
934
|
+ "type": "user",
|
|
|
935
|
+ "owner": true
|
|
|
936
|
+ }
|
|
|
937
|
+ ]
|
|
918
|
938
|
}
|
|
919
|
939
|
]
|
|
920
|
940
|
}
|
|
921
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_aliases_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/aliases</h4></div><div class=modal-body><div class="alert alert-info"><p>Create an alias for this service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_aliases_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_aliases_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
941
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_projects_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/projects</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new project.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_projects_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_projects_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
922
|
942
|
"data":
|
|
923
|
943
|
{
|
|
924
|
944
|
"id": "53c4249f076573c0f4000001",
|
|
925
|
945
|
"suffix": "dev.rhcloud.com",
|
|
926
|
|
- "name": "mydomain",
|
|
|
946
|
+ "name": "myproject",
|
|
927
|
947
|
"members": [
|
|
928
|
948
|
{
|
|
929
|
949
|
"login": "adminuser",
|
|
...
|
...
|
@@ -934,12 +1514,12 @@
|
|
934
|
934
|
]
|
|
935
|
935
|
}
|
|
936
|
936
|
}
|
|
937
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_alias__aliasID_ class=panel-title>/alias/{aliasID}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__alias__aliasID_><span class=parent></span>/alias/{aliasID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_alias__aliasID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_alias__aliasID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_alias__aliasID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__alias__aliasID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_alias__aliasID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get alias</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_alias__aliasID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update an alias</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_alias__aliasID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete an alias</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_alias__aliasID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/alias/{aliasID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get alias</p></div><ul class="nav nav-tabs"><li class=active><a href=#_alias__aliasID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_alias__aliasID__get_request><h3>URI Parameters</h3><ul><li><strong>aliasID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
937
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__projects__projectID_><span class=parent>/projects</span>/{projectID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_projects__projectID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_projects__projectID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_projects__projectID__delete><span class="badge badge_delete">delete</span></a> <a href=# data-toggle=modal data-target=#_projects__projectID__post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__projects__projectID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_projects__projectID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific project.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_projects__projectID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a project.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_projects__projectID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a project.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_projects__projectID__post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Instantiate a template in the given project.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_projects__projectID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/projects</span>/{projectID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific project.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_projects__projectID__get_request data-toggle=tab>Request</a></li><li><a href=#_projects__projectID__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_projects__projectID__get_request><h3>URI Parameters</h3><ul><li><strong>projectID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_projects__projectID__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
938
|
938
|
"data":
|
|
939
|
939
|
{
|
|
940
|
940
|
"id": "53c4249f076573c0f4000001",
|
|
941
|
941
|
"suffix": "dev.rhcloud.com",
|
|
942
|
|
- "name": "mydomain",
|
|
|
942
|
+ "name": "myproject",
|
|
943
|
943
|
"members": [
|
|
944
|
944
|
{
|
|
945
|
945
|
"login": "adminuser",
|
|
...
|
...
|
@@ -950,1051 +1530,793 @@
|
|
950
|
950
|
]
|
|
951
|
951
|
}
|
|
952
|
952
|
}
|
|
953
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_alias__aliasID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent></span>/alias/{aliasID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update an alias</p></div><ul class="nav nav-tabs"><li class=active><a href=#_alias__aliasID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_alias__aliasID__put_request><h3>URI Parameters</h3><ul><li><strong>aliasID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
953
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_projects__projectID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/projects</span>/{projectID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a project.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_projects__projectID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_projects__projectID__put_request><h3>URI Parameters</h3><ul><li><strong>projectID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
954
|
954
|
"data":
|
|
955
|
955
|
{
|
|
956
|
956
|
"id": "53c4249f076573c0f4000001",
|
|
957
|
|
- "suffix": "dev.rhcloud.com",
|
|
958
|
|
- "name": "mydomain",
|
|
959
|
|
- "members": [
|
|
960
|
|
- {
|
|
961
|
|
- "login": "adminuser",
|
|
962
|
|
- "role": "admin",
|
|
963
|
|
- "type": "user",
|
|
964
|
|
- "owner": true
|
|
965
|
|
- }
|
|
966
|
|
- ]
|
|
|
957
|
+ "name": "newproject-name"
|
|
967
|
958
|
}
|
|
968
|
959
|
}
|
|
969
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_alias__aliasID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/alias/{aliasID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete an alias</p></div><ul class="nav nav-tabs"><li class=active><a href=#_alias__aliasID__delete_request data-toggle=tab>Request</a></li><li><a href=#_alias__aliasID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_alias__aliasID__delete_request><h3>URI Parameters</h3><ul><li><strong>aliasID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_alias__aliasID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
960
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_projects__projectID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/projects</span>/{projectID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a project.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_projects__projectID__delete_request data-toggle=tab>Request</a></li><li><a href=#_projects__projectID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_projects__projectID__delete_request><h3>URI Parameters</h3><ul><li><strong>projectID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_projects__projectID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
970
|
961
|
"apiVersion": "v1beta1",
|
|
971
|
962
|
"creationTimestamp": null,
|
|
972
|
963
|
"kind": "Status",
|
|
973
|
964
|
"status": "success"
|
|
974
|
965
|
}
|
|
975
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_builds class=panel-title>/builds</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__builds><span class=parent></span>/builds</a> <span class=methods><a href=# data-toggle=modal data-target=#_builds_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_builds_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__builds class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_builds_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Retrieves a list of builds</p><p>Build encapsulates the inputs needed to produce a new deployable image, as well as the status of the operation and a reference to the Pod which runs the build.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_builds_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new build</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/builds</h4></div><div class=modal-body><div class="alert alert-info"><p>Retrieves a list of builds</p><p>Build encapsulates the inputs needed to produce a new deployable image, as well as the status of the operation and a reference to the Pod which runs the build.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds_get_request data-toggle=tab>Request</a></li><li><a href=#_builds_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds_get_request></div><div class=tab-pane id=_builds_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
976
|
|
- "apiVersion": "v1beta1",
|
|
977
|
|
- "creationTimestamp": null,
|
|
978
|
|
- "items": [
|
|
979
|
|
- {
|
|
980
|
|
- "creationTimestamp": "2014-09-16T02:58:19Z",
|
|
981
|
|
- "id": "5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
982
|
|
- "input": {
|
|
983
|
|
- "imageTag": "test/dockerbuild",
|
|
984
|
|
- "sourceURI": "git://github.com/test/dockerbuild",
|
|
985
|
|
- "type": "docker"
|
|
986
|
|
- },
|
|
987
|
|
- "podID": "build-sti-5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
988
|
|
- "resourceVersion": 114,
|
|
989
|
|
- "status": "new"
|
|
990
|
|
- }
|
|
991
|
|
- ],
|
|
992
|
|
- "kind": "BuildList",
|
|
993
|
|
- "resourceVersion": 116
|
|
994
|
|
-}
|
|
995
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/builds</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new build</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
996
|
|
- "kind": "Build",
|
|
997
|
|
- "apiVersion": "v1beta1",
|
|
998
|
|
- "input": {
|
|
999
|
|
- "type": "docker",
|
|
1000
|
|
- "sourceURI": "github.com/test/dockerBuild",
|
|
1001
|
|
- "imageTag": "test/dockerBuild"
|
|
1002
|
|
- }
|
|
1003
|
|
-}
|
|
1004
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_builds__buildId_ class=panel-title>/builds/{buildId}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__builds__buildId_><span class=parent></span>/builds/{buildId}</a> <span class=methods><a href=# data-toggle=modal data-target=#_builds__buildId__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_builds__buildId__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_builds__buildId__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__builds__buildId_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_builds__buildId__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Retrieve a single build definition</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_builds__buildId__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a build definition</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_builds__buildId__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a build definition</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds__buildId__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/builds/{buildId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Retrieve a single build definition</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds__buildId__get_request data-toggle=tab>Request</a></li><li><a href=#_builds__buildId__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds__buildId__get_request><h3>URI Parameters</h3><ul><li><strong>buildId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_builds__buildId__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1005
|
|
- "apiVersion": "v1beta1",
|
|
1006
|
|
- "creationTimestamp": "2014-09-16T02:58:19Z",
|
|
1007
|
|
- "id": "5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
1008
|
|
- "input": {
|
|
1009
|
|
- "imageTag": "test/dockerBuild",
|
|
1010
|
|
- "sourceURI": "github.com/test/dockerBuild",
|
|
1011
|
|
- "type": "docker"
|
|
1012
|
|
- },
|
|
1013
|
|
- "kind": "Build",
|
|
1014
|
|
- "podID": "build-sti-5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
1015
|
|
- "resourceVersion": 114,
|
|
1016
|
|
- "status": "pending"
|
|
|
966
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_projects__projectID__post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent>/projects</span>/{projectID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Instantiate a template in the given project.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_projects__projectID__post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_projects__projectID__post_request><h3>URI Parameters</h3><ul><li><strong>projectID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
967
|
+ "templateId": "the-template-id"
|
|
1017
|
968
|
}
|
|
1018
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds__buildId__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent></span>/builds/{buildId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a build definition</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds__buildId__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds__buildId__put_request><h3>URI Parameters</h3><ul><li><strong>buildId</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1019
|
|
- "apiVersion": "v1beta1",
|
|
1020
|
|
- "creationTimestamp": "2014-09-16T02:58:19Z",
|
|
1021
|
|
- "id": "5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
1022
|
|
- "input": {
|
|
1023
|
|
- "imageTag": "test/dockerBuild",
|
|
1024
|
|
- "sourceURI": "github.com/test/dockerBuild",
|
|
1025
|
|
- "type": "docker"
|
|
|
969
|
+</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_templateConfigs class=panel-title>/templateConfigs</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__templateConfigs><span class=parent></span>/templateConfigs</a> <span class=methods><a href=# data-toggle=modal data-target=#_templateConfigs_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__templateConfigs class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_templateConfigs_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Process a template into a config. See /templates endpoint for details on template transformation, parameters and generators.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_templateConfigs_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/templateConfigs</h4></div><div class=modal-body><div class="alert alert-info"><p>Process a template into a config. See /templates endpoint for details on template transformation, parameters and generators.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_templateConfigs_post_request data-toggle=tab>Request</a></li><li><a href=#_templateConfigs_post_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_templateConfigs_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
|
970
|
+ "$schema": "http://json-schema.org/draft-03/schema",
|
|
|
971
|
+ "type": "object",
|
|
|
972
|
+ "required": true,
|
|
|
973
|
+ "description": "Template resource.",
|
|
|
974
|
+ "properties": {
|
|
|
975
|
+ "id": {
|
|
|
976
|
+ "type": "string",
|
|
|
977
|
+ "required": true
|
|
1026
|
978
|
},
|
|
1027
|
|
- "kind": "Build",
|
|
1028
|
|
- "podID": "build-sti-5065bcf2-3d4d-11e4-a95b-0800279696e1",
|
|
1029
|
|
- "resourceVersion": 114,
|
|
1030
|
|
- "status": "pending"
|
|
1031
|
|
-}
|
|
1032
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_builds__buildId__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/builds/{buildId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a build definition</p></div><ul class="nav nav-tabs"><li class=active><a href=#_builds__buildId__delete_request data-toggle=tab>Request</a></li><li><a href=#_builds__buildId__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_builds__buildId__delete_request><h3>URI Parameters</h3><ul><li><strong>buildId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_builds__buildId__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1033
|
|
- "apiVersion": "v1beta1",
|
|
1034
|
|
- "creationTimestamp": null,
|
|
1035
|
|
- "kind": "Status",
|
|
1036
|
|
- "status": "success"
|
|
1037
|
|
-}
|
|
1038
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_buildConfigs class=panel-title>/buildConfigs</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__buildConfigs><span class=parent></span>/buildConfigs</a> <span class=methods><a href=# data-toggle=modal data-target=#_buildConfigs_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_buildConfigs_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__buildConfigs class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_buildConfigs_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Retrieves a list of BuildConfigs</p><p>BuildConfig contains the inputs needed to produce a new deployable image</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_buildConfigs_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new build</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/buildConfigs</h4></div><div class=modal-body><div class="alert alert-info"><p>Retrieves a list of BuildConfigs</p><p>BuildConfig contains the inputs needed to produce a new deployable image</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs_get_request data-toggle=tab>Request</a></li><li><a href=#_buildConfigs_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs_get_request></div><div class=tab-pane id=_buildConfigs_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/buildConfigs</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new build</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1039
|
|
- "kind": "BuildConfig",
|
|
1040
|
|
- "apiVersion": "v1beta1",
|
|
1041
|
|
- "desiredInput": {
|
|
1042
|
|
- "type": "sti",
|
|
1043
|
|
- "sourceURI": "git://github.com/pmorie/simple-ruby",
|
|
1044
|
|
- "builderImage": "openshift/ruby-19-centos",
|
|
1045
|
|
- "imageTag": "test-ruby-app"
|
|
1046
|
|
- }
|
|
1047
|
|
-}
|
|
1048
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_buildConfigs__configId_ class=panel-title>/buildConfigs/{configId}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__buildConfigs__configId_><span class=parent></span>/buildConfigs/{configId}</a> <span class=methods><a href=# data-toggle=modal data-target=#_buildConfigs__configId__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_buildConfigs__configId__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_buildConfigs__configId__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__buildConfigs__configId_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_buildConfigs__configId__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Retrieve a build configuration</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_buildConfigs__configId__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a build configuration</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_buildConfigs__configId__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a build configuration</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs__configId__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/buildConfigs/{configId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Retrieve a build configuration</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs__configId__get_request data-toggle=tab>Request</a></li><li><a href=#_buildConfigs__configId__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs__configId__get_request><h3>URI Parameters</h3><ul><li><strong>configId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_buildConfigs__configId__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1049
|
|
- "apiVersion": "v1beta1",
|
|
1050
|
|
- "creationTimestamp": "2014-09-16T19:33:36Z",
|
|
1051
|
|
- "desiredInput": {
|
|
1052
|
|
- "builderImage": "openshift/ruby-19-centos",
|
|
1053
|
|
- "imageTag": "test-ruby-app",
|
|
1054
|
|
- "sourceURI": "git://github.com/pmorie/simple-ruby",
|
|
1055
|
|
- "type": "sti"
|
|
|
979
|
+ "name": {
|
|
|
980
|
+ "type": "string",
|
|
|
981
|
+ "required": true
|
|
1056
|
982
|
},
|
|
1057
|
|
- "id": "5a6a5b9c-3dd8-11e4-9d75-0800279696e1",
|
|
1058
|
|
- "kind": "BuildConfig",
|
|
1059
|
|
- "resourceVersion": 117
|
|
1060
|
|
-}
|
|
1061
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs__configId__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent></span>/buildConfigs/{configId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a build configuration</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs__configId__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs__configId__put_request><h3>URI Parameters</h3><ul><li><strong>configId</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1062
|
|
- "apiVersion": "v1beta1",
|
|
1063
|
|
- "creationTimestamp": "2014-09-16T19:33:36Z",
|
|
1064
|
|
- "desiredInput": {
|
|
1065
|
|
- "builderImage": "openshift/ruby-19-centos",
|
|
1066
|
|
- "imageTag": "test-ruby-app",
|
|
1067
|
|
- "sourceURI": "git://github.com/pmorie/simple-ruby",
|
|
1068
|
|
- "type": "sti"
|
|
|
983
|
+ "description": {
|
|
|
984
|
+ "type": "string",
|
|
|
985
|
+ "required": false
|
|
1069
|
986
|
},
|
|
1070
|
|
- "id": "5a6a5b9c-3dd8-11e4-9d75-0800279696e1",
|
|
1071
|
|
- "kind": "BuildConfig",
|
|
1072
|
|
- "resourceVersion": 117
|
|
1073
|
|
-}
|
|
1074
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigs__configId__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/buildConfigs/{configId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a build configuration</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigs__configId__delete_request data-toggle=tab>Request</a></li><li><a href=#_buildConfigs__configId__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigs__configId__delete_request><h3>URI Parameters</h3><ul><li><strong>configId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_buildConfigs__configId__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1075
|
|
- "apiVersion": "v1beta1",
|
|
1076
|
|
- "creationTimestamp": null,
|
|
1077
|
|
- "kind": "Status",
|
|
1078
|
|
- "status": "success"
|
|
1079
|
|
-}
|
|
1080
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_buildConfigHooks__buildId___secret___plugin_ class=panel-title>/buildConfigHooks/{buildId}/{secret}/{plugin}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__buildConfigHooks__buildId___secret___plugin_><span class=parent></span>/buildConfigHooks/{buildId}/{secret}/{plugin}</a> <span class=methods><a href=# data-toggle=modal data-target=#_buildConfigHooks__buildId___secret___plugin__post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__buildConfigHooks__buildId___secret___plugin_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_buildConfigHooks__buildId___secret___plugin__post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Webhook on push event from external repository</p><p>buildId specifies which build to trigger, whereas plugin defines source of the request, this might be github, bitbucket or others.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_buildConfigHooks__buildId___secret___plugin__post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/buildConfigHooks/{buildId}/{secret}/{plugin}</h4></div><div class=modal-body><div class="alert alert-info"><p>Webhook on push event from external repository</p><p>buildId specifies which build to trigger, whereas plugin defines source of the request, this might be github, bitbucket or others.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_buildConfigHooks__buildId___secret___plugin__post_request data-toggle=tab>Request</a></li><li><a href=#_buildConfigHooks__buildId___secret___plugin__post_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_buildConfigHooks__buildId___secret___plugin__post_request><h3>URI Parameters</h3><ul><li><strong>buildId</strong>: <em>required (string)</em></li><li><strong>secret</strong>: <em>required (string)</em></li><li><strong>plugin</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_buildConfigHooks__buildId___secret___plugin__post_response><h2>HTTP status code <a href=http://httpstatus.es/204 target=_blank>204</a></h2><p>No content</p></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_templates class=panel-title>/templates</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__templates><span class=parent></span>/templates</a> <span class=methods><a href=# data-toggle=modal data-target=#_templates_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_templates_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__templates class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_templates_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Lists all templates that your account has access to</p><p>A template defines 0..n services and 0..m links. When it is applied to an existing project, those services and links are instantiated for that project.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_templates_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new template</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_templates_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/templates</h4></div><div class=modal-body><div class="alert alert-info"><p>Lists all templates that your account has access to</p><p>A template defines 0..n services and 0..m links. When it is applied to an existing project, those services and links are instantiated for that project.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_templates_get_request data-toggle=tab>Request</a></li><li><a href=#_templates_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_templates_get_request></div><div class=tab-pane id=_templates_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1081
|
|
- "list":
|
|
1082
|
|
- [
|
|
1083
|
|
- {
|
|
1084
|
|
- "services": [
|
|
1085
|
|
- {
|
|
1086
|
|
- "name": "service-name",
|
|
1087
|
|
- "domain": "domain-id",
|
|
1088
|
|
- "desiredState":
|
|
1089
|
|
- {
|
|
1090
|
|
- "replicas": 3,
|
|
1091
|
|
- "replicaSelector": { "name": "service-name" },
|
|
1092
|
|
- "replicaPolicy": {
|
|
1093
|
|
- "atLeast": 2
|
|
1094
|
|
- },
|
|
1095
|
|
- "activeDeployment": "a_deployment_id",
|
|
1096
|
|
- "podTemplate":
|
|
1097
|
|
- {
|
|
1098
|
|
- "desiredState":
|
|
1099
|
|
- {
|
|
1100
|
|
- "image": "server/domain/name",
|
|
1101
|
|
- "network-ports": [
|
|
1102
|
|
- {
|
|
1103
|
|
- "hostPort": 8080,
|
|
1104
|
|
- "containerPort": 80
|
|
1105
|
|
- }
|
|
1106
|
|
- ],
|
|
1107
|
|
- "owner": true
|
|
1108
|
|
- },
|
|
1109
|
|
- "labels": {
|
|
1110
|
|
- "name": "service-name"
|
|
1111
|
|
- }
|
|
1112
|
|
- }
|
|
1113
|
|
- }
|
|
1114
|
|
- }
|
|
1115
|
|
- ],
|
|
1116
|
|
- "links": [
|
|
1117
|
|
- {
|
|
1118
|
|
- "id": "53c4249f076573c0f4000001",
|
|
1119
|
|
- "projectId": "myproject-1234123132",
|
|
1120
|
|
- "source": {
|
|
1121
|
|
- "serviceId": "nginx-1893747912737"
|
|
|
987
|
+ "parameters": {
|
|
|
988
|
+ "type": "array",
|
|
|
989
|
+ "required": false,
|
|
|
990
|
+ "items": {
|
|
|
991
|
+ "type": "object",
|
|
|
992
|
+ "required": false,
|
|
|
993
|
+ "properties": {
|
|
|
994
|
+ "name": {
|
|
|
995
|
+ "type": "string",
|
|
|
996
|
+ "required": true
|
|
1122
|
997
|
},
|
|
1123
|
|
- "destination": {
|
|
1124
|
|
- "serviceId": "ruby1.9-1237471273",
|
|
1125
|
|
- "port": 8080
|
|
1126
|
|
- }
|
|
1127
|
|
- "policy": "round-robin"
|
|
1128
|
|
- }
|
|
1129
|
|
- ]
|
|
1130
|
|
- }
|
|
1131
|
|
- ]
|
|
1132
|
|
-}
|
|
1133
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_templates_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/templates</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new template</p></div><ul class="nav nav-tabs"><li class=active><a href=#_templates_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_templates_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1134
|
|
- "data":
|
|
1135
|
|
- {
|
|
1136
|
|
- "services": [
|
|
1137
|
|
- {
|
|
1138
|
|
- "name": "service-name",
|
|
1139
|
|
- "domain": "domain-id",
|
|
1140
|
|
- "desiredState":
|
|
1141
|
|
- {
|
|
1142
|
|
- "replicas": 3,
|
|
1143
|
|
- "replicaSelector": { "name": "service-name" },
|
|
1144
|
|
- "replicaPolicy": {
|
|
1145
|
|
- "atLeast": 2
|
|
|
998
|
+ "type": {
|
|
|
999
|
+ "type": "string",
|
|
|
1000
|
+ "required": true,
|
|
|
1001
|
+ "enum": ["string"]
|
|
1146
|
1002
|
},
|
|
1147
|
|
- "activeDeployment": "a_deployment_id",
|
|
1148
|
|
- "podTemplate":
|
|
1149
|
|
- {
|
|
1150
|
|
- "desiredState":
|
|
1151
|
|
- {
|
|
1152
|
|
- "image": "server/domain/name",
|
|
1153
|
|
- "network-ports": [
|
|
1154
|
|
- {
|
|
1155
|
|
- "hostPort": 8080,
|
|
1156
|
|
- "containerPort": 80
|
|
1157
|
|
- }
|
|
1158
|
|
- ],
|
|
1159
|
|
- "owner": true
|
|
1160
|
|
- },
|
|
1161
|
|
- "labels": {
|
|
1162
|
|
- "name": "service-name"
|
|
1163
|
|
- }
|
|
1164
|
|
- }
|
|
1165
|
|
- }
|
|
1166
|
|
- }
|
|
1167
|
|
- ],
|
|
1168
|
|
- "links": [
|
|
1169
|
|
- {
|
|
1170
|
|
- "id": "53c4249f076573c0f4000001",
|
|
1171
|
|
- "projectId": "myproject-1234123132",
|
|
1172
|
|
- "source": {
|
|
1173
|
|
- "serviceId": "nginx-1893747912737"
|
|
1174
|
|
- },
|
|
1175
|
|
- "destination": {
|
|
1176
|
|
- "serviceId": "ruby1.9-1237471273",
|
|
1177
|
|
- "port": 8080
|
|
1178
|
|
- }
|
|
1179
|
|
- "policy": "round-robin"
|
|
1180
|
|
- }
|
|
1181
|
|
- ]
|
|
1182
|
|
- }
|
|
1183
|
|
-}
|
|
1184
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_template__templateID_ class=panel-title>/template/{templateID}</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__template__templateID_><span class=parent></span>/template/{templateID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_template__templateID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_template__templateID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_template__templateID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__template__templateID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_template__templateID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific template</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_template__templateID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a template</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_template__templateID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a template</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_template__templateID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/template/{templateID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific template</p></div><ul class="nav nav-tabs"><li class=active><a href=#_template__templateID__get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_template__templateID__get_request><h3>URI Parameters</h3><ul><li><strong>templateID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1185
|
|
- "data":
|
|
1186
|
|
- {
|
|
1187
|
|
- "services": [
|
|
1188
|
|
- {
|
|
1189
|
|
- "name": "service-name",
|
|
1190
|
|
- "domain": "domain-id",
|
|
1191
|
|
- "desiredState":
|
|
1192
|
|
- {
|
|
1193
|
|
- "replicas": 3,
|
|
1194
|
|
- "replicaSelector": { "name": "service-name" },
|
|
1195
|
|
- "replicaPolicy": {
|
|
1196
|
|
- "atLeast": 2
|
|
|
1003
|
+ "value": {
|
|
|
1004
|
+ "type": "string",
|
|
|
1005
|
+ "required": false
|
|
1197
|
1006
|
},
|
|
1198
|
|
- "activeDeployment": "a_deployment_id",
|
|
1199
|
|
- "podTemplate":
|
|
1200
|
|
- {
|
|
1201
|
|
- "desiredState":
|
|
1202
|
|
- {
|
|
1203
|
|
- "image": "server/domain/name",
|
|
1204
|
|
- "network-ports": [
|
|
1205
|
|
- {
|
|
1206
|
|
- "hostPort": 8080,
|
|
1207
|
|
- "containerPort": 80
|
|
1208
|
|
- }
|
|
1209
|
|
- ],
|
|
1210
|
|
- "owner": true
|
|
1211
|
|
- },
|
|
1212
|
|
- "labels": {
|
|
1213
|
|
- "name": "service-name"
|
|
1214
|
|
- }
|
|
|
1007
|
+ "expression": {
|
|
|
1008
|
+ "type": "string",
|
|
|
1009
|
+ "required": false
|
|
|
1010
|
+ },
|
|
|
1011
|
+ "description": {
|
|
|
1012
|
+ "type": "string",
|
|
|
1013
|
+ "required": false
|
|
1215
|
1014
|
}
|
|
1216
|
1015
|
}
|
|
1217
|
1016
|
}
|
|
1218
|
|
- ],
|
|
1219
|
|
- "links": [
|
|
1220
|
|
- {
|
|
1221
|
|
- "id": "53c4249f076573c0f4000001",
|
|
1222
|
|
- "projectId": "myproject-1234123132",
|
|
1223
|
|
- "source": {
|
|
1224
|
|
- "serviceId": "nginx-1893747912737"
|
|
1225
|
|
- },
|
|
1226
|
|
- "destination": {
|
|
1227
|
|
- "serviceId": "ruby1.9-1237471273",
|
|
1228
|
|
- "port": 8080
|
|
1229
|
|
- }
|
|
1230
|
|
- "policy": "round-robin"
|
|
1231
|
|
- }
|
|
1232
|
|
- ]
|
|
1233
|
|
- }
|
|
1234
|
|
-}
|
|
1235
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_template__templateID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent></span>/template/{templateID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a template</p></div><ul class="nav nav-tabs"><li class=active><a href=#_template__templateID__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_template__templateID__put_request><h3>URI Parameters</h3><ul><li><strong>templateID</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1236
|
|
- "data":
|
|
1237
|
|
- {
|
|
1238
|
|
- "services": [
|
|
1239
|
|
- {
|
|
1240
|
|
- "name": "service-name",
|
|
1241
|
|
- "domain": "domain-id",
|
|
1242
|
|
- "desiredState":
|
|
1243
|
|
- {
|
|
1244
|
|
- "replicas": 3,
|
|
1245
|
|
- "replicaSelector": { "name": "service-name" },
|
|
1246
|
|
- "replicaPolicy": {
|
|
1247
|
|
- "atLeast": 2
|
|
|
1017
|
+ },
|
|
|
1018
|
+ "items": {
|
|
|
1019
|
+ "type": "array",
|
|
|
1020
|
+ "required": false,
|
|
|
1021
|
+ "items": {
|
|
|
1022
|
+ "type": "object",
|
|
|
1023
|
+ "required": true,
|
|
|
1024
|
+ "properties": {
|
|
|
1025
|
+ "kind": {
|
|
|
1026
|
+ "type": "string",
|
|
|
1027
|
+ "required": true
|
|
1248
|
1028
|
},
|
|
1249
|
|
- "activeDeployment": "a_deployment_id",
|
|
1250
|
|
- "podTemplate":
|
|
1251
|
|
- {
|
|
1252
|
|
- "desiredState":
|
|
1253
|
|
- {
|
|
1254
|
|
- "image": "server/domain/name",
|
|
1255
|
|
- "network-ports": [
|
|
1256
|
|
- {
|
|
1257
|
|
- "hostPort": 8080,
|
|
1258
|
|
- "containerPort": 80
|
|
1259
|
|
- }
|
|
1260
|
|
- ],
|
|
1261
|
|
- "owner": true
|
|
1262
|
|
- },
|
|
1263
|
|
- "labels": {
|
|
1264
|
|
- "name": "service-name"
|
|
1265
|
|
- }
|
|
|
1029
|
+ "id": {
|
|
|
1030
|
+ "type": "string",
|
|
|
1031
|
+ "required": true
|
|
1266
|
1032
|
}
|
|
1267
|
1033
|
}
|
|
1268
|
1034
|
}
|
|
1269
|
|
- ],
|
|
1270
|
|
- "links": [
|
|
1271
|
|
- {
|
|
1272
|
|
- "id": "53c4249f076573c0f4000001",
|
|
1273
|
|
- "projectId": "myproject-1234123132",
|
|
1274
|
|
- "source": {
|
|
1275
|
|
- "serviceId": "nginx-1893747912737"
|
|
1276
|
|
- },
|
|
1277
|
|
- "destination": {
|
|
1278
|
|
- "serviceId": "ruby1.9-1237471273",
|
|
1279
|
|
- "port": 8080
|
|
1280
|
|
- }
|
|
1281
|
|
- "policy": "round-robin"
|
|
1282
|
|
- }
|
|
1283
|
|
- ]
|
|
|
1035
|
+ }
|
|
1284
|
1036
|
}
|
|
1285
|
|
-}
|
|
1286
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_template__templateID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent></span>/template/{templateID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a template</p></div><ul class="nav nav-tabs"><li class=active><a href=#_template__templateID__delete_request data-toggle=tab>Request</a></li><li><a href=#_template__templateID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_template__templateID__delete_request><h3>URI Parameters</h3><ul><li><strong>templateID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_template__templateID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1287
|
|
- "apiVersion": "v1beta1",
|
|
1288
|
|
- "creationTimestamp": null,
|
|
1289
|
|
- "kind": "Status",
|
|
1290
|
|
- "status": "success"
|
|
1291
|
|
-}
|
|
1292
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_pods class=panel-title>/pods</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__pods><span class=parent></span>/pods</a> <span class=methods><a href=# data-toggle=modal data-target=#_pods_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_pods_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__pods class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_pods_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all pods on this cluster</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_pods_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new pod. currentState is ignored if present.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_pods_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/pods</h4></div><div class=modal-body><div class="alert alert-info"><p>List all pods on this cluster</p></div><ul class="nav nav-tabs"><li class=active><a href=#_pods_get_request data-toggle=tab>Request</a></li><li><a href=#_pods_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_pods_get_request></div><div class=tab-pane id=_pods_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1293
|
|
- "items": [
|
|
1294
|
|
- {
|
|
1295
|
|
- "id": "my-pod-1",
|
|
1296
|
|
- "labels": {
|
|
1297
|
|
- "name": "testRun",
|
|
1298
|
|
- "replicationController": "testRun"
|
|
1299
|
|
- },
|
|
1300
|
|
- "desiredState": {
|
|
1301
|
|
- "manifest": {
|
|
1302
|
|
- "version": "v1beta1",
|
|
1303
|
|
- "id": "my-pod-1",
|
|
1304
|
|
- "containers": [{
|
|
1305
|
|
- "image": "dockerfile/nginx",
|
|
1306
|
|
- "ports": [{
|
|
1307
|
|
- "hostPort": 8080,
|
|
1308
|
|
- "containerPort": 80
|
|
1309
|
|
- }]
|
|
1310
|
|
- }
|
|
1311
|
|
- }
|
|
1312
|
|
- },
|
|
1313
|
|
- "currentState": {
|
|
1314
|
|
- "host": "host-1"
|
|
1315
|
|
- }
|
|
1316
|
|
- },
|
|
1317
|
|
- {
|
|
1318
|
|
- "id": "my-pod-2",
|
|
1319
|
|
- "labels": {
|
|
1320
|
|
- "name": "testRun",
|
|
1321
|
|
- "replicationController": "testRun"
|
|
1322
|
|
- },
|
|
1323
|
|
- "desiredState": {
|
|
1324
|
|
- "manifest": {
|
|
1325
|
|
- "version": "v1beta1",
|
|
1326
|
|
- "id": "my-pod-2",
|
|
1327
|
|
- "containers": [{
|
|
1328
|
|
- "image": "dockerfile/nginx",
|
|
1329
|
|
- "ports": [{
|
|
1330
|
|
- "hostPort": 8080,
|
|
1331
|
|
- "containerPort": 80
|
|
1332
|
|
- }]
|
|
1333
|
|
- }
|
|
1334
|
|
- }
|
|
1335
|
|
- },
|
|
1336
|
|
- "currentState": {
|
|
1337
|
|
- "host": "host-2"
|
|
1338
|
|
- }
|
|
1339
|
|
- }
|
|
1340
|
|
- ]
|
|
1341
|
|
-}
|
|
1342
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_pods_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/pods</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new pod. currentState is ignored if present.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_pods_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_pods_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
1343
|
|
- "$schema": "http://json-schema.org/draft-03/schema",
|
|
1344
|
|
- "type": "object",
|
|
1345
|
|
- "required": false,
|
|
1346
|
|
- "description": "Pod resource. A pod corresponds to a co-located group of [Docker containers](http://docker.io).",
|
|
1347
|
|
- "properties": {
|
|
1348
|
|
- "kind": {
|
|
|
1037
|
+}</code></pre><p><strong>Example</strong>:</p><pre><code>{
|
|
|
1038
|
+ "kind": "Template",
|
|
|
1039
|
+ "id": "example1",
|
|
|
1040
|
+ "name": "My awesome PHP app",
|
|
|
1041
|
+ "description": "Example PHP application with PostgreSQL database",
|
|
|
1042
|
+ "parameters": [
|
|
|
1043
|
+ {
|
|
|
1044
|
+ "name": "DB_PASSWORD",
|
|
|
1045
|
+ "description": "PostgreSQL admin user password",
|
|
1349
|
1046
|
"type": "string",
|
|
1350
|
|
- "required": false
|
|
|
1047
|
+ "expression": "[a-zA-Z0-9]{8}"
|
|
1351
|
1048
|
},
|
|
1352
|
|
- "id": {
|
|
|
1049
|
+ {
|
|
|
1050
|
+ "name": "DB_USER",
|
|
|
1051
|
+ "description": "PostgreSQL username",
|
|
1353
|
1052
|
"type": "string",
|
|
1354
|
|
- "required": false
|
|
|
1053
|
+ "expression": "admin[a-zA-Z0-9]{4}"
|
|
1355
|
1054
|
},
|
|
1356
|
|
- "creationTimestamp": {
|
|
|
1055
|
+ {
|
|
|
1056
|
+ "name": "DB_NAME",
|
|
|
1057
|
+ "description": "PostgreSQL database name",
|
|
1357
|
1058
|
"type": "string",
|
|
1358
|
|
- "required": false
|
|
|
1059
|
+ "value": "mydb"
|
|
|
1060
|
+ }
|
|
|
1061
|
+ ],
|
|
|
1062
|
+ "items": [
|
|
|
1063
|
+ {
|
|
|
1064
|
+ "kind": "Service",
|
|
|
1065
|
+ "id": "frontend",
|
|
|
1066
|
+ "apiVersion": "v1beta1",
|
|
|
1067
|
+ "port": 8080,
|
|
|
1068
|
+ "containerPort": 9292,
|
|
|
1069
|
+ "selector": {
|
|
|
1070
|
+ "name": "frontend"
|
|
|
1071
|
+ }
|
|
1359
|
1072
|
},
|
|
1360
|
|
- "selfLink": {
|
|
1361
|
|
- "type": "string",
|
|
1362
|
|
- "required": false
|
|
|
1073
|
+ {
|
|
|
1074
|
+ "kind": "Service",
|
|
|
1075
|
+ "id": "database",
|
|
|
1076
|
+ "apiVersion": "v1beta1",
|
|
|
1077
|
+ "port": 5432,
|
|
|
1078
|
+ "containerPort": 5432,
|
|
|
1079
|
+ "selector": {
|
|
|
1080
|
+ "name": "database"
|
|
|
1081
|
+ }
|
|
1363
|
1082
|
},
|
|
1364
|
|
- "desiredState": {
|
|
1365
|
|
- "type": "object",
|
|
1366
|
|
- "required": false,
|
|
1367
|
|
- "description": "The desired configuration of the pod",
|
|
1368
|
|
- "properties": {
|
|
1369
|
|
- "manifest": {
|
|
1370
|
|
- "type": "object",
|
|
1371
|
|
- "required": false,
|
|
1372
|
|
- "description": "Manifest describing group of [Docker containers](http://docker.io); compatible with format used by [Google Cloud Platform's container-vm images](https://developers.google.com/compute/docs/containers)"
|
|
1373
|
|
- },
|
|
1374
|
|
- "status": {
|
|
1375
|
|
- "type": "string",
|
|
1376
|
|
- "required": false,
|
|
1377
|
|
- "description": ""
|
|
1378
|
|
- },
|
|
1379
|
|
- "host": {
|
|
1380
|
|
- "type": "string",
|
|
1381
|
|
- "required": false,
|
|
1382
|
|
- "description": ""
|
|
1383
|
|
- },
|
|
1384
|
|
- "hostIP": {
|
|
1385
|
|
- "type": "string",
|
|
1386
|
|
- "required": false,
|
|
1387
|
|
- "description": ""
|
|
|
1083
|
+ {
|
|
|
1084
|
+ "kind": "ReplicationController",
|
|
|
1085
|
+ "id": "frontendController",
|
|
|
1086
|
+ "apiVersion": "v1beta1",
|
|
|
1087
|
+ "desiredState": {
|
|
|
1088
|
+ "replicas": 2,
|
|
|
1089
|
+ "replicaSelector": {
|
|
|
1090
|
+ "name": "frontend"
|
|
1388
|
1091
|
},
|
|
1389
|
|
- "info": {
|
|
1390
|
|
- "type": "object",
|
|
1391
|
|
- "required": false,
|
|
1392
|
|
- "description": ""
|
|
|
1092
|
+ "podTemplate": {
|
|
|
1093
|
+ "desiredState": {
|
|
|
1094
|
+ "manifest": {
|
|
|
1095
|
+ "id": "frontendController",
|
|
|
1096
|
+ "version": "v1beta1",
|
|
|
1097
|
+ "containers": [
|
|
|
1098
|
+ {
|
|
|
1099
|
+ "name": "nginx-php-app",
|
|
|
1100
|
+ "image": "mfojtik/nginx-php-app",
|
|
|
1101
|
+ "env": [
|
|
|
1102
|
+ {
|
|
|
1103
|
+ "name": "PGPASSWORD",
|
|
|
1104
|
+ "value": "${DB_PASSWORD}"
|
|
|
1105
|
+ },
|
|
|
1106
|
+ {
|
|
|
1107
|
+ "name": "PGUSER",
|
|
|
1108
|
+ "value": "${DB_USER}"
|
|
|
1109
|
+ },
|
|
|
1110
|
+ {
|
|
|
1111
|
+ "name": "PGDATABASE",
|
|
|
1112
|
+ "value": "${DB_NAME}"
|
|
|
1113
|
+ }
|
|
|
1114
|
+ ],
|
|
|
1115
|
+ "ports": [
|
|
|
1116
|
+ {
|
|
|
1117
|
+ "containerPort": 9292,
|
|
|
1118
|
+ "hostPort": 8080
|
|
|
1119
|
+ }
|
|
|
1120
|
+ ]
|
|
|
1121
|
+ }
|
|
|
1122
|
+ ]
|
|
|
1123
|
+ }
|
|
|
1124
|
+ },
|
|
|
1125
|
+ "labels": {
|
|
|
1126
|
+ "name": "frontend"
|
|
|
1127
|
+ }
|
|
1393
|
1128
|
}
|
|
|
1129
|
+ },
|
|
|
1130
|
+ "labels": {
|
|
|
1131
|
+ "name": "frontend"
|
|
1394
|
1132
|
}
|
|
1395
|
1133
|
},
|
|
1396
|
|
- "currentState": {
|
|
1397
|
|
- "type": "object",
|
|
1398
|
|
- "required": false,
|
|
1399
|
|
- "description": "The current configuration and status of the pod. Fields in common with desiredState have the same meaning.",
|
|
1400
|
|
- "properties": {
|
|
|
1134
|
+ {
|
|
|
1135
|
+ "kind": "Pod",
|
|
|
1136
|
+ "id": "postgresql",
|
|
|
1137
|
+ "apiVersion": "v1beta1",
|
|
|
1138
|
+ "desiredState": {
|
|
1401
|
1139
|
"manifest": {
|
|
1402
|
|
- "type": "object",
|
|
1403
|
|
- "required": false
|
|
1404
|
|
- },
|
|
1405
|
|
- "status": {
|
|
1406
|
|
- "type": "string",
|
|
1407
|
|
- "required": false
|
|
1408
|
|
- },
|
|
1409
|
|
- "host": {
|
|
1410
|
|
- "type": "string",
|
|
1411
|
|
- "required": false
|
|
1412
|
|
- },
|
|
1413
|
|
- "hostIP": {
|
|
1414
|
|
- "type": "string",
|
|
1415
|
|
- "required": false
|
|
1416
|
|
- },
|
|
1417
|
|
- "info": {
|
|
1418
|
|
- "type": "object",
|
|
1419
|
|
- "required": false
|
|
|
1140
|
+ "version": "v1beta1",
|
|
|
1141
|
+ "id": "database",
|
|
|
1142
|
+ "containers": [
|
|
|
1143
|
+ {
|
|
|
1144
|
+ "name": "postgresql",
|
|
|
1145
|
+ "image": "postgres",
|
|
|
1146
|
+ "env": [
|
|
|
1147
|
+ {
|
|
|
1148
|
+ "name": "PGPASSWORD",
|
|
|
1149
|
+ "value": "${DB_PASSWORD}"
|
|
|
1150
|
+ },
|
|
|
1151
|
+ {
|
|
|
1152
|
+ "name": "PGUSER",
|
|
|
1153
|
+ "value": "${DB_USER}"
|
|
|
1154
|
+ },
|
|
|
1155
|
+ {
|
|
|
1156
|
+ "name": "PGDATABASE",
|
|
|
1157
|
+ "value": "${DB_NAME}"
|
|
|
1158
|
+ }
|
|
|
1159
|
+ ],
|
|
|
1160
|
+ "ports": [
|
|
|
1161
|
+ {
|
|
|
1162
|
+ "containerPort": 5432,
|
|
|
1163
|
+ "hostPort": 5432
|
|
|
1164
|
+ }
|
|
|
1165
|
+ ]
|
|
|
1166
|
+ }
|
|
|
1167
|
+ ]
|
|
1420
|
1168
|
}
|
|
|
1169
|
+ },
|
|
|
1170
|
+ "labels": {
|
|
|
1171
|
+ "name": "database"
|
|
1421
|
1172
|
}
|
|
1422
|
|
- },
|
|
1423
|
|
- "labels": {
|
|
1424
|
|
- "type": "object",
|
|
1425
|
|
- "required": false
|
|
1426
|
1173
|
}
|
|
1427
|
|
- }
|
|
1428
|
|
-}
|
|
1429
|
|
-</code></pre><p><strong>Example</strong>:</p><pre><code>{
|
|
1430
|
|
- "id": "php",
|
|
1431
|
|
- "desiredState": {
|
|
1432
|
|
- "manifest": {
|
|
1433
|
|
- "version": "v1beta1",
|
|
1434
|
|
- "id": "php",
|
|
1435
|
|
- "containers": [{
|
|
1436
|
|
- "name": "nginx",
|
|
1437
|
|
- "image": "dockerfile/nginx",
|
|
1438
|
|
- "ports": [{
|
|
1439
|
|
- "containerPort": 80,
|
|
1440
|
|
- "hostPort": 8080
|
|
1441
|
|
- }],
|
|
1442
|
|
- "livenessProbe": {
|
|
1443
|
|
- "enabled": true,
|
|
1444
|
|
- "type": "http",
|
|
1445
|
|
- "initialDelaySeconds": 30,
|
|
1446
|
|
- "httpGet": {
|
|
1447
|
|
- "path": "/index.html",
|
|
1448
|
|
- "port": "8080"
|
|
1449
|
|
- }
|
|
1450
|
|
- }
|
|
1451
|
|
- }]
|
|
1452
|
|
- }
|
|
1453
|
|
- },
|
|
1454
|
|
- "labels": {
|
|
1455
|
|
- "name": "foo"
|
|
1456
|
|
- }
|
|
1457
|
|
-}
|
|
1458
|
|
-
|
|
1459
|
|
-</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__pods__podId_><span class=parent>/pods</span>/{podId}</a> <span class=methods><a href=# data-toggle=modal data-target=#_pods__podId__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_pods__podId__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_pods__podId__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__pods__podId_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_pods__podId__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific pod</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_pods__podId__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a pod</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_pods__podId__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific pod</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_pods__podId__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/pods</span>/{podId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific pod</p></div><ul class="nav nav-tabs"><li class=active><a href=#_pods__podId__get_request data-toggle=tab>Request</a></li><li><a href=#_pods__podId__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_pods__podId__get_request><h3>URI Parameters</h3><ul><li><strong>podId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_pods__podId__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1460
|
|
- "id": "php",
|
|
1461
|
|
- "desiredState": {
|
|
1462
|
|
- "manifest": {
|
|
1463
|
|
- "version": "v1beta1",
|
|
1464
|
|
- "id": "php",
|
|
1465
|
|
- "containers": [{
|
|
1466
|
|
- "name": "nginx",
|
|
1467
|
|
- "image": "dockerfile/nginx",
|
|
1468
|
|
- "ports": [{
|
|
1469
|
|
- "containerPort": 80,
|
|
1470
|
|
- "hostPort": 8080
|
|
1471
|
|
- }],
|
|
1472
|
|
- "livenessProbe": {
|
|
1473
|
|
- "enabled": true,
|
|
1474
|
|
- "type": "http",
|
|
1475
|
|
- "initialDelaySeconds": 30,
|
|
1476
|
|
- "httpGet": {
|
|
1477
|
|
- "path": "/index.html",
|
|
1478
|
|
- "port": "8080"
|
|
1479
|
|
- }
|
|
1480
|
|
- }
|
|
1481
|
|
- }]
|
|
1482
|
|
- }
|
|
1483
|
|
- },
|
|
1484
|
|
- "labels": {
|
|
1485
|
|
- "name": "foo"
|
|
1486
|
|
- }
|
|
1487
|
|
-}
|
|
1488
|
|
-
|
|
1489
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_pods__podId__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/pods</span>/{podId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a pod</p></div><ul class="nav nav-tabs"><li class=active><a href=#_pods__podId__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_pods__podId__put_request><h3>URI Parameters</h3><ul><li><strong>podId</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
1490
|
|
- "$schema": "http://json-schema.org/draft-03/schema",
|
|
1491
|
|
- "type": "object",
|
|
1492
|
|
- "required": false,
|
|
1493
|
|
- "description": "Pod resource. A pod corresponds to a co-located group of [Docker containers](http://docker.io).",
|
|
1494
|
|
- "properties": {
|
|
1495
|
|
- "kind": {
|
|
1496
|
|
- "type": "string",
|
|
1497
|
|
- "required": false
|
|
1498
|
|
- },
|
|
1499
|
|
- "id": {
|
|
1500
|
|
- "type": "string",
|
|
1501
|
|
- "required": false
|
|
1502
|
|
- },
|
|
1503
|
|
- "creationTimestamp": {
|
|
1504
|
|
- "type": "string",
|
|
1505
|
|
- "required": false
|
|
|
1174
|
+ ]
|
|
|
1175
|
+}</code></pre></div><div class=tab-pane id=_templateConfigs_post_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
1176
|
+ "kind": "Config",
|
|
|
1177
|
+ "id": "example1",
|
|
|
1178
|
+ "name": "My awesome PHP app",
|
|
|
1179
|
+ "description": "Example PHP application with PostgreSQL database",
|
|
|
1180
|
+ "apiVersion": "v1beta1",
|
|
|
1181
|
+ "creationTimestamp": "2014-09-22T09:48:27Z",
|
|
|
1182
|
+ "items": [
|
|
|
1183
|
+ {
|
|
|
1184
|
+ "kind": "Service",
|
|
|
1185
|
+ "id": "frontend",
|
|
|
1186
|
+ "creationTimestamp": null,
|
|
|
1187
|
+ "apiVersion": "v1beta1",
|
|
|
1188
|
+ "port": 8080,
|
|
|
1189
|
+ "containerPort": 9292,
|
|
|
1190
|
+ "selector": {
|
|
|
1191
|
+ "name": "frontend"
|
|
|
1192
|
+ }
|
|
1506
|
1193
|
},
|
|
1507
|
|
- "selfLink": {
|
|
1508
|
|
- "type": "string",
|
|
1509
|
|
- "required": false
|
|
|
1194
|
+ {
|
|
|
1195
|
+ "kind": "Service",
|
|
|
1196
|
+ "id": "database",
|
|
|
1197
|
+ "creationTimestamp": null,
|
|
|
1198
|
+ "apiVersion": "v1beta1",
|
|
|
1199
|
+ "port": 5432,
|
|
|
1200
|
+ "containerPort": 5432,
|
|
|
1201
|
+ "selector": {
|
|
|
1202
|
+ "name": "database"
|
|
|
1203
|
+ }
|
|
1510
|
1204
|
},
|
|
1511
|
|
- "desiredState": {
|
|
1512
|
|
- "type": "object",
|
|
1513
|
|
- "required": false,
|
|
1514
|
|
- "description": "The desired configuration of the pod",
|
|
1515
|
|
- "properties": {
|
|
1516
|
|
- "manifest": {
|
|
1517
|
|
- "type": "object",
|
|
1518
|
|
- "required": false,
|
|
1519
|
|
- "description": "Manifest describing group of [Docker containers](http://docker.io); compatible with format used by [Google Cloud Platform's container-vm images](https://developers.google.com/compute/docs/containers)"
|
|
1520
|
|
- },
|
|
1521
|
|
- "status": {
|
|
1522
|
|
- "type": "string",
|
|
1523
|
|
- "required": false,
|
|
1524
|
|
- "description": ""
|
|
1525
|
|
- },
|
|
1526
|
|
- "host": {
|
|
1527
|
|
- "type": "string",
|
|
1528
|
|
- "required": false,
|
|
1529
|
|
- "description": ""
|
|
1530
|
|
- },
|
|
1531
|
|
- "hostIP": {
|
|
1532
|
|
- "type": "string",
|
|
1533
|
|
- "required": false,
|
|
1534
|
|
- "description": ""
|
|
|
1205
|
+ {
|
|
|
1206
|
+ "kind": "ReplicationController",
|
|
|
1207
|
+ "id": "frontendController",
|
|
|
1208
|
+ "creationTimestamp": null,
|
|
|
1209
|
+ "apiVersion": "v1beta1",
|
|
|
1210
|
+ "desiredState": {
|
|
|
1211
|
+ "replicas": 2,
|
|
|
1212
|
+ "replicaSelector": {
|
|
|
1213
|
+ "name": "frontend"
|
|
1535
|
1214
|
},
|
|
1536
|
|
- "info": {
|
|
1537
|
|
- "type": "object",
|
|
1538
|
|
- "required": false,
|
|
1539
|
|
- "description": ""
|
|
|
1215
|
+ "podTemplate": {
|
|
|
1216
|
+ "desiredState": {
|
|
|
1217
|
+ "manifest": {
|
|
|
1218
|
+ "version": "v1beta1",
|
|
|
1219
|
+ "id": "frontendController",
|
|
|
1220
|
+ "volumes": null,
|
|
|
1221
|
+ "containers": [
|
|
|
1222
|
+ {
|
|
|
1223
|
+ "name": "nginx-php-app",
|
|
|
1224
|
+ "image": "mfojtik/nginx-php-app",
|
|
|
1225
|
+ "ports": [
|
|
|
1226
|
+ {
|
|
|
1227
|
+ "hostPort": 8080,
|
|
|
1228
|
+ "containerPort": 9292,
|
|
|
1229
|
+ "protocol": "TCP"
|
|
|
1230
|
+ }
|
|
|
1231
|
+ ],
|
|
|
1232
|
+ "env": [
|
|
|
1233
|
+ {
|
|
|
1234
|
+ "name": "PGPASSWORD",
|
|
|
1235
|
+ "key": "PGPASSWORD",
|
|
|
1236
|
+ "value": "MPbGM5T0"
|
|
|
1237
|
+ },
|
|
|
1238
|
+ {
|
|
|
1239
|
+ "name": "PGUSER",
|
|
|
1240
|
+ "key": "PGUSER",
|
|
|
1241
|
+ "value": "adminO8bR"
|
|
|
1242
|
+ },
|
|
|
1243
|
+ {
|
|
|
1244
|
+ "name": "PGDATABASE",
|
|
|
1245
|
+ "key": "PGDATABASE",
|
|
|
1246
|
+ "value": "mydb"
|
|
|
1247
|
+ }
|
|
|
1248
|
+ ]
|
|
|
1249
|
+ }
|
|
|
1250
|
+ ]
|
|
|
1251
|
+ },
|
|
|
1252
|
+ "restartpolicy": {}
|
|
|
1253
|
+ },
|
|
|
1254
|
+ "labels": {
|
|
|
1255
|
+ "name": "frontend"
|
|
|
1256
|
+ }
|
|
1540
|
1257
|
}
|
|
|
1258
|
+ },
|
|
|
1259
|
+ "labels": {
|
|
|
1260
|
+ "name": "frontend"
|
|
1541
|
1261
|
}
|
|
1542
|
1262
|
},
|
|
1543
|
|
- "currentState": {
|
|
1544
|
|
- "type": "object",
|
|
1545
|
|
- "required": false,
|
|
1546
|
|
- "description": "The current configuration and status of the pod. Fields in common with desiredState have the same meaning.",
|
|
1547
|
|
- "properties": {
|
|
|
1263
|
+ {
|
|
|
1264
|
+ "kind": "Pod",
|
|
|
1265
|
+ "id": "postgresql",
|
|
|
1266
|
+ "creationTimestamp": null,
|
|
|
1267
|
+ "apiVersion": "v1beta1",
|
|
|
1268
|
+ "labels": {
|
|
|
1269
|
+ "name": "database"
|
|
|
1270
|
+ },
|
|
|
1271
|
+ "desiredState": {
|
|
1548
|
1272
|
"manifest": {
|
|
1549
|
|
- "type": "object",
|
|
1550
|
|
- "required": false
|
|
1551
|
|
- },
|
|
1552
|
|
- "status": {
|
|
1553
|
|
- "type": "string",
|
|
1554
|
|
- "required": false
|
|
1555
|
|
- },
|
|
1556
|
|
- "host": {
|
|
1557
|
|
- "type": "string",
|
|
1558
|
|
- "required": false
|
|
1559
|
|
- },
|
|
1560
|
|
- "hostIP": {
|
|
1561
|
|
- "type": "string",
|
|
1562
|
|
- "required": false
|
|
|
1273
|
+ "version": "v1beta1",
|
|
|
1274
|
+ "id": "database",
|
|
|
1275
|
+ "volumes": null,
|
|
|
1276
|
+ "containers": [
|
|
|
1277
|
+ {
|
|
|
1278
|
+ "name": "postgresql",
|
|
|
1279
|
+ "image": "postgres",
|
|
|
1280
|
+ "ports": [
|
|
|
1281
|
+ {
|
|
|
1282
|
+ "hostPort": 5432,
|
|
|
1283
|
+ "containerPort": 5432,
|
|
|
1284
|
+ "protocol": "TCP"
|
|
|
1285
|
+ }
|
|
|
1286
|
+ ],
|
|
|
1287
|
+ "env": [
|
|
|
1288
|
+ {
|
|
|
1289
|
+ "name": "PGPASSWORD",
|
|
|
1290
|
+ "key": "PGPASSWORD",
|
|
|
1291
|
+ "value": "MPbGM5T0"
|
|
|
1292
|
+ },
|
|
|
1293
|
+ {
|
|
|
1294
|
+ "name": "PGUSER",
|
|
|
1295
|
+ "key": "PGUSER",
|
|
|
1296
|
+ "value": "adminO8bR"
|
|
|
1297
|
+ },
|
|
|
1298
|
+ {
|
|
|
1299
|
+ "name": "PGDATABASE",
|
|
|
1300
|
+ "key": "PGDATABASE",
|
|
|
1301
|
+ "value": "mydb"
|
|
|
1302
|
+ }
|
|
|
1303
|
+ ]
|
|
|
1304
|
+ }
|
|
|
1305
|
+ ]
|
|
1563
|
1306
|
},
|
|
1564
|
|
- "info": {
|
|
1565
|
|
- "type": "object",
|
|
1566
|
|
- "required": false
|
|
|
1307
|
+ "restartpolicy": {
|
|
|
1308
|
+ "type": "RestartAlways"
|
|
1567
|
1309
|
}
|
|
|
1310
|
+ },
|
|
|
1311
|
+ "currentState": {
|
|
|
1312
|
+ "manifest": {
|
|
|
1313
|
+ "version": "",
|
|
|
1314
|
+ "id": "",
|
|
|
1315
|
+ "volumes": null,
|
|
|
1316
|
+ "containers": null
|
|
|
1317
|
+ },
|
|
|
1318
|
+ "restartpolicy": {}
|
|
1568
|
1319
|
}
|
|
1569
|
|
- },
|
|
1570
|
|
- "labels": {
|
|
1571
|
|
- "type": "object",
|
|
1572
|
|
- "required": false
|
|
1573
|
1320
|
}
|
|
1574
|
|
- }
|
|
|
1321
|
+ ]
|
|
|
1322
|
+}</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_templates class=panel-title>/templates (NOT IMPLEMENTED)</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__templates><span class=parent></span>/templates</a> <span class=methods><a href=# data-toggle=modal data-target=#_templates_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_templates_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__templates class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_templates_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all templates that your account has access to.</p><p>A template represents generic config with parameters.</p><p>Parameters:</p><p>Example #1 - static paramater:</p><pre><code>{
|
|
|
1323
|
+
|
|
|
1324
|
+ "name": "DB_NAME",
|
|
|
1325
|
+
|
|
|
1326
|
+ "description": "PostgreSQL database name",
|
|
|
1327
|
+
|
|
|
1328
|
+ "type": "string",
|
|
|
1329
|
+
|
|
|
1330
|
+ "value": "mydb"
|
|
|
1331
|
+
|
|
1575
|
1332
|
}
|
|
1576
|
|
-</code></pre><p><strong>Example</strong>:</p><pre><code>{
|
|
1577
|
|
- "id": "php",
|
|
1578
|
|
- "desiredState": {
|
|
1579
|
|
- "manifest": {
|
|
1580
|
|
- "version": "v1beta1",
|
|
1581
|
|
- "id": "php",
|
|
1582
|
|
- "containers": [{
|
|
1583
|
|
- "name": "nginx",
|
|
1584
|
|
- "image": "dockerfile/nginx",
|
|
1585
|
|
- "ports": [{
|
|
1586
|
|
- "containerPort": 80,
|
|
1587
|
|
- "hostPort": 8080
|
|
1588
|
|
- }],
|
|
1589
|
|
- "livenessProbe": {
|
|
1590
|
|
- "enabled": true,
|
|
1591
|
|
- "type": "http",
|
|
1592
|
|
- "initialDelaySeconds": 30,
|
|
1593
|
|
- "httpGet": {
|
|
1594
|
|
- "path": "/index.html",
|
|
1595
|
|
- "port": "8080"
|
|
1596
|
|
- }
|
|
1597
|
|
- }
|
|
1598
|
|
- }]
|
|
1599
|
|
- }
|
|
1600
|
|
- },
|
|
1601
|
|
- "labels": {
|
|
1602
|
|
- "name": "foo"
|
|
1603
|
|
- }
|
|
|
1333
|
+</code></pre><p>The above parameter can be referenced in the rest of the template as ${DB_NAME} expression, which is to be substituted by its value (the "mydb" string) during the transformation.</p><p>Example #2 - parameter with generator:</p><pre><code>{
|
|
|
1334
|
+
|
|
|
1335
|
+ "name": "DB_PASSWORD",
|
|
|
1336
|
+
|
|
|
1337
|
+ "description": "PostgreSQL admin user password",
|
|
|
1338
|
+
|
|
|
1339
|
+ "type": "string",
|
|
|
1340
|
+
|
|
|
1341
|
+ "expression": "[a-zA-Z0-9]{8}"
|
|
|
1342
|
+
|
|
1604
|
1343
|
}
|
|
1605
|
|
-
|
|
1606
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_pods__podId__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/pods</span>/{podId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific pod</p></div><ul class="nav nav-tabs"><li class=active><a href=#_pods__podId__delete_request data-toggle=tab>Request</a></li><li><a href=#_pods__podId__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_pods__podId__delete_request><h3>URI Parameters</h3><ul><li><strong>podId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_pods__podId__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1607
|
|
- "apiVersion": "v1beta1",
|
|
1608
|
|
- "creationTimestamp": null,
|
|
1609
|
|
- "kind": "Status",
|
|
1610
|
|
- "status": "success"
|
|
|
1344
|
+</code></pre><p>The above parameter can be referenced in the rest of the template as ${DB_PASSWORD} expression, which is to be substituted by its newly generated value during the transformation.</p><p>Generators:</p><p>Generators generate random values based on the input. OpenShift 3 currently support expression value generator only.</p><p>Expression value generator generates random string based on the input expression. The input expression is a string, which may contain "[a-zA-Z0-9]{length}" expression constructs, defining range and length of the result random characters.</p><p>Examples ("expression" => "value"):</p><pre><code>"test[0-9]{1}x" => "test7x"
|
|
|
1345
|
+
|
|
|
1346
|
+"[0-1]{8}" => "01001100"
|
|
|
1347
|
+
|
|
|
1348
|
+"0x[A-F0-9]{4}" => "0xB3AF"
|
|
|
1349
|
+
|
|
|
1350
|
+"[a-zA-Z0-9]{8}" => "hW4yQU5i"
|
|
|
1351
|
+</code></pre></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_templates_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new template.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_templates_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/templates</h4></div><div class=modal-body><div class="alert alert-info"><p>List all templates that your account has access to.</p><p>A template represents generic config with parameters.</p><p>Parameters:</p><p>Example #1 - static paramater:</p><pre><code>{
|
|
|
1352
|
+
|
|
|
1353
|
+ "name": "DB_NAME",
|
|
|
1354
|
+
|
|
|
1355
|
+ "description": "PostgreSQL database name",
|
|
|
1356
|
+
|
|
|
1357
|
+ "type": "string",
|
|
|
1358
|
+
|
|
|
1359
|
+ "value": "mydb"
|
|
|
1360
|
+
|
|
1611
|
1361
|
}
|
|
1612
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_replicationControllers class=panel-title>/replicationControllers</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__replicationControllers><span class=parent></span>/replicationControllers</a> <span class=methods><a href=# data-toggle=modal data-target=#_replicationControllers_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_replicationControllers_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__replicationControllers class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_replicationControllers_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all replicationControllers on this cluster</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_replicationControllers_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new controller. currentState is ignored if present.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_replicationControllers_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/replicationControllers</h4></div><div class=modal-body><div class="alert alert-info"><p>List all replicationControllers on this cluster</p></div><ul class="nav nav-tabs"><li class=active><a href=#_replicationControllers_get_request data-toggle=tab>Request</a></li><li><a href=#_replicationControllers_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_replicationControllers_get_request></div><div class=tab-pane id=_replicationControllers_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1613
|
|
- "items": [
|
|
1614
|
|
- {
|
|
1615
|
|
- "id": "testRun",
|
|
1616
|
|
- "desiredState": {
|
|
1617
|
|
- "replicas": 2,
|
|
1618
|
|
- "replicaSelector": {
|
|
1619
|
|
- "name": "testRun"
|
|
1620
|
|
- },
|
|
1621
|
|
- "podTemplate": {
|
|
1622
|
|
- "desiredState": {
|
|
1623
|
|
- "image": "dockerfile/nginx",
|
|
1624
|
|
- "networkPorts": [
|
|
1625
|
|
- {
|
|
1626
|
|
- "hostPort": 8080,
|
|
1627
|
|
- "containerPort": 80
|
|
1628
|
|
- }
|
|
1629
|
|
- ]
|
|
1630
|
|
- },
|
|
1631
|
|
- "labels": {
|
|
1632
|
|
- "name": "testRun"
|
|
1633
|
|
- }
|
|
1634
|
|
- }
|
|
1635
|
|
- },
|
|
1636
|
|
- "labels": {
|
|
1637
|
|
- "name": "testRun"
|
|
1638
|
|
- }
|
|
1639
|
|
- }
|
|
1640
|
|
- ]
|
|
1641
|
|
-}</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_replicationControllers_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/replicationControllers</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new controller. currentState is ignored if present.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_replicationControllers_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_replicationControllers_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
|
1362
|
+</code></pre><p>The above parameter can be referenced in the rest of the template as ${DB_NAME} expression, which is to be substituted by its value (the "mydb" string) during the transformation.</p><p>Example #2 - parameter with generator:</p><pre><code>{
|
|
|
1363
|
+
|
|
|
1364
|
+ "name": "DB_PASSWORD",
|
|
|
1365
|
+
|
|
|
1366
|
+ "description": "PostgreSQL admin user password",
|
|
|
1367
|
+
|
|
|
1368
|
+ "type": "string",
|
|
|
1369
|
+
|
|
|
1370
|
+ "expression": "[a-zA-Z0-9]{8}"
|
|
|
1371
|
+
|
|
|
1372
|
+}
|
|
|
1373
|
+</code></pre><p>The above parameter can be referenced in the rest of the template as ${DB_PASSWORD} expression, which is to be substituted by its newly generated value during the transformation.</p><p>Generators:</p><p>Generators generate random values based on the input. OpenShift 3 currently support expression value generator only.</p><p>Expression value generator generates random string based on the input expression. The input expression is a string, which may contain "[a-zA-Z0-9]{length}" expression constructs, defining range and length of the result random characters.</p><p>Examples ("expression" => "value"):</p><pre><code>"test[0-9]{1}x" => "test7x"
|
|
|
1374
|
+
|
|
|
1375
|
+"[0-1]{8}" => "01001100"
|
|
|
1376
|
+
|
|
|
1377
|
+"0x[A-F0-9]{4}" => "0xB3AF"
|
|
|
1378
|
+
|
|
|
1379
|
+"[a-zA-Z0-9]{8}" => "hW4yQU5i"
|
|
|
1380
|
+</code></pre></div><ul class="nav nav-tabs"><li class=active><a href=#_templates_get_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_templates_get_request></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_templates_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/templates</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new template.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_templates_post_request data-toggle=tab>Request</a></li><li><a href=#_templates_post_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_templates_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
1642
|
1381
|
"$schema": "http://json-schema.org/draft-03/schema",
|
|
1643
|
1382
|
"type": "object",
|
|
1644
|
|
- "required": false,
|
|
1645
|
|
- "description": "A replicationController resource. A replicationController helps to create and manage a set of pods. It acts as a factory to create new pods based on a template. It ensures that there are a specific number of pods running. If fewer pods are running than `replicas` then the needed pods are generated using `podTemplate`. If more pods are running than `replicas`, then excess pods are deleted.",
|
|
|
1383
|
+ "required": true,
|
|
|
1384
|
+ "description": "Template resource.",
|
|
1646
|
1385
|
"properties": {
|
|
1647
|
|
- "kind": {
|
|
1648
|
|
- "type": "string",
|
|
1649
|
|
- "required": false
|
|
1650
|
|
- },
|
|
1651
|
1386
|
"id": {
|
|
1652
|
1387
|
"type": "string",
|
|
1653
|
|
- "required": false
|
|
|
1388
|
+ "required": true
|
|
1654
|
1389
|
},
|
|
1655
|
|
- "creationTimestamp": {
|
|
|
1390
|
+ "name": {
|
|
1656
|
1391
|
"type": "string",
|
|
1657
|
|
- "required": false
|
|
|
1392
|
+ "required": true
|
|
1658
|
1393
|
},
|
|
1659
|
|
- "selfLink": {
|
|
|
1394
|
+ "description": {
|
|
1660
|
1395
|
"type": "string",
|
|
1661
|
1396
|
"required": false
|
|
1662
|
1397
|
},
|
|
1663
|
|
- "desiredState": {
|
|
1664
|
|
- "type": "object",
|
|
|
1398
|
+ "parameters": {
|
|
|
1399
|
+ "type": "array",
|
|
1665
|
1400
|
"required": false,
|
|
1666
|
|
- "description": "The desired configuration of the replicationController",
|
|
1667
|
|
- "properties": {
|
|
1668
|
|
- "replicas": {
|
|
1669
|
|
- "type": "number",
|
|
1670
|
|
- "required": false,
|
|
1671
|
|
- "description": "Number of pods desired in the set"
|
|
1672
|
|
- },
|
|
1673
|
|
- "replicaSelector": {
|
|
1674
|
|
- "type": "object",
|
|
1675
|
|
- "required": false,
|
|
1676
|
|
- "description": "Required labels used to identify pods in the set"
|
|
1677
|
|
- },
|
|
1678
|
|
- "podTemplate": {
|
|
1679
|
|
- "type": "object",
|
|
1680
|
|
- "required": false,
|
|
1681
|
|
- "description": "Template from which to create new pods, as necessary. Identical to pod schema."
|
|
|
1401
|
+ "items": {
|
|
|
1402
|
+ "type": "object",
|
|
|
1403
|
+ "required": false,
|
|
|
1404
|
+ "properties": {
|
|
|
1405
|
+ "name": {
|
|
|
1406
|
+ "type": "string",
|
|
|
1407
|
+ "required": true
|
|
|
1408
|
+ },
|
|
|
1409
|
+ "type": {
|
|
|
1410
|
+ "type": "string",
|
|
|
1411
|
+ "required": true,
|
|
|
1412
|
+ "enum": ["string"]
|
|
|
1413
|
+ },
|
|
|
1414
|
+ "value": {
|
|
|
1415
|
+ "type": "string",
|
|
|
1416
|
+ "required": false
|
|
|
1417
|
+ },
|
|
|
1418
|
+ "expression": {
|
|
|
1419
|
+ "type": "string",
|
|
|
1420
|
+ "required": false
|
|
|
1421
|
+ },
|
|
|
1422
|
+ "description": {
|
|
|
1423
|
+ "type": "string",
|
|
|
1424
|
+ "required": false
|
|
|
1425
|
+ }
|
|
1682
|
1426
|
}
|
|
1683
|
1427
|
}
|
|
1684
|
1428
|
},
|
|
1685
|
|
- "labels": {
|
|
1686
|
|
- "type": "object",
|
|
1687
|
|
- "required": false
|
|
|
1429
|
+ "items": {
|
|
|
1430
|
+ "type": "array",
|
|
|
1431
|
+ "required": false,
|
|
|
1432
|
+ "items": {
|
|
|
1433
|
+ "type": "object",
|
|
|
1434
|
+ "required": true,
|
|
|
1435
|
+ "properties": {
|
|
|
1436
|
+ "kind": {
|
|
|
1437
|
+ "type": "string",
|
|
|
1438
|
+ "required": true
|
|
|
1439
|
+ },
|
|
|
1440
|
+ "id": {
|
|
|
1441
|
+ "type": "string",
|
|
|
1442
|
+ "required": true
|
|
|
1443
|
+ }
|
|
|
1444
|
+ }
|
|
|
1445
|
+ }
|
|
1688
|
1446
|
}
|
|
1689
|
1447
|
}
|
|
1690
|
|
-}
|
|
1691
|
|
-</code></pre><p><strong>Example</strong>:</p><pre><code> {
|
|
1692
|
|
- "id": "nginxController",
|
|
1693
|
|
- "desiredState": {
|
|
1694
|
|
- "replicas": 2,
|
|
1695
|
|
- "replicaSelector": {"name": "nginx"},
|
|
1696
|
|
- "podTemplate": {
|
|
1697
|
|
- "desiredState": {
|
|
1698
|
|
- "manifest": {
|
|
1699
|
|
- "version": "v1beta1",
|
|
1700
|
|
- "id": "nginxController",
|
|
1701
|
|
- "containers": [{
|
|
1702
|
|
- "name": "nginx",
|
|
1703
|
|
- "image": "dockerfile/nginx",
|
|
1704
|
|
- "ports": [{"containerPort": 80, "hostPort": 8080}]
|
|
1705
|
|
- }]
|
|
1706
|
|
- }
|
|
1707
|
|
- },
|
|
1708
|
|
- "labels": {"name": "nginx"}
|
|
1709
|
|
- }},
|
|
1710
|
|
- "labels": {"name": "nginx"}
|
|
1711
|
|
- }
|
|
1712
|
|
-</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__replicationControllers__controllerId_><span class=parent>/replicationControllers</span>/{controllerId}</a> <span class=methods><a href=# data-toggle=modal data-target=#_replicationControllers__controllerId__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_replicationControllers__controllerId__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_replicationControllers__controllerId__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__replicationControllers__controllerId_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_replicationControllers__controllerId__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific controller</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_replicationControllers__controllerId__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a controller</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_replicationControllers__controllerId__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific controller</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_replicationControllers__controllerId__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/replicationControllers</span>/{controllerId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific controller</p></div><ul class="nav nav-tabs"><li class=active><a href=#_replicationControllers__controllerId__get_request data-toggle=tab>Request</a></li><li><a href=#_replicationControllers__controllerId__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_replicationControllers__controllerId__get_request><h3>URI Parameters</h3><ul><li><strong>controllerId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_replicationControllers__controllerId__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code> {
|
|
1713
|
|
- "id": "nginxController",
|
|
1714
|
|
- "desiredState": {
|
|
1715
|
|
- "replicas": 2,
|
|
1716
|
|
- "replicaSelector": {"name": "nginx"},
|
|
1717
|
|
- "podTemplate": {
|
|
1718
|
|
- "desiredState": {
|
|
1719
|
|
- "manifest": {
|
|
1720
|
|
- "version": "v1beta1",
|
|
1721
|
|
- "id": "nginxController",
|
|
1722
|
|
- "containers": [{
|
|
1723
|
|
- "name": "nginx",
|
|
1724
|
|
- "image": "dockerfile/nginx",
|
|
1725
|
|
- "ports": [{"containerPort": 80, "hostPort": 8080}]
|
|
1726
|
|
- }]
|
|
1727
|
|
- }
|
|
1728
|
|
- },
|
|
1729
|
|
- "labels": {"name": "nginx"}
|
|
1730
|
|
- }},
|
|
1731
|
|
- "labels": {"name": "nginx"}
|
|
1732
|
|
- }
|
|
1733
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_replicationControllers__controllerId__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/replicationControllers</span>/{controllerId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a controller</p></div><ul class="nav nav-tabs"><li class=active><a href=#_replicationControllers__controllerId__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_replicationControllers__controllerId__put_request><h3>URI Parameters</h3><ul><li><strong>controllerId</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
1734
|
|
- "$schema": "http://json-schema.org/draft-03/schema",
|
|
1735
|
|
- "type": "object",
|
|
1736
|
|
- "required": false,
|
|
1737
|
|
- "description": "A replicationController resource. A replicationController helps to create and manage a set of pods. It acts as a factory to create new pods based on a template. It ensures that there are a specific number of pods running. If fewer pods are running than `replicas` then the needed pods are generated using `podTemplate`. If more pods are running than `replicas`, then excess pods are deleted.",
|
|
1738
|
|
- "properties": {
|
|
1739
|
|
- "kind": {
|
|
|
1448
|
+}</code></pre><p><strong>Example</strong>:</p><pre><code>{
|
|
|
1449
|
+ "kind": "Template",
|
|
|
1450
|
+ "id": "example1",
|
|
|
1451
|
+ "name": "My awesome PHP app",
|
|
|
1452
|
+ "description": "Example PHP application with PostgreSQL database",
|
|
|
1453
|
+ "parameters": [
|
|
|
1454
|
+ {
|
|
|
1455
|
+ "name": "DB_PASSWORD",
|
|
|
1456
|
+ "description": "PostgreSQL admin user password",
|
|
1740
|
1457
|
"type": "string",
|
|
1741
|
|
- "required": false
|
|
|
1458
|
+ "expression": "[a-zA-Z0-9]{8}"
|
|
1742
|
1459
|
},
|
|
1743
|
|
- "id": {
|
|
|
1460
|
+ {
|
|
|
1461
|
+ "name": "DB_USER",
|
|
|
1462
|
+ "description": "PostgreSQL username",
|
|
1744
|
1463
|
"type": "string",
|
|
1745
|
|
- "required": false
|
|
|
1464
|
+ "expression": "admin[a-zA-Z0-9]{4}"
|
|
1746
|
1465
|
},
|
|
1747
|
|
- "creationTimestamp": {
|
|
|
1466
|
+ {
|
|
|
1467
|
+ "name": "DB_NAME",
|
|
|
1468
|
+ "description": "PostgreSQL database name",
|
|
1748
|
1469
|
"type": "string",
|
|
1749
|
|
- "required": false
|
|
|
1470
|
+ "value": "mydb"
|
|
|
1471
|
+ }
|
|
|
1472
|
+ ],
|
|
|
1473
|
+ "items": [
|
|
|
1474
|
+ {
|
|
|
1475
|
+ "kind": "Service",
|
|
|
1476
|
+ "id": "frontend",
|
|
|
1477
|
+ "apiVersion": "v1beta1",
|
|
|
1478
|
+ "port": 8080,
|
|
|
1479
|
+ "containerPort": 9292,
|
|
|
1480
|
+ "selector": {
|
|
|
1481
|
+ "name": "frontend"
|
|
|
1482
|
+ }
|
|
1750
|
1483
|
},
|
|
1751
|
|
- "selfLink": {
|
|
1752
|
|
- "type": "string",
|
|
1753
|
|
- "required": false
|
|
|
1484
|
+ {
|
|
|
1485
|
+ "kind": "Service",
|
|
|
1486
|
+ "id": "database",
|
|
|
1487
|
+ "apiVersion": "v1beta1",
|
|
|
1488
|
+ "port": 5432,
|
|
|
1489
|
+ "containerPort": 5432,
|
|
|
1490
|
+ "selector": {
|
|
|
1491
|
+ "name": "database"
|
|
|
1492
|
+ }
|
|
1754
|
1493
|
},
|
|
1755
|
|
- "desiredState": {
|
|
1756
|
|
- "type": "object",
|
|
1757
|
|
- "required": false,
|
|
1758
|
|
- "description": "The desired configuration of the replicationController",
|
|
1759
|
|
- "properties": {
|
|
1760
|
|
- "replicas": {
|
|
1761
|
|
- "type": "number",
|
|
1762
|
|
- "required": false,
|
|
1763
|
|
- "description": "Number of pods desired in the set"
|
|
1764
|
|
- },
|
|
|
1494
|
+ {
|
|
|
1495
|
+ "kind": "ReplicationController",
|
|
|
1496
|
+ "id": "frontendController",
|
|
|
1497
|
+ "apiVersion": "v1beta1",
|
|
|
1498
|
+ "desiredState": {
|
|
|
1499
|
+ "replicas": 2,
|
|
1765
|
1500
|
"replicaSelector": {
|
|
1766
|
|
- "type": "object",
|
|
1767
|
|
- "required": false,
|
|
1768
|
|
- "description": "Required labels used to identify pods in the set"
|
|
|
1501
|
+ "name": "frontend"
|
|
1769
|
1502
|
},
|
|
1770
|
1503
|
"podTemplate": {
|
|
1771
|
|
- "type": "object",
|
|
1772
|
|
- "required": false,
|
|
1773
|
|
- "description": "Template from which to create new pods, as necessary. Identical to pod schema."
|
|
|
1504
|
+ "desiredState": {
|
|
|
1505
|
+ "manifest": {
|
|
|
1506
|
+ "id": "frontendController",
|
|
|
1507
|
+ "version": "v1beta1",
|
|
|
1508
|
+ "containers": [
|
|
|
1509
|
+ {
|
|
|
1510
|
+ "name": "nginx-php-app",
|
|
|
1511
|
+ "image": "mfojtik/nginx-php-app",
|
|
|
1512
|
+ "env": [
|
|
|
1513
|
+ {
|
|
|
1514
|
+ "name": "PGPASSWORD",
|
|
|
1515
|
+ "value": "${DB_PASSWORD}"
|
|
|
1516
|
+ },
|
|
|
1517
|
+ {
|
|
|
1518
|
+ "name": "PGUSER",
|
|
|
1519
|
+ "value": "${DB_USER}"
|
|
|
1520
|
+ },
|
|
|
1521
|
+ {
|
|
|
1522
|
+ "name": "PGDATABASE",
|
|
|
1523
|
+ "value": "${DB_NAME}"
|
|
|
1524
|
+ }
|
|
|
1525
|
+ ],
|
|
|
1526
|
+ "ports": [
|
|
|
1527
|
+ {
|
|
|
1528
|
+ "containerPort": 9292,
|
|
|
1529
|
+ "hostPort": 8080
|
|
|
1530
|
+ }
|
|
|
1531
|
+ ]
|
|
|
1532
|
+ }
|
|
|
1533
|
+ ]
|
|
|
1534
|
+ }
|
|
|
1535
|
+ },
|
|
|
1536
|
+ "labels": {
|
|
|
1537
|
+ "name": "frontend"
|
|
|
1538
|
+ }
|
|
1774
|
1539
|
}
|
|
|
1540
|
+ },
|
|
|
1541
|
+ "labels": {
|
|
|
1542
|
+ "name": "frontend"
|
|
1775
|
1543
|
}
|
|
1776
|
1544
|
},
|
|
1777
|
|
- "labels": {
|
|
1778
|
|
- "type": "object",
|
|
1779
|
|
- "required": false
|
|
|
1545
|
+ {
|
|
|
1546
|
+ "kind": "Pod",
|
|
|
1547
|
+ "id": "postgresql",
|
|
|
1548
|
+ "apiVersion": "v1beta1",
|
|
|
1549
|
+ "desiredState": {
|
|
|
1550
|
+ "manifest": {
|
|
|
1551
|
+ "version": "v1beta1",
|
|
|
1552
|
+ "id": "database",
|
|
|
1553
|
+ "containers": [
|
|
|
1554
|
+ {
|
|
|
1555
|
+ "name": "postgresql",
|
|
|
1556
|
+ "image": "postgres",
|
|
|
1557
|
+ "env": [
|
|
|
1558
|
+ {
|
|
|
1559
|
+ "name": "PGPASSWORD",
|
|
|
1560
|
+ "value": "${DB_PASSWORD}"
|
|
|
1561
|
+ },
|
|
|
1562
|
+ {
|
|
|
1563
|
+ "name": "PGUSER",
|
|
|
1564
|
+ "value": "${DB_USER}"
|
|
|
1565
|
+ },
|
|
|
1566
|
+ {
|
|
|
1567
|
+ "name": "PGDATABASE",
|
|
|
1568
|
+ "value": "${DB_NAME}"
|
|
|
1569
|
+ }
|
|
|
1570
|
+ ],
|
|
|
1571
|
+ "ports": [
|
|
|
1572
|
+ {
|
|
|
1573
|
+ "containerPort": 5432,
|
|
|
1574
|
+ "hostPort": 5432
|
|
|
1575
|
+ }
|
|
|
1576
|
+ ]
|
|
|
1577
|
+ }
|
|
|
1578
|
+ ]
|
|
|
1579
|
+ }
|
|
|
1580
|
+ },
|
|
|
1581
|
+ "labels": {
|
|
|
1582
|
+ "name": "database"
|
|
|
1583
|
+ }
|
|
1780
|
1584
|
}
|
|
1781
|
|
- }
|
|
1782
|
|
-}
|
|
1783
|
|
-</code></pre><p><strong>Example</strong>:</p><pre><code> {
|
|
1784
|
|
- "id": "nginxController",
|
|
1785
|
|
- "desiredState": {
|
|
1786
|
|
- "replicas": 2,
|
|
1787
|
|
- "replicaSelector": {"name": "nginx"},
|
|
1788
|
|
- "podTemplate": {
|
|
1789
|
|
- "desiredState": {
|
|
1790
|
|
- "manifest": {
|
|
1791
|
|
- "version": "v1beta1",
|
|
1792
|
|
- "id": "nginxController",
|
|
1793
|
|
- "containers": [{
|
|
1794
|
|
- "name": "nginx",
|
|
1795
|
|
- "image": "dockerfile/nginx",
|
|
1796
|
|
- "ports": [{"containerPort": 80, "hostPort": 8080}]
|
|
1797
|
|
- }]
|
|
1798
|
|
- }
|
|
1799
|
|
- },
|
|
1800
|
|
- "labels": {"name": "nginx"}
|
|
1801
|
|
- }},
|
|
1802
|
|
- "labels": {"name": "nginx"}
|
|
1803
|
|
- }
|
|
1804
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_replicationControllers__controllerId__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/replicationControllers</span>/{controllerId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific controller</p></div><ul class="nav nav-tabs"><li class=active><a href=#_replicationControllers__controllerId__delete_request data-toggle=tab>Request</a></li><li><a href=#_replicationControllers__controllerId__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_replicationControllers__controllerId__delete_request><h3>URI Parameters</h3><ul><li><strong>controllerId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_replicationControllers__controllerId__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
1585
|
+ ]
|
|
|
1586
|
+}</code></pre></div><div class=tab-pane id=_templates_post_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1805
|
1587
|
"apiVersion": "v1beta1",
|
|
1806
|
1588
|
"creationTimestamp": null,
|
|
1807
|
1589
|
"kind": "Status",
|
|
1808
|
1590
|
"status": "success"
|
|
1809
|
1591
|
}
|
|
1810
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class=panel-heading><h3 id=_lbservices class=panel-title>/lbservices</h3></div><div class=panel-body><div class=panel-group><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__lbservices><span class=parent></span>/lbservices</a> <span class=methods><a href=# data-toggle=modal data-target=#_lbservices_get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_lbservices_post><span class="badge badge_post">post</span></a></span></h4></div><div id=panel__lbservices class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_lbservices_get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>List all services on this cluster</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_lbservices_post class=list-group-item><span class="badge badge_post">post</span><div class=method_description><p>Create a new service</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_lbservices_get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent></span>/lbservices</h4></div><div class=modal-body><div class="alert alert-info"><p>List all services on this cluster</p></div><ul class="nav nav-tabs"><li class=active><a href=#_lbservices_get_request data-toggle=tab>Request</a></li><li><a href=#_lbservices_get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_lbservices_get_request></div><div class=tab-pane id=_lbservices_get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1811
|
|
- "items": [
|
|
1812
|
|
- {
|
|
1813
|
|
- "id": "example1",
|
|
1814
|
|
- "port": 8000,
|
|
1815
|
|
- "labels": {
|
|
1816
|
|
- "name": "nginx"
|
|
1817
|
|
- }
|
|
1818
|
|
- "selector": {
|
|
1819
|
|
- "name": "nginx"
|
|
1820
|
|
- }
|
|
1821
|
|
- },
|
|
1822
|
|
- {
|
|
1823
|
|
- "id": "example2",
|
|
1824
|
|
- "port": 8080,
|
|
1825
|
|
- "labels": {
|
|
1826
|
|
- "env": "prod",
|
|
1827
|
|
- "name": "jetty"
|
|
1828
|
|
- }
|
|
1829
|
|
- "selector": {
|
|
1830
|
|
- "env": "prod",
|
|
1831
|
|
- "name": "jetty"
|
|
1832
|
|
- }
|
|
1833
|
|
- }
|
|
1834
|
|
- ]
|
|
1835
|
|
-}
|
|
1836
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_lbservices_post><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_post">post</span> <span class=parent></span>/lbservices</h4></div><div class=modal-body><div class="alert alert-info"><p>Create a new service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_lbservices_post_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_lbservices_post_request><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
1837
|
|
- "$schema": "http://json-schema.org/draft-03/schema",
|
|
1838
|
|
- "type": "object",
|
|
1839
|
|
- "required": false,
|
|
1840
|
|
- "description": "A service resource.",
|
|
1841
|
|
- "properties": {
|
|
1842
|
|
- "kind": {
|
|
1843
|
|
- "type": "string",
|
|
1844
|
|
- "required": false
|
|
1845
|
|
- },
|
|
1846
|
|
- "id": {
|
|
1847
|
|
- "type": "string",
|
|
1848
|
|
- "required": false
|
|
1849
|
|
- },
|
|
1850
|
|
- "creationTimestamp": {
|
|
|
1592
|
+</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__templates__templateID_><span class=parent>/templates</span>/{templateID}</a> <span class=methods><a href=# data-toggle=modal data-target=#_templates__templateID__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_templates__templateID__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_templates__templateID__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__templates__templateID_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_templates__templateID__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific template.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_templates__templateID__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a specific template.</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_templates__templateID__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific template.</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_templates__templateID__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/templates</span>/{templateID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific template.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_templates__templateID__get_request data-toggle=tab>Request</a></li><li><a href=#_templates__templateID__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_templates__templateID__get_request><h3>URI Parameters</h3><ul><li><strong>templateID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_templates__templateID__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
1593
|
+ "kind": "Template",
|
|
|
1594
|
+ "id": "example1",
|
|
|
1595
|
+ "name": "My awesome PHP app",
|
|
|
1596
|
+ "description": "Example PHP application with PostgreSQL database",
|
|
|
1597
|
+ "parameters": [
|
|
|
1598
|
+ {
|
|
|
1599
|
+ "name": "DB_PASSWORD",
|
|
|
1600
|
+ "description": "PostgreSQL admin user password",
|
|
1851
|
1601
|
"type": "string",
|
|
1852
|
|
- "required": false
|
|
|
1602
|
+ "expression": "[a-zA-Z0-9]{8}"
|
|
1853
|
1603
|
},
|
|
1854
|
|
- "selfLink": {
|
|
|
1604
|
+ {
|
|
|
1605
|
+ "name": "DB_USER",
|
|
|
1606
|
+ "description": "PostgreSQL username",
|
|
1855
|
1607
|
"type": "string",
|
|
1856
|
|
- "required": false
|
|
|
1608
|
+ "expression": "admin[a-zA-Z0-9]{4}"
|
|
1857
|
1609
|
},
|
|
1858
|
|
- "name": {
|
|
|
1610
|
+ {
|
|
|
1611
|
+ "name": "DB_NAME",
|
|
|
1612
|
+ "description": "PostgreSQL database name",
|
|
1859
|
1613
|
"type": "string",
|
|
1860
|
|
- "required": false
|
|
1861
|
|
- },
|
|
1862
|
|
- "port": {
|
|
1863
|
|
- "type": "number",
|
|
1864
|
|
- "required": false
|
|
1865
|
|
- },
|
|
1866
|
|
- "labels": {
|
|
1867
|
|
- "type": "object",
|
|
1868
|
|
- "required": false
|
|
1869
|
|
- },
|
|
1870
|
|
- "selector": {
|
|
1871
|
|
- "type": "object",
|
|
1872
|
|
- "required": false
|
|
|
1614
|
+ "value": "mydb"
|
|
1873
|
1615
|
}
|
|
1874
|
|
- }
|
|
1875
|
|
-}
|
|
1876
|
|
-</code></pre><p><strong>Example</strong>:</p><pre><code>{
|
|
1877
|
|
- "id": "example",
|
|
1878
|
|
- "port": 8000,
|
|
1879
|
|
- "labels": {
|
|
1880
|
|
- "name": "nginx"
|
|
1881
|
|
- },
|
|
1882
|
|
- "selector": {
|
|
1883
|
|
- "name": "nginx"
|
|
1884
|
|
- }
|
|
1885
|
|
-}
|
|
1886
|
|
-</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class=panel-heading><h4 class=panel-title><a class=collapsed data-toggle=collapse href=#panel__lbservices__serviceId_><span class=parent>/lbservices</span>/{serviceId}</a> <span class=methods><a href=# data-toggle=modal data-target=#_lbservices__serviceId__get><span class="badge badge_get">get</span></a> <a href=# data-toggle=modal data-target=#_lbservices__serviceId__put><span class="badge badge_put">put</span></a> <a href=# data-toggle=modal data-target=#_lbservices__serviceId__delete><span class="badge badge_delete">delete</span></a></span></h4></div><div id=panel__lbservices__serviceId_ class="panel-collapse collapse"><div class=panel-body><div class=list-group><div data-toggle=modal data-target=#_lbservices__serviceId__get class=list-group-item><span class="badge badge_get">get</span><div class=method_description><p>Get a specific service</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_lbservices__serviceId__put class=list-group-item><span class="badge badge_put">put</span><div class=method_description><p>Update a service</p></div><div class=clearfix></div></div><div data-toggle=modal data-target=#_lbservices__serviceId__delete class=list-group-item><span class="badge badge_delete">delete</span><div class=method_description><p>Delete a specific service</p></div><div class=clearfix></div></div></div></div></div><div class="modal fade" tabindex=0 id=_lbservices__serviceId__get><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_get">get</span> <span class=parent>/lbservices</span>/{serviceId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Get a specific service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_lbservices__serviceId__get_request data-toggle=tab>Request</a></li><li><a href=#_lbservices__serviceId__get_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_lbservices__serviceId__get_request><h3>URI Parameters</h3><ul><li><strong>serviceId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_lbservices__serviceId__get_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1887
|
|
- "data":
|
|
1888
|
|
- {
|
|
1889
|
|
- "id": "53c4249f076573c0f4000001",
|
|
1890
|
|
- "name": "service-name",
|
|
1891
|
|
- "domain": "domain-id",
|
|
1892
|
|
- "desiredState":
|
|
|
1616
|
+ ],
|
|
|
1617
|
+ "items": [
|
|
1893
|
1618
|
{
|
|
1894
|
|
- "replicas": 3,
|
|
1895
|
|
- "replicaSelector": { "name": "service-name" },
|
|
1896
|
|
- "replicaPolicy": {
|
|
1897
|
|
- "atLeast": 2
|
|
1898
|
|
- },
|
|
1899
|
|
- "activeDeployment": "a_deployment_id",
|
|
1900
|
|
- "podTemplate":
|
|
1901
|
|
- {
|
|
1902
|
|
- "desiredState":
|
|
1903
|
|
- {
|
|
1904
|
|
- "image": "server/domain/name",
|
|
1905
|
|
- "network-ports": [
|
|
1906
|
|
- {
|
|
1907
|
|
- "hostPort": 8080,
|
|
1908
|
|
- "containerPort": 80
|
|
1909
|
|
- }
|
|
1910
|
|
- ],
|
|
1911
|
|
- "owner": true
|
|
1912
|
|
- },
|
|
1913
|
|
- "labels": {
|
|
1914
|
|
- "name": "service-name"
|
|
1915
|
|
- }
|
|
|
1619
|
+ "kind": "Service",
|
|
|
1620
|
+ "id": "frontend",
|
|
|
1621
|
+ "apiVersion": "v1beta1",
|
|
|
1622
|
+ "port": 8080,
|
|
|
1623
|
+ "containerPort": 9292,
|
|
|
1624
|
+ "selector": {
|
|
|
1625
|
+ "name": "frontend"
|
|
1916
|
1626
|
}
|
|
1917
|
|
- }
|
|
1918
|
|
- }
|
|
1919
|
|
-}
|
|
1920
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_lbservices__serviceId__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/lbservices</span>/{serviceId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_lbservices__serviceId__put_request data-toggle=tab>Request</a></li></ul><div class=tab-content><div class="tab-pane active" id=_lbservices__serviceId__put_request><h3>URI Parameters</h3><ul><li><strong>serviceId</strong>: <em>required (string)</em></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
|
|
1921
|
|
- "$schema": "http://json-schema.org/draft-03/schema",
|
|
1922
|
|
- "type": "object",
|
|
1923
|
|
- "required": false,
|
|
1924
|
|
- "description": "A service resource.",
|
|
1925
|
|
- "properties": {
|
|
1926
|
|
- "kind": {
|
|
1927
|
|
- "type": "string",
|
|
1928
|
|
- "required": false
|
|
1929
|
1627
|
},
|
|
1930
|
|
- "id": {
|
|
1931
|
|
- "type": "string",
|
|
1932
|
|
- "required": false
|
|
1933
|
|
- },
|
|
1934
|
|
- "creationTimestamp": {
|
|
1935
|
|
- "type": "string",
|
|
1936
|
|
- "required": false
|
|
1937
|
|
- },
|
|
1938
|
|
- "selfLink": {
|
|
1939
|
|
- "type": "string",
|
|
1940
|
|
- "required": false
|
|
1941
|
|
- },
|
|
1942
|
|
- "name": {
|
|
1943
|
|
- "type": "string",
|
|
1944
|
|
- "required": false
|
|
1945
|
|
- },
|
|
1946
|
|
- "port": {
|
|
1947
|
|
- "type": "number",
|
|
1948
|
|
- "required": false
|
|
|
1628
|
+ {
|
|
|
1629
|
+ "kind": "Service",
|
|
|
1630
|
+ "id": "database",
|
|
|
1631
|
+ "apiVersion": "v1beta1",
|
|
|
1632
|
+ "port": 5432,
|
|
|
1633
|
+ "containerPort": 5432,
|
|
|
1634
|
+ "selector": {
|
|
|
1635
|
+ "name": "database"
|
|
|
1636
|
+ }
|
|
1949
|
1637
|
},
|
|
1950
|
|
- "labels": {
|
|
1951
|
|
- "type": "object",
|
|
1952
|
|
- "required": false
|
|
|
1638
|
+ {
|
|
|
1639
|
+ "kind": "ReplicationController",
|
|
|
1640
|
+ "id": "frontendController",
|
|
|
1641
|
+ "apiVersion": "v1beta1",
|
|
|
1642
|
+ "desiredState": {
|
|
|
1643
|
+ "replicas": 2,
|
|
|
1644
|
+ "replicaSelector": {
|
|
|
1645
|
+ "name": "frontend"
|
|
|
1646
|
+ },
|
|
|
1647
|
+ "podTemplate": {
|
|
|
1648
|
+ "desiredState": {
|
|
|
1649
|
+ "manifest": {
|
|
|
1650
|
+ "id": "frontendController",
|
|
|
1651
|
+ "version": "v1beta1",
|
|
|
1652
|
+ "containers": [
|
|
|
1653
|
+ {
|
|
|
1654
|
+ "name": "nginx-php-app",
|
|
|
1655
|
+ "image": "mfojtik/nginx-php-app",
|
|
|
1656
|
+ "env": [
|
|
|
1657
|
+ {
|
|
|
1658
|
+ "name": "PGPASSWORD",
|
|
|
1659
|
+ "value": "${DB_PASSWORD}"
|
|
|
1660
|
+ },
|
|
|
1661
|
+ {
|
|
|
1662
|
+ "name": "PGUSER",
|
|
|
1663
|
+ "value": "${DB_USER}"
|
|
|
1664
|
+ },
|
|
|
1665
|
+ {
|
|
|
1666
|
+ "name": "PGDATABASE",
|
|
|
1667
|
+ "value": "${DB_NAME}"
|
|
|
1668
|
+ }
|
|
|
1669
|
+ ],
|
|
|
1670
|
+ "ports": [
|
|
|
1671
|
+ {
|
|
|
1672
|
+ "containerPort": 9292,
|
|
|
1673
|
+ "hostPort": 8080
|
|
|
1674
|
+ }
|
|
|
1675
|
+ ]
|
|
|
1676
|
+ }
|
|
|
1677
|
+ ]
|
|
|
1678
|
+ }
|
|
|
1679
|
+ },
|
|
|
1680
|
+ "labels": {
|
|
|
1681
|
+ "name": "frontend"
|
|
|
1682
|
+ }
|
|
|
1683
|
+ }
|
|
|
1684
|
+ },
|
|
|
1685
|
+ "labels": {
|
|
|
1686
|
+ "name": "frontend"
|
|
|
1687
|
+ }
|
|
1953
|
1688
|
},
|
|
1954
|
|
- "selector": {
|
|
1955
|
|
- "type": "object",
|
|
1956
|
|
- "required": false
|
|
1957
|
|
- }
|
|
1958
|
|
- }
|
|
1959
|
|
-}
|
|
1960
|
|
-</code></pre><p><strong>Example</strong>:</p><pre><code>{
|
|
1961
|
|
- "data":
|
|
1962
|
|
- {
|
|
1963
|
|
- "id": "53c4249f076573c0f4000001",
|
|
1964
|
|
- "name": "service-name",
|
|
1965
|
|
- "domain": "domain-id",
|
|
1966
|
|
- "desiredState":
|
|
1967
|
1689
|
{
|
|
1968
|
|
- "replicas": 3,
|
|
1969
|
|
- "replicaSelector": { "name": "service-name" },
|
|
1970
|
|
- "replicaPolicy": {
|
|
1971
|
|
- "atLeast": 2
|
|
|
1690
|
+ "kind": "Pod",
|
|
|
1691
|
+ "id": "postgresql",
|
|
|
1692
|
+ "apiVersion": "v1beta1",
|
|
|
1693
|
+ "desiredState": {
|
|
|
1694
|
+ "manifest": {
|
|
|
1695
|
+ "version": "v1beta1",
|
|
|
1696
|
+ "id": "database",
|
|
|
1697
|
+ "containers": [
|
|
|
1698
|
+ {
|
|
|
1699
|
+ "name": "postgresql",
|
|
|
1700
|
+ "image": "postgres",
|
|
|
1701
|
+ "env": [
|
|
|
1702
|
+ {
|
|
|
1703
|
+ "name": "PGPASSWORD",
|
|
|
1704
|
+ "value": "${DB_PASSWORD}"
|
|
|
1705
|
+ },
|
|
|
1706
|
+ {
|
|
|
1707
|
+ "name": "PGUSER",
|
|
|
1708
|
+ "value": "${DB_USER}"
|
|
|
1709
|
+ },
|
|
|
1710
|
+ {
|
|
|
1711
|
+ "name": "PGDATABASE",
|
|
|
1712
|
+ "value": "${DB_NAME}"
|
|
|
1713
|
+ }
|
|
|
1714
|
+ ],
|
|
|
1715
|
+ "ports": [
|
|
|
1716
|
+ {
|
|
|
1717
|
+ "containerPort": 5432,
|
|
|
1718
|
+ "hostPort": 5432
|
|
|
1719
|
+ }
|
|
|
1720
|
+ ]
|
|
|
1721
|
+ }
|
|
|
1722
|
+ ]
|
|
|
1723
|
+ }
|
|
1972
|
1724
|
},
|
|
1973
|
|
- "activeDeployment": "a_deployment_id",
|
|
1974
|
|
- "podTemplate":
|
|
1975
|
|
- {
|
|
1976
|
|
- "desiredState":
|
|
1977
|
|
- {
|
|
1978
|
|
- "image": "server/domain/name",
|
|
1979
|
|
- "network-ports": [
|
|
1980
|
|
- {
|
|
1981
|
|
- "hostPort": 8080,
|
|
1982
|
|
- "containerPort": 80
|
|
1983
|
|
- }
|
|
1984
|
|
- ],
|
|
1985
|
|
- "owner": true
|
|
1986
|
|
- },
|
|
1987
|
|
- "labels": {
|
|
1988
|
|
- "name": "service-name"
|
|
1989
|
|
- }
|
|
|
1725
|
+ "labels": {
|
|
|
1726
|
+ "name": "database"
|
|
1990
|
1727
|
}
|
|
1991
|
1728
|
}
|
|
1992
|
|
- }
|
|
|
1729
|
+ ]
|
|
|
1730
|
+}</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_templates__templateID__put><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_put">put</span> <span class=parent>/templates</span>/{templateID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Update a specific template.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_templates__templateID__put_request data-toggle=tab>Request</a></li><li><a href=#_templates__templateID__put_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_templates__templateID__put_request><h3>URI Parameters</h3><ul><li><strong>templateID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_templates__templateID__put_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
1731
|
+ "apiVersion": "v1beta1",
|
|
|
1732
|
+ "creationTimestamp": null,
|
|
|
1733
|
+ "kind": "Status",
|
|
|
1734
|
+ "status": "success"
|
|
1993
|
1735
|
}
|
|
1994
|
|
-</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_lbservices__serviceId__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/lbservices</span>/{serviceId}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific service</p></div><ul class="nav nav-tabs"><li class=active><a href=#_lbservices__serviceId__delete_request data-toggle=tab>Request</a></li><li><a href=#_lbservices__serviceId__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_lbservices__serviceId__delete_request><h3>URI Parameters</h3><ul><li><strong>serviceId</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_lbservices__serviceId__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
|
1736
|
+</code></pre></div></div></div></div></div></div><div class="modal fade" tabindex=0 id=_templates__templateID__delete><div class=modal-dialog><div class=modal-content><div class=modal-header><button type=button class=close data-dismiss=modal aria-hidden=true>×</button><h4 class=modal-title id=myModalLabel><span class="badge badge_delete">delete</span> <span class=parent>/templates</span>/{templateID}</h4></div><div class=modal-body><div class="alert alert-info"><p>Delete a specific template.</p></div><ul class="nav nav-tabs"><li class=active><a href=#_templates__templateID__delete_request data-toggle=tab>Request</a></li><li><a href=#_templates__templateID__delete_response data-toggle=tab>Response</a></li></ul><div class=tab-content><div class="tab-pane active" id=_templates__templateID__delete_request><h3>URI Parameters</h3><ul><li><strong>templateID</strong>: <em>required (string)</em></li></ul></div><div class=tab-pane id=_templates__templateID__delete_response><h2>HTTP status code <a href=http://httpstatus.es/200 target=_blank>200</a></h2><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
|
|
1995
|
1737
|
"apiVersion": "v1beta1",
|
|
1996
|
1738
|
"creationTimestamp": null,
|
|
1997
|
1739
|
"kind": "Status",
|
|
1998
|
1740
|
"status": "success"
|
|
1999
|
1741
|
}
|
|
2000
|
|
-</code></pre></div></div></div></div></div></div></div></div></div></div></div><div class=col-md-3><div id=sidebar class="hidden-print affix" role=complementary><ul class="nav nav-pills nav-stacked"><li><a href=#_projects>/projects</a></li><li><a href=#_project__projectID_>/project/{projectID}</a></li><li><a href=#_imageRepositories>/imageRepositories</a></li><li><a href=#_imageRepositories__repositoryID_>/imageRepositories/{repositoryID}</a></li><li><a href=#_images>/images</a></li><li><a href=#_images__imageID_>/images/{imageID}</a></li><li><a href=#_imageRepositoryMappings>/imageRepositoryMappings</a></li><li><a href=#_services>/services</a></li><li><a href=#_service__serviceID_>/service/{serviceID}</a></li><li><a href=#_deployments>/deployments</a></li><li><a href=#_deployment__deploymentID_>/deployment/{deploymentID}</a></li><li><a href=#_links>/links</a></li><li><a href=#_link__linkID_>/link/{linkID}</a></li><li><a href=#_aliases>/aliases</a></li><li><a href=#_alias__aliasID_>/alias/{aliasID}</a></li><li><a href=#_builds>/builds</a></li><li><a href=#_builds__buildId_>/builds/{buildId}</a></li><li><a href=#_buildConfigs>/buildConfigs</a></li><li><a href=#_buildConfigs__configId_>/buildConfigs/{configId}</a></li><li><a href=#_buildConfigHooks__buildId___secret___plugin_>/buildConfigHooks/{buildId}/{secret}/{plugin}</a></li><li><a href=#_templates>/templates</a></li><li><a href=#_template__templateID_>/template/{templateID}</a></li><li><a href=#_pods>/pods</a></li><li><a href=#_replicationControllers>/replicationControllers</a></li><li><a href=#_lbservices>/lbservices</a></li></ul></div></div></div></div></body></html>
|
|
2001
|
1742
|
\ No newline at end of file
|
|
|
1743
|
+</code></pre></div></div></div></div></div></div></div></div></div></div></div><div class=col-md-3><div id=sidebar class="hidden-print affix" role=complementary><ul class="nav nav-pills nav-stacked"><li><a href=#_aliases>/aliases (NOT IMPLEMENTED)</a></li><li><a href=#_buildConfigHooks__buildID___secret___plugin_>/buildConfigHooks/{buildID}/{secret}/{plugin}</a></li><li><a href=#_buildConfigs>/buildConfigs</a></li><li><a href=#_builds>/builds</a></li><li><a href=#_configs>/configs (NOT IMPLEMENTED)</a></li><li><a href=#_deploymentConfigs>/deploymentConfigs</a></li><li><a href=#_deployments>/deployments</a></li><li><a href=#_imageRepositories>/imageRepositories</a></li><li><a href=#_imageRepositoryMappings>/imageRepositoryMappings</a></li><li><a href=#_images>/images</a></li><li><a href=#_links>/links (NOT IMPLEMENTED)</a></li><li><a href=#_projects>/projects (NOT IMPLEMENTED)</a></li><li><a href=#_templateConfigs>/templateConfigs</a></li><li><a href=#_templates>/templates (NOT IMPLEMENTED)</a></li></ul></div></div></div></div></body></html>
|
|
2002
|
1744
|
\ No newline at end of file
|