@@ -42,8 +42,6 @@ source: terraform-docs-common
42
42
43
43
Use the module version management API endpoints to deprecate, revoke, and revert of status of module versions in your organization’s private registry.
44
44
45
- <>{ /* TODO: remove revoke references here */ } </>
46
-
47
45
<!-- BEGIN: TFC :only name :pnp-callout -->
48
46
49
47
@include " tfc-package-callouts/manage-module-versions.mdx"
@@ -52,18 +50,12 @@ Use the module version management API endpoints to deprecate, revoke, and revert
52
50
53
51
## Overview
54
52
55
- <>{/* TODO: remove revoke references here */}</>
56
-
57
53
As part of the module lifecycle, you can deprecate or revoke older module versions as you stop supporting them, signaling to module consumers that they need to upgrade to newer versions.
58
54
59
55
When you deprecate a module version, HCP Terraform adds warnings to the module's registry page and to run outputs when anyone uses the deprecated version. After deprecating a module version, you can revert that deprecated status to remove the warnings from that version in the registry and outputs.
60
56
61
- <!-- BEGIN: TFC :only name :revoke -->
62
-
63
57
Revoking a module version adds warnings to the module's registry page, warnings in the run outputs of existing users, and blocks new users from using that version. Reverting a module version’s revocation sets the module version back to a deprecated state.
64
58
65
- <!-- END: TFC :only name :revoke -->
66
-
67
59
For more details on deprecating or revoking module versions, refer to [Manage module versions](/terraform/enterprise/registry/manage-module-versions).
68
60
69
61
## Deprecate a module version
@@ -83,7 +75,7 @@ This endpoint allows you to deprecate a specific module version. Deprecating a m
83
75
84
76
| Status | Response | Reason |
85
77
| :----------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------- |
86
- | [200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) | [JSON API document](http:// terraform/cloud-docs /api-docs#json-api-documents) | Successfully deprecated a module version. |
78
+ | [200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) | [JSON API document](/ terraform/enterprise /api-docs#json-api-documents) | Successfully deprecated a module version. |
87
79
| [404](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404) | [JSON API error object](http://jsonapi.org/format/#error-objects) | This organization is not authorized to deprecate this module version, or the module version does not exist. |
88
80
| [422](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422) | [JSON API error object](http://jsonapi.org/format/#error-objects) | Malformed request body, for example the request is missing attributes or uses the wrong types. |
89
81
| [500](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) or [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) | [JSON API error object](http://jsonapi.org/format/#error-objects) | Failure occurred while deprecating a module version. |
@@ -162,7 +154,7 @@ Deprecating a module version adds warnings to the run output of any consumers us
162
154
163
155
| Status | Response | Reason |
164
156
| :--------------------------------------------------------------------------- | :---------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------- |
165
- | [200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) | [JSON API document](http:/// terraform/cloud-docs /api-docs#json-api-documents) | Successfully reverted a module version’s deprecation status and reinstated that version. |
157
+ | [200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) | [JSON API document](/ terraform/enterprise /api-docs#json-api-documents) | Successfully reverted a module version’s deprecation status and reinstated that version. |
166
158
| [404](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404) | [JSON API error object](http://jsonapi.org/format/#error-objects) | This organization is not authorized to revert the depreciation of this module version, or the module version does not exist. |
167
159
| [422](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422) | [JSON API error object](http://jsonapi.org/format/#error-objects) | Malformed request body, for example the request is missing attributes or uses the wrong types. |
168
160
| [500](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) or [503] | [JSON API error object](http://jsonapi.org/format/#error-objects) | Failure occurred while reverting the deprecation of a module version. |
@@ -283,8 +275,6 @@ The response includes multiple versions, and each version has a `deprecation` ke
283
275
}
284
276
```
285
277
286
- <!-- BEGIN: TFC :only name :revoke -->
287
-
288
278
## Revoke a module version
289
279
290
280
Use this endpoint to revoke a module version. You must [deprecate a module version](#deprecate-a-module-version) before you can revoke it.
@@ -302,7 +292,7 @@ This endpoint allows you to revoke a specific module version. Revoking a module
302
292
303
293
| Status | Response | Reason |
304
294
| :----------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------- |
305
- | [200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) | [JSON API document](http:// terraform/cloud-docs /api-docs#json-api-documents) | Successfully revoked a module version. |
295
+ | [200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) | [JSON API document](/ terraform/enterprise /api-docs#json-api-documents) | Successfully revoked a module version. |
306
296
| [404](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404) | [JSON API error object](http://jsonapi.org/format/#error-objects) | This organization is not authorized to revoke this module version, or the module version does not exist. |
307
297
| [422](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422) | [JSON API error object](http://jsonapi.org/format/#error-objects) | Malformed request body, for example the request is missing attributes or uses the wrong types. |
308
298
| [500](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) or [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) | [JSON API error object](http://jsonapi.org/format/#error-objects) | Failure occurred while revoking a module version. |
@@ -388,7 +378,7 @@ When you revert the revocation of a module version, HCP Terraform sets that vers
388
378
389
379
| Status | Response | Reason |
390
380
| :--------------------------------------------------------------------------- | :---------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------- |
391
- | [200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) | [JSON API document](http:/// terraform/cloud-docs /api-docs#json-api-documents) | Successfully reverted a module version’s revocation status and deprecated that version. |
381
+ | [200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) | [JSON API document](/ terraform/enterprise /api-docs#json-api-documents) | Successfully reverted a module version’s revocation status and deprecated that version. |
392
382
| [404](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404) | [JSON API error object](http://jsonapi.org/format/#error-objects) | This organization is not authorized to revert the revocation of this module version, or the module version does not exist. |
393
383
| [422](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422) | [JSON API error object](http://jsonapi.org/format/#error-objects) | Malformed request body, for example the request is missing attributes or uses the wrong types. |
394
384
| [500](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) or [503] | [JSON API error object](http://jsonapi.org/format/#error-objects) | Failure occurred while reverting the revocation of a module version. |
@@ -527,5 +517,3 @@ The response includes the revoked versions of this module in the `revoked-versio
527
517
},
528
518
}
529
519
` ` `
530
-
531
- <!-- END: TFC:only name:revoke -->
0 commit comments