File tree Expand file tree Collapse file tree
src/reference-guide/controller-api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9090 - Controller API v2.0 : reference-guide/controller-api/v2.0.md
9191 - Controller API v2.1 : reference-guide/controller-api/v2.1.md
9292 - Controller API v2.2 : reference-guide/controller-api/v2.2.md
93+ - Controller API v2.3 : reference-guide/controller-api/v2.3.md
9394 - Changelogs :
9495 - v2.0.0 : changelogs/v2.0.0.md
9596 - v2.1.0 : changelogs/v2.1.0.md
Original file line number Diff line number Diff line change @@ -576,6 +576,67 @@ DEIS_API_VERSION: 2.3
576576DEIS_PLATFORM_VERSION: 2.3.0
577577```
578578
579+ ### Enable or disable TLS
580+
581+ Example Request:
582+
583+ ```
584+ POST /v2/apps/example-go/tls/ HTTP/1.1
585+ Host: deis.example.com
586+ Content-Type: application/json
587+ Authorization: token abc123
588+
589+ {
590+ "https_enforced": true
591+ }
592+ ```
593+
594+ Example Response:
595+
596+ ```
597+ HTTP/1.1 201 CREATED
598+ DEIS_API_VERSION: 2.3
599+ DEIS_PLATFORM_VERSION: 2.3.0
600+ Content-Type: application/json
601+
602+ {
603+ "created": "2014-01-01T00:00:00UTC",
604+ "app": "example-go",
605+ "owner": "test",
606+ "https_enforced": true,
607+ "updated": "2014-01-01T00:00:00UTC",
608+ "uuid": "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75"
609+ }
610+ ```
611+
612+ ### Get TLS status
613+
614+ Example Request:
615+
616+ ```
617+ GET /v2/apps/example-go/tls/ HTTP/1.1
618+ Host: deis.example.com
619+ Authorization: token abc123
620+ ```
621+
622+ Example Response:
623+
624+ ```
625+ HTTP/1.1 200 OK
626+ DEIS_API_VERSION: 2.3
627+ DEIS_PLATFORM_VERSION: 2.3.0
628+ Content-Type: application/json
629+
630+ {
631+ "created": "2014-01-01T00:00:00UTC",
632+ "app": "example-go",
633+ "owner": "test",
634+ "https_enforced": false,
635+ "updated": "2014-01-01T00:00:00UTC",
636+ "uuid": "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75"
637+ }
638+ ```
639+
579640## Pods
580641
581642### List all Pods
You can’t perform that action at this time.
0 commit comments