AddServiceContainerAsync

Adds a new service container to a folder. Returns (Task)

Create new Service Container in the designated Folder.

Name Description
folder The folder to add the service container to
item The service container information to add

Add Service Container Async

Example in C#

// Returns: ServiceContainerInfo
var serviceContainerInfo = await client.AddServiceContainerAsync(FolderInfo folder, ServiceContainerInfo item);

Example in CURL



           curl -X POST \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/servicecontainers \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -d '{
                       "$type":"Feenics.Keep.WebApi.Model.ServiceContainerInfo, Feenics.Keep.WebApi.Model",
                       "MacAddress":null,
                       "IsAuthenticated":false,
                       "Key":null,
                       "CommonName":"ServiceContainerInfoFor_cUrl",
                       "InFolderHref":null,
                       "InFolderKey":null,
                       "Links":[],
                       "ObjectLinks":null,
                       "Metadata":null,
                       "Notes":null,
                       "Tags":null,
                       "Monikers":null,
                       "Href":null
                   }'