addDomainWithHttpInfo method
Add a domain
Add a new domain for your instance. Useful in the case of multi-domain instances, allows adding satellite domains to an instance. The new domain must have a name
. The domain name can contain the port for development instances, like localhost:3000
. At the moment, instances can have only one primary domain, so the is_satellite
parameter must be set to true
. If you're planning to configure the new satellite domain to run behind a proxy, pass the proxy_url
parameter accordingly.
Note: This method returns the HTTP Response
.
Parameters:
- AddDomainRequest addDomainRequest:
Implementation
Future<http.Response> addDomainWithHttpInfo({
AddDomainRequest? addDomainRequest,
}) async {
// ignore: prefer_const_declarations
final path = r'/domains';
// ignore: prefer_final_locals
Object? postBody = addDomainRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}