# List module by id

List a module from the module registry by ID

Endpoint: GET /iacm/api/modules/{id}
Version: 1.0
Security: x-api-key

## Query parameters:

  - `scope_org` (string)
    org name
    Example: "Fuga non."

  - `scope_project` (string)
    project name
    Example: "Eos nihil maiores sed voluptates."

## Path parameters:

  - `id` (string, required)
    module id
    Example: "Aut consequatur quo voluptatem atque quia."

## Header parameters:

  - `Harness-Account` (string, required)
    account name
    Example: "Sit excepturi et recusandae aut nihil."

## Response 200 fields (application/json):

  - `account` (string, required)
    Harness account ID that owns the module.
    Example: "abc123DEFghiJKL"

  - `created` (integer, required)
    Created is the unix timestamp at which the resource was originally created in milliseconds.
    Example: 1962887440080412700

  - `description` (string)
    Free-form text describing the purpose and usage of the module.
    Example: "Provisions a VPC with public and private subnets."

  - `domain_prefix` (string)
    Domain prefix for the module
    Example: "Sit nam voluptas."

  - `git_tag_style` (string)
    Pattern used to match Git tags for module versioning. Use 'module-name-*' to match tags like 'my-vpc-module-v1.0.0'.
    Example: "module-name-*"

  - `id` (string, required)
    module id
    Example: "aaaaaaaa-bbbb-cccc-eeee-ffffffffffff"

  - `module_error` (string)
    error while retrieving the module
    Example: "Non odit est."

  - `name` (string, required)
    Human-readable name of the module. Must be unique within the same scope and system.
    Example: "my-vpc-module"

  - `namespace` (string)
    Namespace derived from account, org and project for use with the Terraform module registry
    Example: "Aut quas qui et aspernatur quisquam consequatur."

  - `onboarding_pipeline` (string)
    Identifier of the Harness pipeline used for module onboarding and metadata sync.
    Example: "Module_Onboarding_Pipeline"

  - `onboarding_pipeline_org` (string)
    Organization where the onboarding pipeline is defined. Defaults to scope_org if not provided.
    Example: "my_org"

  - `onboarding_pipeline_project` (string)
    Project where the onboarding pipeline is defined. Defaults to scope_project if not provided.
    Example: "my_project"

  - `onboarding_pipeline_sync` (boolean)
    When true, module metadata is automatically synced via the onboarding pipeline when new Git tags are pushed.
    Example: true

  - `onboarding_pipeline_wh` (string)
    Webhook identifier used to trigger the onboarding pipeline on Git events.
    Example: "webhook_abc123"

  - `org` (string)
    Organization identifier where the Git connector is defined. Defaults to scope_org if not provided.
    Example: "my_org"

  - `project` (string)
    Project identifier where the Git connector is defined. Defaults to scope_project if not provided.
    Example: "my_project"

  - `repository` (string)
    Name of the Git repository that contains the module source code.
    Example: "my-terraform-modules"

  - `repository_branch` (string)
    Repository Branch in which the code should be accessed.
    Example: "main"

  - `repository_commit` (string)
    Repository Commit/Tag in which the code should be accessed.
    Example: "abc10ed"

  - `repository_connector` (string)
    Harness Git connector identifier used to access the Git repository. Must reference a valid Git connector in your account. Leave empty when using Harness Code as the repository source.
    Example: "my_github_connector"

  - `repository_path` (string)
    Repository Path is the path in which the infra code resides.

  - `repository_url` (string)
    Repository url.
    Example: "Dolorum cumque nobis maiores fuga veniam."

  - `scope_org` (string)
    Organization identifier where the module is scoped.
    Example: "my_org"

  - `scope_project` (string)
    Project identifier where the module is scoped.
    Example: "my_project"

  - `storage_type` (string)
    Defines how module versions are stored. 'git_reference' resolves versions from Git tags; 'artifact' stores uploaded archive files.
    Enum: "git_reference", "artifact"

  - `synced` (integer, required)
    Synced is the unix timestamp at which the resource was synced for the last time in milliseconds.
    Example: 3155220598072064000

  - `system` (string, required)
    Provider or system the module targets. Lowercase letters only (e.g. aws, gcp, azure, kubernetes).
    Example: "aws"

  - `tags` (string)
    Comma-separated list of tags to categorize the module (e.g. networking,vpc,aws).
    Example: "Quisquam asperiores unde fuga repellat ad autem."

  - `testing_enabled` (boolean)
    testing enabled

  - `testing_metadata` (object)
    Example: {"account":"9z","org":"c1y","pipelines":["Praesentium eligendi recusandae.","Qui iusto quasi eaque enim.","Similique libero aut sapiente.","Quia aperiam laborum dolorem."],"project":"do6","provider_connector":"Consequatur rem est ipsam rerum.","provisioner_type":"Velit ad et ex qui veniam.","provisioner_version":"Porro et ad nulla perferendis cum quaerat.","release_pipeline":"Nam atque."}

  - `testing_metadata.account` (string, required)
    Account is the internal customer account ID.
    Example: "9z"

  - `testing_metadata.org` (string, required)
    Org is the organisation identifier.
    Example: "c1y"

  - `testing_metadata.pipelines` (array, required)
    pipelines where the testing is enabled
    Example: ["Praesentium eligendi recusandae.","Qui iusto quasi eaque enim.","Similique libero aut sapiente.","Quia aperiam laborum dolorem."]

  - `testing_metadata.project` (string, required)
    Project is the project identifier.
    Example: "do6"

  - `testing_metadata.provider_connector` (string, required)
    provider connector for testing purposes
    Example: "Consequatur rem est ipsam rerum."

  - `testing_metadata.provisioner_type` (string, required)
    provisioner type for testing purposes
    Example: "Velit ad et ex qui veniam."

  - `testing_metadata.provisioner_version` (string, required)
    provisioner version for testing purposes
    Example: "Porro et ad nulla perferendis cum quaerat."

  - `testing_metadata.release_pipeline` (string)
    release pipeline
    Example: "Nam atque."

  - `updated` (integer, required)
    Modified is the unix timestamp at which the resource was last modified in milliseconds.
    Example: 9182463840882341000

  - `version_statuses` (object)
    Map of module version to lifecycle status (supported, warning, deprecated). Populated only when the lifecycle feature flag is enabled.
    Example: {"Magnam quisquam maxime veritatis ducimus incidunt expedita.":"Nobis dolores cumque libero.","Odit hic minus.":"Molestiae est inventore velit quae.","Officiis aut perferendis in qui nobis.":"Quos nihil explicabo."}

  - `versions` (array)
    versions
    Example: ["Saepe aut repellendus aperiam aut laborum.","Aut necessitatibus officia eveniet consequuntur quis nobis."]

## Response 400 fields (application/vnd.goa.error):

  - `fault` (boolean, required)
    Is the error a server-side fault?
    Example: true

  - `id` (string, required)
    ID is a unique identifier for this particular occurrence of the problem.
    Example: "123abc"

  - `message` (string, required)
    Message is a human-readable explanation specific to this occurrence of the problem.
    Example: "parameter 'p' must be an integer"

  - `name` (string, required)
    Name is the name of this class of errors.
    Example: "bad_request"

  - `temporary` (boolean, required)
    Is the error temporary?
    Example: true

  - `timeout` (boolean, required)
    Is the error a timeout?
    Example: true


