v1.DeploymentConfig

Description

Deployment Configs define the template for a pod and manages deploying new images or configuration changes. A single deployment configuration is usually analogous to a single micro-service. Can support many different deployment patterns, including full restart, customizable rolling updates, and fully custom behaviors, as well as pre- and post- deployment hooks. Each individual deployment is represented as a replication controller.

A deployment is “triggered” when its configuration is changed or a tag in an Image Stream is changed. Triggers can be disabled to allow manual control over a deployment. The “strategy” determines how the deployment is carried out and may be changed at any time. The latestVersion field is updated when a new deployment is triggered by any means.

Object Schema

Expand or mouse-over a field for more information about it.

  1. apiVersion:
  2. kind:
  3. metadata:
  4. annotations:
  5. [string]:
  6. clusterName:
  7. creationTimestamp:
  8. deletionGracePeriodSeconds:
  9. deletionTimestamp:
  10. finalizers:
  11. - [string]:
  12. generateName:
  13. generation:
  14. initializers:
  15. pending:
  16. - name:
  17. result:
  18. apiVersion:
  19. code:
  20. details:
  21. causes:
  22. - field:
  23. message:
  24. reason:
  25. group:
  26. kind:
  27. name:
  28. retryAfterSeconds:
  29. uid:
  30. kind:
  31. message:
  32. metadata:
  33. resourceVersion:
  34. selfLink:
  35. reason:
  36. status:
  37. labels:
  38. [string]:
  39. name:
  40. namespace:
  41. ownerReferences:
  42. - apiVersion:
  43. blockOwnerDeletion:
  44. controller:
  45. kind:
  46. name:
  47. uid:
  48. resourceVersion:
  49. selfLink:
  50. uid:
  51. spec:
  52. minReadySeconds:
  53. paused:
  54. replicas:
  55. revisionHistoryLimit:
  56. selector:
  57. [string]:
  58. strategy:
  59. activeDeadlineSeconds:
  60. annotations:
  61. [string]:
  62. customParams:
  63. command:
  64. - [string]:
  65. environment:
  66. - name:
  67. value:
  68. valueFrom:
  69. configMapKeyRef:
  70. key:
  71. name:
  72. optional:
  73. fieldRef:
  74. apiVersion:
  75. fieldPath:
  76. resourceFieldRef:
  77. containerName:
  78. divisor:
  79. resource:
  80. secretKeyRef:
  81. key:
  82. name:
  83. optional:
  84. image:
  85. labels:
  86. [string]:
  87. recreateParams:
  88. mid:
  89. execNewPod:
  90. command:
  91. - [string]:
  92. containerName:
  93. env:
  94. - name:
  95. value:
  96. valueFrom:
  97. configMapKeyRef:
  98. key:
  99. name:
  100. optional:
  101. fieldRef:
  102. apiVersion:
  103. fieldPath:
  104. resourceFieldRef:
  105. containerName:
  106. divisor:
  107. resource:
  108. secretKeyRef:
  109. key:
  110. name:
  111. optional:
  112. volumes:
  113. - [string]:
  114. failurePolicy:
  115. tagImages:
  116. - containerName:
  117. to:
  118. apiVersion:
  119. fieldPath:
  120. kind:
  121. name:
  122. namespace:
  123. resourceVersion:
  124. uid:
  125. post:
  126. execNewPod:
  127. command:
  128. - [string]:
  129. containerName:
  130. env:
  131. - name:
  132. value:
  133. valueFrom:
  134. configMapKeyRef:
  135. key:
  136. name:
  137. optional:
  138. fieldRef:
  139. apiVersion:
  140. fieldPath:
  141. resourceFieldRef:
  142. containerName:
  143. divisor:
  144. resource:
  145. secretKeyRef:
  146. key:
  147. name:
  148. optional:
  149. volumes:
  150. - [string]:
  151. failurePolicy:
  152. tagImages:
  153. - containerName:
  154. to:
  155. apiVersion:
  156. fieldPath:
  157. kind:
  158. name:
  159. namespace:
  160. resourceVersion:
  161. uid:
  162. pre:
  163. execNewPod:
  164. command:
  165. - [string]:
  166. containerName:
  167. env:
  168. - name:
  169. value:
  170. valueFrom:
  171. configMapKeyRef:
  172. key:
  173. name:
  174. optional:
  175. fieldRef:
  176. apiVersion:
  177. fieldPath:
  178. resourceFieldRef:
  179. containerName:
  180. divisor:
  181. resource:
  182. secretKeyRef:
  183. key:
  184. name:
  185. optional:
  186. volumes:
  187. - [string]:
  188. failurePolicy:
  189. tagImages:
  190. - containerName:
  191. to:
  192. apiVersion:
  193. fieldPath:
  194. kind:
  195. name:
  196. namespace:
  197. resourceVersion:
  198. uid:
  199. timeoutSeconds:
  200. resources:
  201. limits:
  202. [string]:
  203. requests:
  204. [string]:
  205. rollingParams:
  206. intervalSeconds:
  207. maxSurge:
  208. maxUnavailable:
  209. post:
  210. execNewPod:
  211. command:
  212. - [string]:
  213. containerName:
  214. env:
  215. - name:
  216. value:
  217. valueFrom:
  218. configMapKeyRef:
  219. key:
  220. name:
  221. optional:
  222. fieldRef:
  223. apiVersion:
  224. fieldPath:
  225. resourceFieldRef:
  226. containerName:
  227. divisor:
  228. resource:
  229. secretKeyRef:
  230. key:
  231. name:
  232. optional:
  233. volumes:
  234. - [string]:
  235. failurePolicy:
  236. tagImages:
  237. - containerName:
  238. to:
  239. apiVersion:
  240. fieldPath:
  241. kind:
  242. name:
  243. namespace:
  244. resourceVersion:
  245. uid:
  246. pre:
  247. execNewPod:
  248. command:
  249. - [string]:
  250. containerName:
  251. env:
  252. - name:
  253. value:
  254. valueFrom:
  255. configMapKeyRef:
  256. key:
  257. name:
  258. optional:
  259. fieldRef:
  260. apiVersion:
  261. fieldPath:
  262. resourceFieldRef:
  263. containerName:
  264. divisor:
  265. resource:
  266. secretKeyRef:
  267. key:
  268. name:
  269. optional:
  270. volumes:
  271. - [string]:
  272. failurePolicy:
  273. tagImages:
  274. - containerName:
  275. to:
  276. apiVersion:
  277. fieldPath:
  278. kind:
  279. name:
  280. namespace:
  281. resourceVersion:
  282. uid:
  283. timeoutSeconds:
  284. updatePeriodSeconds:
  285. type:
  286. template:
  287. metadata:
  288. annotations:
  289. [string]:
  290. clusterName:
  291. creationTimestamp:
  292. deletionGracePeriodSeconds:
  293. deletionTimestamp:
  294. finalizers:
  295. - [string]:
  296. generateName:
  297. generation:
  298. initializers:
  299. pending:
  300. - name:
  301. result:
  302. apiVersion:
  303. code:
  304. details:
  305. causes:
  306. - field:
  307. message:
  308. reason:
  309. group:
  310. kind:
  311. name:
  312. retryAfterSeconds:
  313. uid:
  314. kind:
  315. message:
  316. metadata:
  317. resourceVersion:
  318. selfLink:
  319. reason:
  320. status:
  321. labels:
  322. [string]:
  323. name:
  324. namespace:
  325. ownerReferences:
  326. - apiVersion:
  327. blockOwnerDeletion:
  328. controller:
  329. kind:
  330. name:
  331. uid:
  332. resourceVersion:
  333. selfLink:
  334. uid:
  335. spec:
  336. activeDeadlineSeconds:
  337. affinity:
  338. nodeAffinity:
  339. preferredDuringSchedulingIgnoredDuringExecution:
  340. - preference:
  341. - matchExpressions:
  342. - - key:
  343. operator:
  344. values:
  345. - [string]:
  346. weight:
  347. requiredDuringSchedulingIgnoredDuringExecution:
  348. nodeSelectorTerms:
  349. - matchExpressions:
  350. - - key:
  351. operator:
  352. values:
  353. - [string]:
  354. podAffinity:
  355. preferredDuringSchedulingIgnoredDuringExecution:
  356. - podAffinityTerm:
  357. - labelSelector:
  358. - matchExpressions:
  359. - - key:
  360. operator:
  361. values:
  362. - [string]:
  363. matchLabels:
  364. [string]:
  365. namespaces:
  366. - [string]:
  367. topologyKey:
  368. weight:
  369. requiredDuringSchedulingIgnoredDuringExecution:
  370. - labelSelector:
  371. - matchExpressions:
  372. - - key:
  373. operator:
  374. values:
  375. - [string]:
  376. matchLabels:
  377. [string]:
  378. namespaces:
  379. - [string]:
  380. topologyKey:
  381. podAntiAffinity:
  382. preferredDuringSchedulingIgnoredDuringExecution:
  383. - podAffinityTerm:
  384. - labelSelector:
  385. - matchExpressions:
  386. - - key:
  387. operator:
  388. values:
  389. - [string]:
  390. matchLabels:
  391. [string]:
  392. namespaces:
  393. - [string]:
  394. topologyKey:
  395. weight:
  396. requiredDuringSchedulingIgnoredDuringExecution:
  397. - labelSelector:
  398. - matchExpressions:
  399. - - key:
  400. operator:
  401. values:
  402. - [string]:
  403. matchLabels:
  404. [string]:
  405. namespaces:
  406. - [string]:
  407. topologyKey:
  408. automountServiceAccountToken:
  409. containers:
  410. - args:
  411. - - [string]:
  412. command:
  413. - [string]:
  414. env:
  415. - name:
  416. value:
  417. valueFrom:
  418. configMapKeyRef:
  419. key:
  420. name:
  421. optional:
  422. fieldRef:
  423. apiVersion:
  424. fieldPath:
  425. resourceFieldRef:
  426. containerName:
  427. divisor:
  428. resource:
  429. secretKeyRef:
  430. key:
  431. name:
  432. optional:
  433. envFrom:
  434. - configMapRef:
  435. - name:
  436. optional:
  437. prefix:
  438. secretRef:
  439. name:
  440. optional:
  441. image:
  442. imagePullPolicy:
  443. lifecycle:
  444. postStart:
  445. exec:
  446. command:
  447. - [string]:
  448. httpGet:
  449. host:
  450. httpHeaders:
  451. - name:
  452. value:
  453. path:
  454. port:
  455. scheme:
  456. tcpSocket:
  457. host:
  458. port:
  459. preStop:
  460. exec:
  461. command:
  462. - [string]:
  463. httpGet:
  464. host:
  465. httpHeaders:
  466. - name:
  467. value:
  468. path:
  469. port:
  470. scheme:
  471. tcpSocket:
  472. host:
  473. port:
  474. livenessProbe:
  475. exec:
  476. command:
  477. - [string]:
  478. failureThreshold:
  479. httpGet:
  480. host:
  481. httpHeaders:
  482. - name:
  483. value:
  484. path:
  485. port:
  486. scheme:
  487. initialDelaySeconds:
  488. periodSeconds:
  489. successThreshold:
  490. tcpSocket:
  491. host:
  492. port:
  493. timeoutSeconds:
  494. name:
  495. ports:
  496. - containerPort:
  497. hostIP:
  498. hostPort:
  499. name:
  500. protocol:
  501. readinessProbe:
  502. exec:
  503. command:
  504. - [string]:
  505. failureThreshold:
  506. httpGet:
  507. host:
  508. httpHeaders:
  509. - name:
  510. value:
  511. path:
  512. port:
  513. scheme:
  514. initialDelaySeconds:
  515. periodSeconds:
  516. successThreshold:
  517. tcpSocket:
  518. host:
  519. port:
  520. timeoutSeconds:
  521. resources:
  522. limits:
  523. [string]:
  524. requests:
  525. [string]:
  526. securityContext:
  527. capabilities:
  528. add:
  529. - [string]:
  530. drop:
  531. - [string]:
  532. privileged:
  533. readOnlyRootFilesystem:
  534. runAsNonRoot:
  535. runAsUser:
  536. seLinuxOptions:
  537. level:
  538. role:
  539. type:
  540. user:
  541. stdin:
  542. stdinOnce:
  543. terminationMessagePath:
  544. terminationMessagePolicy:
  545. tty:
  546. volumeMounts:
  547. - mountPath:
  548. name:
  549. readOnly:
  550. subPath:
  551. workingDir:
  552. dnsPolicy:
  553. hostAliases:
  554. - hostnames:
  555. - - [string]:
  556. ip:
  557. hostIPC:
  558. hostNetwork:
  559. hostPID:
  560. hostname:
  561. imagePullSecrets:
  562. - name:
  563. initContainers:
  564. - args:
  565. - - [string]:
  566. command:
  567. - [string]:
  568. env:
  569. - name:
  570. value:
  571. valueFrom:
  572. configMapKeyRef:
  573. key:
  574. name:
  575. optional:
  576. fieldRef:
  577. apiVersion:
  578. fieldPath:
  579. resourceFieldRef:
  580. containerName:
  581. divisor:
  582. resource:
  583. secretKeyRef:
  584. key:
  585. name:
  586. optional:
  587. envFrom:
  588. - configMapRef:
  589. - name:
  590. optional:
  591. prefix:
  592. secretRef:
  593. name:
  594. optional:
  595. image:
  596. imagePullPolicy:
  597. lifecycle:
  598. postStart:
  599. exec:
  600. command:
  601. - [string]:
  602. httpGet:
  603. host:
  604. httpHeaders:
  605. - name:
  606. value:
  607. path:
  608. port:
  609. scheme:
  610. tcpSocket:
  611. host:
  612. port:
  613. preStop:
  614. exec:
  615. command:
  616. - [string]:
  617. httpGet:
  618. host:
  619. httpHeaders:
  620. - name:
  621. value:
  622. path:
  623. port:
  624. scheme:
  625. tcpSocket:
  626. host:
  627. port:
  628. livenessProbe:
  629. exec:
  630. command:
  631. - [string]:
  632. failureThreshold:
  633. httpGet:
  634. host:
  635. httpHeaders:
  636. - name:
  637. value:
  638. path:
  639. port:
  640. scheme:
  641. initialDelaySeconds:
  642. periodSeconds:
  643. successThreshold:
  644. tcpSocket:
  645. host:
  646. port:
  647. timeoutSeconds:
  648. name:
  649. ports:
  650. - containerPort:
  651. hostIP:
  652. hostPort:
  653. name:
  654. protocol:
  655. readinessProbe:
  656. exec:
  657. command:
  658. - [string]:
  659. failureThreshold:
  660. httpGet:
  661. host:
  662. httpHeaders:
  663. - name:
  664. value:
  665. path:
  666. port:
  667. scheme:
  668. initialDelaySeconds:
  669. periodSeconds:
  670. successThreshold:
  671. tcpSocket:
  672. host:
  673. port:
  674. timeoutSeconds:
  675. resources:
  676. limits:
  677. [string]:
  678. requests:
  679. [string]:
  680. securityContext:
  681. capabilities:
  682. add:
  683. - [string]:
  684. drop:
  685. - [string]:
  686. privileged:
  687. readOnlyRootFilesystem:
  688. runAsNonRoot:
  689. runAsUser:
  690. seLinuxOptions:
  691. level:
  692. role:
  693. type:
  694. user:
  695. stdin:
  696. stdinOnce:
  697. terminationMessagePath:
  698. terminationMessagePolicy:
  699. tty:
  700. volumeMounts:
  701. - mountPath:
  702. name:
  703. readOnly:
  704. subPath:
  705. workingDir:
  706. nodeName:
  707. nodeSelector:
  708. [string]:
  709. restartPolicy:
  710. schedulerName:
  711. securityContext:
  712. fsGroup:
  713. runAsNonRoot:
  714. runAsUser:
  715. seLinuxOptions:
  716. level:
  717. role:
  718. type:
  719. user:
  720. supplementalGroups:
  721. - [integer]:
  722. serviceAccount:
  723. serviceAccountName:
  724. subdomain:
  725. terminationGracePeriodSeconds:
  726. tolerations:
  727. - effect:
  728. key:
  729. operator:
  730. tolerationSeconds:
  731. value:
  732. volumes:
  733. - awsElasticBlockStore:
  734. - fsType:
  735. partition:
  736. readOnly:
  737. volumeID:
  738. azureDisk:
  739. cachingMode:
  740. diskName:
  741. diskURI:
  742. fsType:
  743. kind:
  744. readOnly:
  745. azureFile:
  746. readOnly:
  747. secretName:
  748. shareName:
  749. cephfs:
  750. monitors:
  751. - [string]:
  752. path:
  753. readOnly:
  754. secretFile:
  755. secretRef:
  756. name:
  757. user:
  758. cinder:
  759. fsType:
  760. readOnly:
  761. volumeID:
  762. configMap:
  763. defaultMode:
  764. items:
  765. - key:
  766. mode:
  767. path:
  768. name:
  769. optional:
  770. downwardAPI:
  771. defaultMode:
  772. items:
  773. - fieldRef:
  774. - apiVersion:
  775. fieldPath:
  776. mode:
  777. path:
  778. resourceFieldRef:
  779. containerName:
  780. divisor:
  781. resource:
  782. emptyDir:
  783. medium:
  784. sizeLimit:
  785. fc:
  786. fsType:
  787. lun:
  788. readOnly:
  789. targetWWNs:
  790. - [string]:
  791. flexVolume:
  792. driver:
  793. fsType:
  794. options:
  795. [string]:
  796. readOnly:
  797. secretRef:
  798. name:
  799. flocker:
  800. datasetName:
  801. datasetUUID:
  802. gcePersistentDisk:
  803. fsType:
  804. partition:
  805. pdName:
  806. readOnly:
  807. glusterfs:
  808. endpoints:
  809. path:
  810. readOnly:
  811. hostPath:
  812. path:
  813. iscsi:
  814. chapAuthDiscovery:
  815. chapAuthSession:
  816. fsType:
  817. iqn:
  818. iscsiInterface:
  819. lun:
  820. portals:
  821. - [string]:
  822. readOnly:
  823. secretRef:
  824. name:
  825. targetPortal:
  826. name:
  827. nfs:
  828. path:
  829. readOnly:
  830. server:
  831. persistentVolumeClaim:
  832. claimName:
  833. readOnly:
  834. photonPersistentDisk:
  835. fsType:
  836. pdID:
  837. portworxVolume:
  838. fsType:
  839. readOnly:
  840. volumeID:
  841. projected:
  842. defaultMode:
  843. sources:
  844. - configMap:
  845. - items:
  846. - - key:
  847. mode:
  848. path:
  849. name:
  850. optional:
  851. downwardAPI:
  852. items:
  853. - fieldRef:
  854. - apiVersion:
  855. fieldPath:
  856. mode:
  857. path:
  858. resourceFieldRef:
  859. containerName:
  860. divisor:
  861. resource:
  862. secret:
  863. items:
  864. - key:
  865. mode:
  866. path:
  867. name:
  868. optional:
  869. quobyte:
  870. group:
  871. readOnly:
  872. registry:
  873. user:
  874. volume:
  875. rbd:
  876. fsType:
  877. image:
  878. keyring:
  879. monitors:
  880. - [string]:
  881. pool:
  882. readOnly:
  883. secretRef:
  884. name:
  885. user:
  886. scaleIO:
  887. fsType:
  888. gateway:
  889. protectionDomain:
  890. readOnly:
  891. secretRef:
  892. name:
  893. sslEnabled:
  894. storageMode:
  895. storagePool:
  896. system:
  897. volumeName:
  898. secret:
  899. defaultMode:
  900. items:
  901. - key:
  902. mode:
  903. path:
  904. optional:
  905. secretName:
  906. storageos:
  907. fsType:
  908. readOnly:
  909. secretRef:
  910. name:
  911. volumeName:
  912. volumeNamespace:
  913. vsphereVolume:
  914. fsType:
  915. storagePolicyID:
  916. storagePolicyName:
  917. volumePath:
  918. test:
  919. triggers:
  920. - imageChangeParams:
  921. - automatic:
  922. containerNames:
  923. - [string]:
  924. from:
  925. apiVersion:
  926. fieldPath:
  927. kind:
  928. name:
  929. namespace:
  930. resourceVersion:
  931. uid:
  932. lastTriggeredImage:
  933. type:
  934. status:
  935. availableReplicas:
  936. conditions:
  937. - lastTransitionTime:
  938. lastUpdateTime:
  939. message:
  940. reason:
  941. status:
  942. type:
  943. details:
  944. causes:
  945. - imageTrigger:
  946. - from:
  947. - apiVersion:
  948. fieldPath:
  949. kind:
  950. name:
  951. namespace:
  952. resourceVersion:
  953. uid:
  954. type:
  955. message:
  956. latestVersion:
  957. observedGeneration:
  958. readyReplicas:
  959. replicas:
  960. unavailableReplicas:
  961. updatedReplicas:

