Class PreflightResource
java.lang.Object
org.graylog2.bootstrap.preflight.web.resources.PreflightResource
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPreflightResource(NodeService<DataNodeDto> nodeService, CaKeystore caKeystore, ClusterConfigService clusterConfigService, DataNodeCommandService dataNodeCommandService, DatanodeConnectivityCheck datanodeConnectivityCheck) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameters(String nodeID, @NotNull CertParameters params) jakarta.ws.rs.core.ResponsecreateCA(@NotNull @Valid CreateCARequest request) voidgenerate()get()voidvoidjakarta.ws.rs.core.Response
-
Constructor Details
-
PreflightResource
@Inject public PreflightResource(NodeService<DataNodeDto> nodeService, CaKeystore caKeystore, ClusterConfigService clusterConfigService, DataNodeCommandService dataNodeCommandService, DatanodeConnectivityCheck datanodeConnectivityCheck)
-
-
Method Details
-
listDataNodes
@GET @Path("/data_nodes") @RequiresPermissions("preflight:only") public List<PreflightResource.DataNode> listDataNodes() -
getProvisioningState
-
get
@GET @Path("/ca") @RequiresPermissions("preflight:only") public CertificateAuthorityInformation get() throws KeyStoreStorageException- Throws:
KeyStoreStorageException
-
getCaCertificate
@GET @Path("/ca/certificate") @Produces("text/plain") @RequiresPermissions("preflight:only") public String getCaCertificate() -
createCA
@POST @Path("/ca/create") @RequiresPermissions("preflight:only") public jakarta.ws.rs.core.Response createCA(@NotNull @Valid @NotNull @Valid CreateCARequest request) throws CACreationException, KeyStoreStorageException, KeyStoreException, NoSuchAlgorithmException -
uploadCA
-
startOver
@DELETE @Path("/startOver") @RequiresPermissions("preflight:only") public void startOver() -
startOver
@DELETE @Path("/startOver/{nodeID}") @RequiresPermissions("preflight:only") public void startOver(@PathParam("nodeID") String nodeID) -
generate
@POST @Path("/generate") @RequiresPermissions("preflight:only") public void generate() -
addParameters
@POST @Path("/{nodeID}") @Consumes("application/json") @RequiresPermissions("preflight:only") public void addParameters(@PathParam("nodeID") String nodeID, @NotNull @NotNull CertParameters params)
-