import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| magicInterconnectsListInterconnectDetails | GET /accounts/{account_id}/magic/cf_interconnects/{cf_interconnect_id} | List interconnect Details |
| magicInterconnectsListInterconnects | GET /accounts/{account_id}/magic/cf_interconnects | List interconnects |
| magicInterconnectsUpdateInterconnect | PUT /accounts/{account_id}/magic/cf_interconnects/{cf_interconnect_id} | Update interconnect |
| magicInterconnectsUpdateMultipleInterconnects | PUT /accounts/{account_id}/magic/cf_interconnects | Update multiple interconnects |
MagicComponentsSchemasTunnelSingleResponse magicInterconnectsListInterconnectDetails(cfInterconnectId, accountId, xMagicNewHcTarget)
List interconnect Details
Lists details for a specific interconnect.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getMagicInterconnectsApi();
final String cfInterconnectId = cfInterconnectId_example; // String |
final String accountId = accountId_example; // String |
final bool xMagicNewHcTarget = true; // bool | If true, the health check target in the response body will be presented using the new object format. Defaults to false.
try {
final response = api.magicInterconnectsListInterconnectDetails(cfInterconnectId, accountId, xMagicNewHcTarget);
print(response);
} catch on DioException (e) {
print('Exception when calling MagicInterconnectsApi->magicInterconnectsListInterconnectDetails: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| cfInterconnectId | String | ||
| accountId | String | ||
| xMagicNewHcTarget | bool | If true, the health check target in the response body will be presented using the new object format. Defaults to false. | [optional] |
MagicComponentsSchemasTunnelSingleResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MagicComponentsSchemasTunnelsCollectionResponse magicInterconnectsListInterconnects(accountId, xMagicNewHcTarget)
List interconnects
Lists interconnects associated with an account.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getMagicInterconnectsApi();
final String accountId = accountId_example; // String |
final bool xMagicNewHcTarget = true; // bool | If true, the health check target in the response body will be presented using the new object format. Defaults to false.
try {
final response = api.magicInterconnectsListInterconnects(accountId, xMagicNewHcTarget);
print(response);
} catch on DioException (e) {
print('Exception when calling MagicInterconnectsApi->magicInterconnectsListInterconnects: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| xMagicNewHcTarget | bool | If true, the health check target in the response body will be presented using the new object format. Defaults to false. | [optional] |
MagicComponentsSchemasTunnelsCollectionResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MagicComponentsSchemasTunnelModifiedResponse magicInterconnectsUpdateInterconnect(cfInterconnectId, accountId, magicInterconnectTunnelUpdateRequest, xMagicNewHcTarget)
Update interconnect
Updates a specific interconnect associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getMagicInterconnectsApi();
final String cfInterconnectId = cfInterconnectId_example; // String |
final String accountId = accountId_example; // String |
final MagicInterconnectTunnelUpdateRequest magicInterconnectTunnelUpdateRequest = ; // MagicInterconnectTunnelUpdateRequest |
final bool xMagicNewHcTarget = true; // bool | If true, the health check target in the request and response bodies will be presented using the new object format. Defaults to false.
try {
final response = api.magicInterconnectsUpdateInterconnect(cfInterconnectId, accountId, magicInterconnectTunnelUpdateRequest, xMagicNewHcTarget);
print(response);
} catch on DioException (e) {
print('Exception when calling MagicInterconnectsApi->magicInterconnectsUpdateInterconnect: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| cfInterconnectId | String | ||
| accountId | String | ||
| magicInterconnectTunnelUpdateRequest | MagicInterconnectTunnelUpdateRequest | ||
| xMagicNewHcTarget | bool | If true, the health check target in the request and response bodies will be presented using the new object format. Defaults to false. | [optional] |
MagicComponentsSchemasTunnelModifiedResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MagicComponentsSchemasModifiedTunnelsCollectionResponse magicInterconnectsUpdateMultipleInterconnects(accountId, body, xMagicNewHcTarget)
Update multiple interconnects
Updates multiple interconnects associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getMagicInterconnectsApi();
final String accountId = accountId_example; // String |
final JsonObject body = ; // JsonObject |
final bool xMagicNewHcTarget = true; // bool | If true, the health check target in the request and response bodies will be presented using the new object format. Defaults to false.
try {
final response = api.magicInterconnectsUpdateMultipleInterconnects(accountId, body, xMagicNewHcTarget);
print(response);
} catch on DioException (e) {
print('Exception when calling MagicInterconnectsApi->magicInterconnectsUpdateMultipleInterconnects: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| body | JsonObject | ||
| xMagicNewHcTarget | bool | If true, the health check target in the request and response bodies will be presented using the new object format. Defaults to false. | [optional] |
MagicComponentsSchemasModifiedTunnelsCollectionResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]