> 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/variable-sets/get-variable-set-list-on-project-level.md).

# Get Variable Set list on project level

Get Variable Set list on project level.

```json
{"openapi":"3.0.3","info":{"title":"Infrastructure as Code Management","version":"0.1.0"},"tags":[{"name":"variable_sets","description":"Variable Sets Service handles the API for managing variable sets assigned to workspaces."}],"servers":[{"url":"http://localhost:80"}],"paths":{"/api/orgs/{org}/projects/{project}/variable-sets":{"get":{"tags":["variable_sets"],"summary":"Get Variable Set list on project level","description":"Get Variable Set list on project level.","operationId":"variable_sets#list-variable-sets-proj-level","parameters":[{"name":"org","in":"path","description":"Org is the organisation identifier.","required":true,"schema":{"type":"string","description":"Org is the organisation identifier.","minLength":1,"maxLength":128}},{"name":"project","in":"path","description":"Project is the project identifier.","required":true,"schema":{"type":"string","description":"Project is the project identifier.","minLength":1,"maxLength":128}},{"name":"Harness-Account","in":"header","description":"Account is the internal customer account ID.","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Account is the internal customer account ID.","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarnessIacmVariableSetList"}}}},"400":{"description":"BadRequestError: Bad Request response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"UnauthorizedError: Unauthorized response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"ForbiddenError: Forbidden response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"NotFoundError: Not Found response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"408":{"description":"TimeoutError: Request Timeout response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"ConflictError: Conflict response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"LockedError: Locked response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"499":{"description":"ContextCancelledError:  response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"InternalServerError: Internal Server Error response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"BadGatewayError: Bad Gateway response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"HarnessIacmVariableSetList":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/VariableSetResourceCollection"}}},"VariableSetResourceCollection":{"type":"array","items":{"$ref":"#/components/schemas/HarnessIacmVariableSet"}},"HarnessIacmVariableSet":{"type":"object","properties":{"account":{"type":"string","description":"Account is the internal customer account ID.","minLength":1,"maxLength":128},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/VariableSetConnector"},"description":"define an array of connectors that belong to Variable Set"},"created":{"type":"integer","description":"Timestamp when the variable set was created.","format":"int64"},"description":{"type":"string","description":"Description provides long-form text about the resource."},"env_vars_count":{"type":"integer","description":"Number of environment variables defined in Variable Set.","format":"int64"},"environment_variables":{"type":"object","description":"map of environment variables configured on the Variable Set.","additionalProperties":{"$ref":"#/components/schemas/VariableSetVar"}},"id":{"type":"integer","description":"ID PK for internal uses","format":"int64"},"identifier":{"type":"string","description":"Identifier is the VariableSet identifier.","pattern":"^[^/?#\\s]+$","minLength":1,"maxLength":128},"name":{"type":"string","description":"Name is the human readable name for the resource.","minLength":1,"maxLength":128},"org":{"type":"string","description":"Org is the organisation identifier.","minLength":1,"maxLength":128},"project":{"type":"string","description":"Project is the project identifier.","minLength":1,"maxLength":128},"terraform_variable_files":{"type":"array","items":{"$ref":"#/components/schemas/VariableSetVarFile"},"description":"define an array of terraform variables files that belong to a different repository"},"terraform_variables":{"type":"object","description":"map of terraform variables configured on the Variable Set.","additionalProperties":{"$ref":"#/components/schemas/VariableSetVar"}},"tf_vars_count":{"type":"integer","description":"Number of TF variables defined in Variable Set.","format":"int64"},"updated":{"type":"integer","description":"Timestamp when the variable set was last updated.","format":"int64"},"var_files_count":{"type":"integer","description":"Number of variable files defined in Variable Set.","format":"int64"}},"description":"VariableSetResource is the representation for a variable-set association.","required":["account","org","project","identifier","name","env_vars_count","tf_vars_count","var_files_count"]},"VariableSetConnector":{"type":"object","properties":{"connector_ref":{"type":"string","description":"Connector reference in harness platform.","minLength":1,"maxLength":128},"created":{"type":"integer","description":"Timestamp when the variable set was created.","format":"int64"},"id":{"type":"integer","description":"ID PK for internal uses","format":"int64"},"type":{"type":"string","description":"Type indecates the connector type.","enum":["aws","azure","gcp","vault"]},"updated":{"type":"integer","description":"Timestamp when the variable set was last updated.","format":"int64"}},"description":"Variable Set provider connector","required":["connector_ref","type"]},"VariableSetVar":{"type":"object","properties":{"created":{"type":"integer","description":"Timestamp when the variable set was created.","format":"int64"},"id":{"type":"integer","description":"ID PK for internal uses","format":"int64"},"key":{"type":"string","description":"Key is the identifier for the secret.","pattern":"^[A-Za-z_][A-Za-z0-9_-]*$","minLength":1,"maxLength":128},"updated":{"type":"integer","description":"Timestamp when the variable set was last updated.","format":"int64"},"value":{"type":"string","description":"Value is the value of the secret."},"value_type":{"type":"string","description":"Type indicates the value type of the variable. In the case of secret this is a reference to an item in the secret store. Boolean values must be \"true\" or \"false\". JSON values must be valid JSON.","enum":["string","secret","boolean","json","number"]}},"description":"Variable is the representation for a single variable associated with a Variable Set.","required":["key","value","value_type"]},"VariableSetVarFile":{"type":"object","properties":{"created":{"type":"integer","description":"Timestamp when the variable set was created.","format":"int64"},"id":{"type":"integer","description":"ID PK for internal uses","format":"int64"},"repository":{"type":"string","description":"Repository is the name of the repository to use."},"repository_branch":{"type":"string","description":"Repository Branch in which the code should be accessed."},"repository_commit":{"type":"string","description":"Repository Commit/Tag in which the code should be accessed."},"repository_connector":{"type":"string","description":"Repository Connector is the reference to the connector to use for this code."},"repository_path":{"type":"string","description":"Repository Path is the path in which the infra code resides.","default":""},"repository_sha":{"type":"string","description":"Repository SHA in which the code should be accessed."},"updated":{"type":"integer","description":"Timestamp when the variable set was last updated.","format":"int64"}},"description":"VariableSetVarFile defines a variable file that lives in another repository than the workspace files.","required":["repository"]},"Error":{"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"]}}}}
```
