RemoteAdmin:admin modify region

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "'''admin_modify_region''' remotely allows to enable/disable voice and/or enable/disable public access to a region. === Enabling admin_modify_region === If not all functions ar...")
 
m (PHP: Fixed broken Google Code link, replacing with internal page)
 
(7 intermediate revisions by 4 users not shown)
Line 59: Line 59:
 
|
 
|
 
|-
 
|-
| ''region_name''
+
| ''region_id''
| name of region
+
| uuid of region
 
|
 
|
 
|}
 
|}
 
  
 
=== Error messages ===
 
=== Error messages ===
 
When an error occures the following error value are returned
 
When an error occures the following error value are returned
  
*region \"{REGION NAME}\" does not exist
+
* region \"{REGION NAME}\" does not exist
*other...
+
* other...
  
  
 
== Notes ==
 
== Notes ==
*region_id not implemented... patch in work...
+
* region_id not implemented... patch in work by Michelle Argus...
 
+
  
 
== Example ==
 
== Example ==
 
=== PHP ===
 
=== PHP ===
 +
This example needs the RemoteAdmin PHP Class file available [[RemoteAdmin:RemoteAdmin_Class|here]].
 +
 
<source lang="php">
 
<source lang="php">
 
<?php
 
<?php
Line 93: Line 93:
 
</source>
 
</source>
  
[[Category:Development]]
+
 
 +
 
 +
[[Category:RemoteAdmin]]
 +
[[Category:RemoteAdmin Commands]]

Latest revision as of 12:37, 16 March 2021

admin_modify_region remotely allows to enable/disable voice and/or enable/disable public access to a region.


Contents

[edit] Enabling admin_modify_region

If not all functions are enabled, use admin_modify_region to enable the function in the [RemoteAdmin] section

enabled_methods = admin_modify_region,...

[edit] Parameters

[edit] Required Parameters

These parameters are required

parameter Description Values
region_name Name of the region


[edit] Optional Parameters

These parameters are optional and do not need to be set

parameter Description Values
enable_voice enable/disable voice. true, false
public", enable/disable public region access. true, false


[edit] Returned Parameters

[edit] Returned Parameters

These parameters are returned by Remote Admin

parameter Description Values
success true when successfull true, false
error error message when not successfull
region_id uuid of region

[edit] Error messages

When an error occures the following error value are returned

  • region \"{REGION NAME}\" does not exist
  • other...


[edit] Notes

  • region_id not implemented... patch in work by Michelle Argus...

[edit] Example

[edit] PHP

This example needs the RemoteAdmin PHP Class file available here.

<?php
 
// Including the RemoteAdmin PHP class.
include('RemoteAdmin.php');
 
// Instantiate the class with parameters identical to the Python example above
$myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret');
 
// Invoke admin_create_user (multiple parameters)
$parameters = array('region_name' => 'My Plaza', 'public' => true);
$myRemoteAdmin->SendCommand('admin_modify_region', $parameters);
?>
Personal tools
General
About This Wiki