v1.ImageStreamMapping

Description

ImageStreamMapping represents a mapping from a single tag to a Docker image as well as the reference to the Docker image stream the image came from.

Object Schema

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

  1. apiVersion:
  2. image:
  3. apiVersion:
  4. dockerImageConfig:
  5. dockerImageLayers:
  6. - mediaType:
  7. name:
  8. size:
  9. dockerImageManifest:
  10. dockerImageManifestMediaType:
  11. dockerImageMetadata:
  12. Raw:
  13. dockerImageMetadataVersion:
  14. dockerImageReference:
  15. dockerImageSignatures:
  16. - [string]:
  17. kind:
  18. metadata:
  19. annotations:
  20. [string]:
  21. clusterName:
  22. creationTimestamp:
  23. deletionGracePeriodSeconds:
  24. deletionTimestamp:
  25. finalizers:
  26. - [string]:
  27. generateName:
  28. generation:
  29. initializers:
  30. pending:
  31. - name:
  32. result:
  33. apiVersion:
  34. code:
  35. details:
  36. causes:
  37. - field:
  38. message:
  39. reason:
  40. group:
  41. kind:
  42. name:
  43. retryAfterSeconds:
  44. uid:
  45. kind:
  46. message:
  47. metadata:
  48. resourceVersion:
  49. selfLink:
  50. reason:
  51. status:
  52. labels:
  53. [string]:
  54. name:
  55. namespace:
  56. ownerReferences:
  57. - apiVersion:
  58. blockOwnerDeletion:
  59. controller:
  60. kind:
  61. name:
  62. uid:
  63. resourceVersion:
  64. selfLink:
  65. uid:
  66. signatures:
  67. - apiVersion:
  68. conditions:
  69. - lastProbeTime:
  70. lastTransitionTime:
  71. message:
  72. reason:
  73. status:
  74. type:
  75. content:
  76. created:
  77. imageIdentity:
  78. issuedBy:
  79. commonName:
  80. organization:
  81. issuedTo:
  82. commonName:
  83. organization:
  84. publicKeyID:
  85. kind:
  86. metadata:
  87. annotations:
  88. [string]:
  89. clusterName:
  90. creationTimestamp:
  91. deletionGracePeriodSeconds:
  92. deletionTimestamp:
  93. finalizers:
  94. - [string]:
  95. generateName:
  96. generation:
  97. initializers:
  98. pending:
  99. - name:
  100. result:
  101. apiVersion:
  102. code:
  103. details:
  104. causes:
  105. - field:
  106. message:
  107. reason:
  108. group:
  109. kind:
  110. name:
  111. retryAfterSeconds:
  112. uid:
  113. kind:
  114. message:
  115. metadata:
  116. resourceVersion:
  117. selfLink:
  118. reason:
  119. status:
  120. labels:
  121. [string]:
  122. name:
  123. namespace:
  124. ownerReferences:
  125. - apiVersion:
  126. blockOwnerDeletion:
  127. controller:
  128. kind:
  129. name:
  130. uid:
  131. resourceVersion:
  132. selfLink:
  133. uid:
  134. signedClaims:
  135. [string]:
  136. type:
  137. kind:
  138. metadata:
  139. annotations:
  140. [string]:
  141. clusterName:
  142. creationTimestamp:
  143. deletionGracePeriodSeconds:
  144. deletionTimestamp:
  145. finalizers:
  146. - [string]:
  147. generateName:
  148. generation:
  149. initializers:
  150. pending:
  151. - name:
  152. result:
  153. apiVersion:
  154. code:
  155. details:
  156. causes:
  157. - field:
  158. message:
  159. reason:
  160. group:
  161. kind:
  162. name:
  163. retryAfterSeconds:
  164. uid:
  165. kind:
  166. message:
  167. metadata:
  168. resourceVersion:
  169. selfLink:
  170. reason:
  171. status:
  172. labels:
  173. [string]:
  174. name:
  175. namespace:
  176. ownerReferences:
  177. - apiVersion:
  178. blockOwnerDeletion:
  179. controller:
  180. kind:
  181. name:
  182. uid:
  183. resourceVersion:
  184. selfLink:
  185. uid:
  186. tag:

Operations

Create a ImageStreamMapping

Create an ImageStreamMapping

HTTP request

  1. POST /apis/image.openshift.io/v1/imagestreammappings HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "ImageStreamMapping",
  8. "apiVersion": "image.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/image.openshift.io/v1/imagestreammappings <<'EOF'
  8. {
  9. "kind": "ImageStreamMapping",
  10. "apiVersion": "image.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.ImageStreamMapping

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.ImageStreamMapping

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a ImageStreamMapping in a namespace

Create an ImageStreamMapping

HTTP request

  1. POST /apis/image.openshift.io/v1/namespaces/$NAMESPACE/imagestreammappings HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "ImageStreamMapping",
  8. "apiVersion": "image.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/image.openshift.io/v1/namespaces/$NAMESPACE/imagestreammappings <<'EOF'
  8. {
  9. "kind": "ImageStreamMapping",
  10. "apiVersion": "image.openshift.io/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.ImageStreamMapping

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.ImageStreamMapping

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf