List modules
List modules associated with this workspace.
Org is the organisation identifier.
pProject is the project identifier.
nIdentifier is the project identifier.
dAccount is the internal customer account ID.
8uOK response.
Represents an individual OpenTofu or Terraform module.
Number of times this module is invoked in the workspace
3Module key
ec2-instance_testModule source
registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/completeTerragrunt stack path (empty for regular Terraform workspaces)
environments/prod/ec2Module version
5.0.0BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{identifier}/modules HTTP/1.1
Host: localhost:80
Harness-Account: 8u
Accept: */*
[
{
"invocations": 3,
"key": "ec2-instance_test",
"source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
"stack_path": "environments/prod/ec2",
"version": "5.0.0"
},
{
"invocations": 3,
"key": "ec2-instance_test",
"source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
"stack_path": "environments/prod/ec2",
"version": "5.0.0"
}
]Last updated
Was this helpful?