Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 2.06 KB

IpAddressApi.md

File metadata and controls

70 lines (47 loc) · 2.06 KB

NETZFABRIK\IpAddressApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
apiIpAddressesPost() POST /ip-addresses Create IP address

apiIpAddressesPost()

apiIpAddressesPost($ipAddress): \NETZFABRIK\Model\IpAddress

Create IP address

Create a new IP address for the customer

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: JWT
$config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new NETZFABRIK\Api\IpAddressApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$ipAddress = new \NETZFABRIK\Model\IpAddress(); // \NETZFABRIK\Model\IpAddress | The new IpAddress resource

try {
    $result = $apiInstance->apiIpAddressesPost($ipAddress);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling IpAddressApi->apiIpAddressesPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
ipAddress \NETZFABRIK\Model\IpAddress The new IpAddress resource

Return type

\NETZFABRIK\Model\IpAddress

Authorization

JWT

HTTP request headers

  • Content-Type: application/json, text/html
  • Accept: application/json, text/html

[Back to top] [Back to API list] [Back to Model list] [Back to README]