postPlatformProjectsByProjectAppsByAppDomainsByHostVerifyWithHttpInfo method

Future<Response> postPlatformProjectsByProjectAppsByAppDomainsByHostVerifyWithHttpInfo(
  1. String project,
  2. String app,
  3. String host
)

Checks a custom domain's DNS and turns it on if it passes.

Checks a custom domain's DNS and turns it on if it passes. It runs the DNS challenge check for a pending custom host and, when it passes, marks the host verified and renders it into the app's ingress so it starts serving. A check that RAN and did not pass is not an error: it answers 200 with the host still pending and the reason in detail, so a console can show the operator what DNS is actually returning. An already-verified host answers as-is without re-checking. A host not claimed by this app is 404. Requires a validated principal; 403 without one.

Note: This method returns the HTTP Response.

Parameters:

  • String project (required): Project is the project the application lives under, from the path.

  • String app (required): App is the application's slug, from the path.

  • String host (required): Host is the hostname, from the path.

Implementation

Future<Response> postPlatformProjectsByProjectAppsByAppDomainsByHostVerifyWithHttpInfo(String project, String app, String host,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/platform/projects/{project}/apps/{app}/domains/{host}/verify'
    .replaceAll('{project}', project)
    .replaceAll('{app}', app)
    .replaceAll('{host}', host);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}