> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/infrastructure-as-code-management/iacm-api-reference/module-registry/batch-check-module-lifecycle-status.md).

# Batch check module lifecycle status

Batch-check lifecycle status for a list of modules resolved during terraform init; only violations are returned

```json
{"openapi":"3.0.3","info":{"title":"Infrastructure as Code Management","version":"0.1.0"},"tags":[{"name":"module-registry","description":"The module-registry service is a private registry for Terraform/Opentofu modules"}],"servers":[{"url":"http://localhost:80"}],"paths":{"/api/modules/lifecycle/batch-check":{"post":{"tags":["module-registry"],"summary":"Batch check module lifecycle status","description":"Batch-check lifecycle status for a list of modules resolved during terraform init; only violations are returned","operationId":"module-registry#batch-check-module-lifecycle","parameters":[{"name":"Harness-Account","in":"header","description":"Harness account ID","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Harness account ID"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCheckModuleLifecycleRequest"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCheckModuleLifecycleResponse"}}}},"400":{"description":"BadRequestError: Bad Request response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"401":{"description":"UnauthorizedError: Unauthorized response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"403":{"description":"ForbiddenError: Forbidden response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"404":{"description":"NotFoundError: Not Found response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"408":{"description":"TimeoutError: Request Timeout response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"409":{"description":"ConflictError: Conflict response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"423":{"description":"LockedError: Locked response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"499":{"description":"ContextCancelledError:  response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"500":{"description":"InternalServerError: Internal Server Error response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}},"502":{"description":"BadGatewayError: Bad Gateway response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/RegistryError"}}}}}}}},"components":{"schemas":{"BatchCheckModuleLifecycleRequest":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ModuleLifecycleBatchCheckItem"},"description":"List of modules to check","maxItems":1000}},"required":["items"]},"ModuleLifecycleBatchCheckItem":{"type":"object","properties":{"name":{"type":"string","description":"Module name","minLength":1},"namespace":{"type":"string","description":"Encoded namespace identifying the module scope","minLength":1},"system":{"type":"string","description":"Module system (provider)","minLength":1},"version":{"type":"string","description":"Module version to check","minLength":1}},"description":"A single module item to check lifecycle status for","required":["namespace","name","system","version"]},"BatchCheckModuleLifecycleResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/ModuleLifecycleBatchCheckResult"},"description":"Lifecycle violations found; items with no rule or supported tier are omitted"}},"required":["results"]},"ModuleLifecycleBatchCheckResult":{"type":"object","properties":{"action":{"type":"string","description":"Enforcement action for the tier","enum":["no_action","warn","fail"]},"minimum_supported_version":{"type":"string","description":"The lowest-numbered version currently in the supported tier"},"name":{"type":"string","description":"Module name"},"namespace":{"type":"string","description":"Encoded namespace identifying the module scope"},"system":{"type":"string","description":"Module system (provider)"},"tier":{"type":"string","description":"Lifecycle tier: warning or deprecated","enum":["warning","deprecated"]},"version":{"type":"string","description":"Module version"}},"description":"Lifecycle check result for a single module item","required":["namespace","name","system","version","tier","action"]},"RegistryError":{"type":"object","properties":{"fault":{"type":"boolean","description":"Is the error a server-side fault?"},"id":{"type":"string","description":"ID is a unique identifier for this particular occurrence of the problem."},"message":{"type":"string","description":"Message is a human-readable explanation specific to this occurrence of the problem."},"name":{"type":"string","description":"Name is the name of this class of errors."},"temporary":{"type":"boolean","description":"Is the error temporary?"},"timeout":{"type":"boolean","description":"Is the error a timeout?"}},"required":["name","id","message","temporary","timeout","fault"]}}}}
```
