> 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/list-module-versions.md).

# List module versions

list-module-versions returns an array of versions for a given module

```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":{"/registry/account/{namespace}/{name}/{system}/versions":{"get":{"tags":["module-registry"],"summary":"List module versions","description":"list-module-versions returns an array of versions for a given module","operationId":"module-registry#list-versions","parameters":[{"name":"namespace","in":"path","description":"namespace of the module","required":true,"schema":{"type":"string","description":"namespace of the module"}},{"name":"name","in":"path","description":"module name","required":true,"schema":{"type":"string","description":"module name"}},{"name":"system","in":"path","description":"system name","required":true,"schema":{"type":"string","description":"system name"}}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListModuleVersionsResponse"}}}},"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":{"ListModuleVersionsResponse":{"type":"object","properties":{"modules":{"type":"array","items":{"$ref":"#/components/schemas/HarnessIacmModuleRegistryVersions"},"description":"list of versions for a given module"}},"required":["modules"]},"HarnessIacmModuleRegistryVersions":{"type":"object","properties":{"versions":{"type":"array","items":{"$ref":"#/components/schemas/HarnessIacmModuleRegistryVersionTypes"},"description":"list of versions for a given module"}},"description":"Versions returns the list of versions for a given module","required":["versions"]},"HarnessIacmModuleRegistryVersionTypes":{"type":"object","properties":{"git_version":{"type":"string","description":"git version"},"module_version":{"type":"string","description":"module version"}},"description":"Returns the module_version and git_version for a specific module","required":["module_version","git_version"]},"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"]}}}}
```