Operations

Create a DeploymentConfig

Create a DeploymentConfig

HTTP request

  1. POST /apis/apps.openshift.io/v1/deploymentconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "DeploymentConfig",
  8. "apiVersion": "apps.openshift.io/v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/deploymentconfigs <<'EOF'
  8. {
  9. "kind": "DeploymentConfig",
  10. "apiVersion": "apps.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.DeploymentConfig

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a DeploymentConfig in a namespace

Create a DeploymentConfig

HTTP request

  1. POST /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "DeploymentConfig",
  8. "apiVersion": "apps.openshift.io/v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs <<'EOF'
  8. {
  9. "kind": "DeploymentConfig",
  10. "apiVersion": "apps.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.DeploymentConfig

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get a DeploymentConfig in a namespace

Read the specified DeploymentConfig

HTTP request

  1. GET /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME

Path parameters

ParameterDescription

name

name of the DeploymentConfig

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

exact

Should the export be exact. Exact export maintains cluster-specific fields like ‘Namespace’.

export

Should this value be exported. Export strips fields that a user can not specify.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get all DeploymentConfigs

List or watch objects of kind DeploymentConfig

HTTP request

  1. GET /apis/apps.openshift.io/v1/deploymentconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/deploymentconfigs

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfigList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Get all DeploymentConfigs in a namespace

List or watch objects of kind DeploymentConfig

HTTP request

  1. GET /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfigList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch a DeploymentConfig in a namespace

Watch changes to an object of kind DeploymentConfig

HTTP request

  1. GET /apis/apps.openshift.io/v1/watch/namespaces/$NAMESPACE/deploymentconfigs/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/watch/namespaces/$NAMESPACE/deploymentconfigs/$NAME

Path parameters

ParameterDescription

name

name of the DeploymentConfig

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch all DeploymentConfigs

Watch individual changes to a list of DeploymentConfig

HTTP request

  1. GET /apis/apps.openshift.io/v1/watch/deploymentconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/watch/deploymentconfigs

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch all DeploymentConfigs in a namespace

Watch individual changes to a list of DeploymentConfig

HTTP request

  1. GET /apis/apps.openshift.io/v1/watch/namespaces/$NAMESPACE/deploymentconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/watch/namespaces/$NAMESPACE/deploymentconfigs

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Update a DeploymentConfig in a namespace

Replace the specified DeploymentConfig

HTTP request

  1. PUT /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "DeploymentConfig",
  8. "apiVersion": "apps.openshift.io/v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME <<'EOF'
  8. {
  9. "kind": "DeploymentConfig",
  10. "apiVersion": "apps.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.DeploymentConfig

Path parameters

ParameterDescription

name

name of the DeploymentConfig

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch a DeploymentConfig in a namespace

Partially update the specified DeploymentConfig

HTTP request

  1. PATCH /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json-patch+json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json-patch+json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the DeploymentConfig

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfig

401 Unauthorized

Consumes

  • application/json-patch+json

  • application/merge-patch+json

  • application/strategic-merge-patch+json

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Delete a DeploymentConfig in a namespace

Delete a DeploymentConfig

HTTP request

  1. DELETE /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X DELETE \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.DeleteOptions

Path parameters

ParameterDescription

name

name of the DeploymentConfig

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

gracePeriodSeconds

The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.

orphanDependents

Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both.

propagationPolicy

Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.

Responses

HTTP CodeSchema

200 OK

v1.Status

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Delete all DeploymentConfigs in a namespace

Delete collection of DeploymentConfig

HTTP request

  1. DELETE /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X DELETE \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.Status

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create instantiate of a DeploymentConfig in a namespace

Create instantiate of a DeploymentRequest

HTTP request

  1. POST /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/instantiate HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "DeploymentRequest",
  8. "apiVersion": "apps.openshift.io/v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/instantiate <<'EOF'
  8. {
  9. "kind": "DeploymentRequest",
  10. "apiVersion": "apps.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.DeploymentRequest

Path parameters

ParameterDescription

name

name of the DeploymentRequest

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentRequest

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get log of a DeploymentConfig in a namespace

Read log of the specified DeploymentLog

HTTP request

  1. GET /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/log HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/log

Path parameters

ParameterDescription

name

name of the DeploymentLog

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

container

The container for which to stream logs. Defaults to only container if there is one container in the pod.

follow

Follow if true indicates that the build log should be streamed until the build terminates.

limitBytes

If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.

nowait

NoWait if true causes the call to return immediately even if the deployment is not available yet. Otherwise the server will wait until the deployment has started.

pretty

If ‘true’, then the output is pretty printed.

previous

Return previous deployment logs. Defaults to false.

sinceSeconds

A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.

tailLines

If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime

timestamps

If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.

version

Version of the deployment for which to view logs.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentLog

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create rollback of a DeploymentConfig in a namespace

Create rollback of a DeploymentConfigRollback

HTTP request

  1. POST /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/rollback HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "DeploymentConfigRollback",
  8. "apiVersion": "apps.openshift.io/v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/rollback <<'EOF'
  8. {
  9. "kind": "DeploymentConfigRollback",
  10. "apiVersion": "apps.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.DeploymentConfigRollback

Path parameters

ParameterDescription

name

name of the DeploymentConfigRollback

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfigRollback

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get scale of a DeploymentConfig in a namespace

Read scale of the specified Scale

HTTP request

  1. GET /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/scale HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/scale

Path parameters

ParameterDescription

name

name of the Scale

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Scale

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Update scale of a DeploymentConfig in a namespace

Replace scale of the specified Scale

HTTP request

  1. PUT /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/scale HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Scale",
  8. "apiVersion": "apps.openshift.io/v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/scale <<'EOF'
  8. {
  9. "kind": "Scale",
  10. "apiVersion": "apps.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1beta1.Scale

Path parameters

ParameterDescription

name

name of the Scale

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Scale

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch scale of a DeploymentConfig in a namespace

Partially update scale of the specified Scale

HTTP request

  1. PATCH /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/scale HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json-patch+json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json-patch+json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/scale <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the Scale

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Scale

401 Unauthorized

Consumes

  • application/json-patch+json

  • application/merge-patch+json

  • application/strategic-merge-patch+json

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get status of a DeploymentConfig in a namespace

Read status of the specified DeploymentConfig

HTTP request

  1. GET /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/status HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/status

Path parameters

ParameterDescription

name

name of the DeploymentConfig

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Update status of a DeploymentConfig in a namespace

Replace status of the specified DeploymentConfig

HTTP request

  1. PUT /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/status HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "DeploymentConfig",
  8. "apiVersion": "apps.openshift.io/v1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/status <<'EOF'
  8. {
  9. "kind": "DeploymentConfig",
  10. "apiVersion": "apps.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.DeploymentConfig

Path parameters

ParameterDescription

name

name of the DeploymentConfig

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfig

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch status of a DeploymentConfig in a namespace

Partially update status of the specified DeploymentConfig

HTTP request

  1. PATCH /apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/status HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json-patch+json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json-patch+json' \
  7. https://$ENDPOINT/apis/apps.openshift.io/v1/namespaces/$NAMESPACE/deploymentconfigs/$NAME/status <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the DeploymentConfig

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1.DeploymentConfig

401 Unauthorized

Consumes

  • application/json-patch+json

  • application/merge-patch+json

  • application/strategic-merge-patch+json

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf