Upload Mib

Upload Mib

API to uplaod a mib file. Files with the same name are over-written

Request
URI
POST
https://{api_host}/dcc/v1/mibs
COPY
Request Body
MibUploadRequest of type(s) multipart/form-data
Required
{
    "file": "string",
    "name": "RFC-MIB"
}
string As binary As binary
file
Required

The file to upload. These are usually text files

string
name
Required

The name parameter for the request. This specifies the name of the file uplaoded

Authentication
This operation uses the following authentication methods.
Responses
200

OK Returned name of uploaded MIB

Returns MibUploadResponse of type(s) application/json
"MibUploadResponse Object"
string
name
Optional

Name of the file uploaded

string
message
Optional

Message indicating success or failure


500

INTERNAL SERVER ERROR Error on the server

Returns MibError of type(s) application/json
"MibError Object"
string
Error
Optional

Explanation of the error


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: multipart/form-data' -d '{"file:"string","name:"string"}' https://{api_host}/dcc/v1/mibs