kiranchavala commented on code in PR #197:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/197#discussion_r2354583645


##########
website/docs/r/limits.html.markdown:
##########
@@ -0,0 +1,88 @@
+---
+layout: "cloudstack"
+page_title: "CloudStack: cloudstack_limits"
+sidebar_current: "docs-cloudstack-limits"
+description: |-
+  Provides a CloudStack limits resource.
+---
+
+# cloudstack_limits
+
+Provides a CloudStack limits resource. This can be used to manage resource 
limits for accounts, domains, and projects within CloudStack.
+
+## Example Usage
+
+```hcl
+# Set instance limit for the root domain
+resource "cloudstack_limits" "instance_limit" {
+  type         = "instance"
+  max          = 20
+}
+
+# Set volume limit for a specific account in a domain
+resource "cloudstack_limits" "volume_limit" {
+  type         = "volume"
+  max          = 50
+  account      = "acct1"
+  domainid     = "domain-uuid"
+}
+
+# Set primary storage limit for a project
+resource "cloudstack_limits" "storage_limit" {
+  type         = "primarystorage"
+  max          = 1000  # GB
+  project      = "project-uuid"
+}
+
+# Set unlimited CPU limit
+resource "cloudstack_limits" "cpu_unlimited" {
+  type         = "cpu"
+  max          = -1  # Unlimited
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `type` - (Required, ForceNew) The type of resource to update. Available 
types are:
+  * `instance`
+  * `ip`
+  * `volume`
+  * `snapshot`
+  * `template`
+  * `project`
+  * `network`
+  * `vpc`
+  * `cpu`
+  * `memory`
+  * `primarystorage`
+  * `secondarystorage`
+
+* `account` - (Optional, ForceNew) Update resource for a specified account. 
Must be used with the `domainid` parameter.
+* `domainid` - (Optional, ForceNew) Update resource limits for all accounts in 
specified domain. If used with the `account` parameter, updates resource limits 
for a specified account in specified domain.
+* `max` - (Optional) Maximum resource limit. Use `-1` for unlimited resource 
limit. A value of `0` means zero resources are allowed, though the CloudStack 
API may return `-1` for a limit set to `0`.
+* `project` - (Optional, ForceNew) Update resource limits for project.
+
+## Attributes Reference
+
+The following attributes are exported:
+
+* `id` - The ID of the resource.
+* `type` - The type of resource.
+* `max` - The maximum number of the resource.
+* `account` - The account of the resource limit.
+* `domainid` - The domain ID of the resource limit.

Review Comment:
   domain_id



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to