You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/api/command/user/dns/AddDnsServerCmd.java
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -68,17 +68,22 @@ public class AddDnsServerCmd extends BaseCmd {
68
68
@Parameter(name = ApiConstants.PORT, type = CommandType.INTEGER, description = "Port number of the external DNS server")
69
69
privateIntegerport;
70
70
71
-
@Parameter(name = ApiConstants.IS_PUBLIC, type = CommandType.BOOLEAN, description = "Whether the DNS server is publicly accessible by other accounts")
71
+
@Parameter(name = ApiConstants.IS_PUBLIC, type = CommandType.BOOLEAN,
72
+
description = "Whether this DNS server can be used by accounts other than the owner to create and manage DNS zones")
72
73
privateBooleanisPublic;
73
74
74
-
@Parameter(name = ApiConstants.PUBLIC_DOMAIN_SUFFIX, type = CommandType.STRING, description = "The domain suffix used for public access (e.g. public.example.com)")
75
+
@Parameter(name = ApiConstants.PUBLIC_DOMAIN_SUFFIX, type = CommandType.STRING,
76
+
description = "Domain suffix that restricts DNS zones created by non-owner accounts to subdomains of this " +
77
+
"suffix (for example, sub.example.com under example.com)")
75
78
privateStringpublicDomainSuffix;
76
79
77
80
@Parameter(name = ApiConstants.NAME_SERVERS, type = CommandType.LIST, collectionType = CommandType.STRING,
78
-
required = true, description = "Comma separated list of name servers")
81
+
required = true,
82
+
description = "Comma separated list of name servers; used to create NS records for the DNS Zone (for example, ns1.example.com, ns2.example.com)")
79
83
privateList<String> nameServers;
80
84
81
-
@Parameter(name = "externalserverid", type = CommandType.STRING, description = "External server id or hostname for the DNS server, e.g., 'localhost' for PowerDNS")
85
+
@Parameter(name = "externalserverid", type = CommandType.STRING,
86
+
description = "External server id or hostname for the DNS server, e.g., 'localhost' for PowerDNS")
@@ -58,20 +60,25 @@ public class UpdateDnsServerCmd extends BaseCmd {
58
60
@Parameter(name = ApiConstants.URL, type = CommandType.STRING, description = "API URL of the provider")
59
61
privateStringurl;
60
62
61
-
@Parameter(name = ApiConstants.DNS_API_KEY, type = CommandType.STRING, required = false, description = "API Key or Credentials for the external provider")
63
+
@Parameter(name = ApiConstants.DNS_API_KEY, type = CommandType.STRING, description = "API Key or Credentials for the external provider")
62
64
privateStringdnsApiKey;
63
65
64
66
@Parameter(name = ApiConstants.PORT, type = CommandType.INTEGER, description = "Port number of the external DNS server")
65
67
privateIntegerport;
66
68
67
-
@Parameter(name = ApiConstants.IS_PUBLIC, type = CommandType.BOOLEAN, description = "Whether the DNS server is publicly accessible by other accounts")
69
+
@Parameter(name = ApiConstants.IS_PUBLIC, type = CommandType.BOOLEAN,
70
+
description = "Whether this DNS server can be used by accounts other than the owner to create and manage DNS zones")
68
71
privateBooleanisPublic;
69
72
70
-
@Parameter(name = ApiConstants.PUBLIC_DOMAIN_SUFFIX, type = CommandType.STRING, description = "The domain suffix used for public access (e.g. public.example.com)")
73
+
@Parameter(name = ApiConstants.PUBLIC_DOMAIN_SUFFIX, type = CommandType.STRING,
74
+
description = "Domain suffix that restricts DNS zones created by non-owner accounts to subdomains of this " +
75
+
"suffix (for example, sub.example.com under example.com)")
71
76
privateStringpublicDomainSuffix;
72
77
73
-
@Parameter(name = ApiConstants.NAME_SERVERS, type = CommandType.STRING, description = "Comma separated list of name servers")
74
-
privateStringnameServers;
78
+
@Parameter(name = ApiConstants.NAME_SERVERS, type = CommandType.LIST, collectionType = CommandType.STRING,
79
+
required = true,
80
+
description = "Comma separated list of name servers; used to create NS records for the DNS Zone (for example, ns1.example.com, ns2.example.com)")
81
+
privateList<String> nameServers;
75
82
76
83
@Parameter(name = ApiConstants.STATE, type = CommandType.STRING, description = "Update state for the DNS server (Enabled, Disabled)")
0 commit comments