Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical:api-profiles [2025/04/02 11:49] – [Add Profiles From List] systemtechnical:api-profiles [2025/04/02 12:51] (current) system
Line 39: Line 39:
     $api_url = 'http://127.0.0.1/cake4/rd_cake/profiles/simple_add.json';     $api_url = 'http://127.0.0.1/cake4/rd_cake/profiles/simple_add.json';
     $names_file = 'names.txt'; // replace with your text file     $names_file = 'names.txt'; // replace with your text file
-    $token = 'fe707fcd-6316-4c26-b14c-03ae7fc49065'; // replace with your token (If you want to add the profile as system wide, you will need root's token) +    $token = '617088c3-f908-4f1f-8091-82223c571cc67'; // replace with your token (If you want to add the profile as system wide, you will need root's token) 
-    $cloud_id = 23; // replace with the Cloud ID that you want to work on.+    $cloud_id = 56; // replace with the Cloud ID that you want to work on.
  
     // Read names from file     // Read names from file
Line 47: Line 47:
     // Set API payload     // Set API payload
     $payload = [     $payload = [
-        "for_system"            => "on",+     //   "for_system"            => "on",
         "id"                    => "",         "id"                    => "",
         "name"                  => "",         "name"                  => "",
Line 86: Line 86:
       * The server's FQDN / IP Address.       * The server's FQDN / IP Address.
   * The Token can be found when you edit an Admin.   * The Token can be found when you edit an Admin.
 +<panel type="info">
 +{{:technical:api:admin_api_key.png }}
 +</panel>
   * The Cloud ID is listed under the Cloud Applet.   * The Cloud ID is listed under the Cloud Applet.
 +<panel type="info"> 
 +{{:technical:api:mzanzifibre.png }} 
 +</panel>
   * Below is the result of our script:   * Below is the result of our script:
 +<panel type="info"> 
 +{{:technical:api:mzanzifibreprofiles.png }} 
 +</panel>
  
  
  • technical/api-profiles.1743587369.txt.gz
  • Last modified: 2025/04/02 11:49
  • by system