kiranchavala commented on code in PR #197:
URL:
https://github.com/apache/cloudstack-terraform-provider/pull/197#discussion_r2354559058
##########
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.
Review Comment:
Here also to 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]