This is our public profile page about ploi.io.
ploi / ploi-php-sdk Goto Github PK
View Code? Open in Web Editor NEWPloi PHP SDK
Home Page: https://ploi.io
License: MIT License
Ploi PHP SDK
Home Page: https://ploi.io
License: MIT License
I always get the error:
{"message":"The given data was invalid.","errors":["There are still sites running on this user, please remove\/detach these first."],"links":[]}
I use the code below to destroy the components, but I always get the same error, even though the statuscode is 200.
//DESTROY DATABASE
$ploi->server($sites->server_id)->databases($sites->database->database_id)->delete();
//DESTROY SITE
$site = $ploi->server($sites->server_id)->sites($sites->site_id)->delete()->getResponse();
if ($site->withStatus(200)) {
//DESTROY USER
$ploi->server($sites->server_id)->systemUsers($sites->user->user_id)->delete();
}
Hi Dennis,
Maybe you can add the block robots you added to the ploi API and add it here too? ๐
We are using the API to setup sites on a cluster with multiple www frontends.
The API is very powerful but missing the settings to activate zero downtime deployments and synced deployments.
Would be great if that would be added.
From a support ticket I had open with Ploi I learned about an undocumented "acknowledge" endpoint for databases. For my specific use case I have an app that dynamically creates new databases and this acknowledge command tells Ploi the database exists. Here's a paste from the response in my support ticket.
POST https://ploi.io/api/servers/{server}/databases/acknowledge
With a parameter "name" as database name.
It would be useful for me if this could get added in. Thanks!
I saw that the readme/doc is not up to date.
Create an SSH key was not set.
You can add:
// Create SSH key
$ploi->servers(123)->sshKeys()->create(
$name = 'ssh key name',
$key = 'ssh key here',
$systemUser = 'ploi'
);
Hi, I was wondering if its possible to add a checkCertificate function?
Also, I was wondering how can I just get the error messes with out the Exception, I tried the following but the process still stops on error
try {
$ssl = $ploi_api->requestCertificate($this->domain,'');
} catch (Throwable $e) {
}
Also, I see your missing the tenants checkboxes on the profile->api keys
Thanks for the great API
I setup a database server and create the users via script (php api sdk), like this:
$db = $this->ploi->servers($serverId)->databases()->create(
$databaseName,
$databaseUser,
$databaseUserPassword,
$description
)->getJson();
Unfortunately, the created users are not allowed to access remotely. Checking the API docs (https://github.com/ploi/ploi-php-sdk) as well as the source code
https://github.com/ploi/ploi-php-sdk/blob/master/src/Ploi/Resources/Database.php
https://github.com/ploi/ploi-php-sdk/blob/master/src/Ploi/Resources/DatabaseUser.php
I do not find how to add a remote user. It would be great if that could be added.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.