> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-rest-api-guide/api-reference/infrastructure/providers/custom/variables.md).

# Variables

## List Variables

> Retrieve the Variable list of a Custom Provider.

```json
{"openapi":"3.0.1","info":{"title":"Parallels RAS - REST API v1.0","version":"1.0"},"paths":{"/api/Provider/{id}/custom/variable":{"get":{"tags":["0-Infrastructure/Providers//0-Basic Operations"],"summary":"List Variables","description":"Retrieve the Variable list of a Custom Provider.","operationId":"522e0038-8ed4-44bb-903c-a5123cd386c3","parameters":[{"name":"id","in":"path","description":"Provider ID","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Success","content":{"application/json; api-version=1.0":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomizationVariable"}}}}},"401":{"description":"Unauthorized","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Not Found","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"CustomizationVariable":{"type":"object","properties":{"name":{"type":"string","description":"<para type=\"description\">Variable name.</para>","nullable":true},"value":{"type":"string","description":"<para type=\"description\">Value of the variable.</para>","nullable":true},"type":{"$ref":"#/components/schemas/VariableType"}},"additionalProperties":false,"description":"<para type=\"synopsis\">Customization - Variable</para>\r\n<para type=\"description\"></para>"},"VariableType":{"enum":[["0 = Regular","1 = Secure"]],"type":"string","description":"<para type=\"synopsis\">Variable Type</para>\r\n<para type=\"description\"></para>","format":"int32"},"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}}
```

## Add Variable

> Add a Variable to a Custom Provider.

```json
{"openapi":"3.0.1","info":{"title":"Parallels RAS - REST API v1.0","version":"1.0"},"paths":{"/api/Provider/{id}/custom/variable":{"post":{"tags":["0-Infrastructure/Providers//0-Basic Operations"],"summary":"Add Variable","description":"Add a Variable to a Custom Provider.","operationId":"9fe9092c-d1b6-4b4d-bd25-5e675cf45cbc","parameters":[{"name":"id","in":"path","description":"Provider ID","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"description":"Custom Variable configuration.","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/AddProviderCustomVariable"}}}},"responses":{"201":{"description":"Created"},"401":{"description":"Unauthorized","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Not Found","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Conflict","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"AddProviderCustomVariable":{"required":["variableName"],"type":"object","properties":{"variableName":{"maxLength":255,"minLength":1,"type":"string","description":"<para type=\"description\">The variable to be added.</para>","nullable":true},"value":{"maxLength":255,"minLength":1,"type":"string","description":"<para type=\"description\">Value of the variable.</para>","nullable":true},"secureValue":{"type":"string","description":"<para type=\"description\">Secure value of the variable.</para>","nullable":true}},"additionalProperties":false,"description":"<para type=\"synopsis\">Add a new Variable to a Custom Provider</para>\r\n<para type=\"description\"></para>"},"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}}
```

## Update Variable

> Update a Variable of a Custom Provider.

```json
{"openapi":"3.0.1","info":{"title":"Parallels RAS - REST API v1.0","version":"1.0"},"paths":{"/api/Provider/{id}/custom/variable/{variableName}":{"put":{"tags":["0-Infrastructure/Providers//0-Basic Operations"],"summary":"Update Variable","description":"Update a Variable of a Custom Provider.","operationId":"dcfc8659-cb92-4e22-b90e-b5b0e6f8d18b","parameters":[{"name":"id","in":"path","description":"Provider ID","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"variableName","in":"path","description":"Variable name of the variable to update","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Custom Variable configuration.","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/SetProviderCustomVariable"}}}},"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Not Found","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"SetProviderCustomVariable":{"type":"object","properties":{"newVariableName":{"maxLength":255,"minLength":1,"type":"string","description":"<para type=\"description\">The new name of the variable.</para>","nullable":true},"value":{"maxLength":255,"minLength":1,"type":"string","description":"<para type=\"description\">Value of the variable.</para>","nullable":true},"secureValue":{"type":"string","description":"<para type=\"description\">Secure value of the variable.</para>","nullable":true}},"additionalProperties":false,"description":"<para type=\"synopsis\">Set a Variable from a Custom Provider</para>\r\n<para type=\"description\"></para>"},"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}}
```

## Delete Variable

> Remove a Variable from a Custom Provider.

```json
{"openapi":"3.0.1","info":{"title":"Parallels RAS - REST API v1.0","version":"1.0"},"paths":{"/api/Provider/{id}/custom/variable/{variableName}":{"delete":{"tags":["0-Infrastructure/Providers//0-Basic Operations"],"summary":"Delete Variable","description":"Remove a Variable from a Custom Provider.","operationId":"3d58ace5-501d-421e-91e0-0e3070d2e098","parameters":[{"name":"id","in":"path","description":"Provider ID","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"variableName","in":"path","description":"Variable name of the variable to remove","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"401":{"description":"Unauthorized","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Not Found","content":{"application/json; api-version=1.0":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-rest-api-guide/api-reference/infrastructure/providers/custom/variables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
