{"tags":[{"name":"Self Signed Certificate"}],"info":{"version":"3.2.0","termsOfService":"http://barracuda.com","title":"Self Signed Certificate API"},"basePath":"/restapi/v3.2","host":":8000","components":{"schemas":{}},"swagger":"2.0","definitions":{"Self Signed Certificate POST body":{"required":["common-name","country-code","name"],"properties":{"allow-private-key-export":{"enum":["Yes","No"],"default":"","type":"string","description":"If set to Yes, the Private Key gets downloaded along with the certificate."},"organization-name":{"type":"string","description":"Organization Name","maximum":64},"key-size":{"enum":["1024","2048","4096"],"type":"string","description":"Key Size","default":""},"organizational-unit":{"maximum":64,"description":"Organizational Unit Name","type":"string"},"common-name":{"maximum":64,"description":"Common Name","type":"string"},"key-type":{"enum":["RSA","ECDSA"],"type":"string","description":"Select Key Type:","default":""},"city":{"description":"Locality Name","type":"string","maximum":128},"state":{"maximum":128,"type":"string","description":"State or Province"},"elliptic-curve-name":{"default":"","description":"Elliptic Curve Name","type":"string","enum":["secp256r1","secp384r1","secp521r1"]},"san-certificate":{"type":"string","description":"san certificate","schema":{"type":"array","items":[]},"example":[]},"name":{"description":"Certificate Name","type":"string","maximum":512},"country-code":{"type":"string","description":"Country","maximum":2,"minimum":2}}},"Self Signed Certificate PUT body":{"properties":{"download-type":{"enum":["pem","pkcs","csr"],"description":"A Certificate Signing Request (CSR) and/or Certificate can be downloaded.","type":"string"},"encrypt-password":{"description":"Encryption Password is used to extract the private key from PKCS #12 token.","type":"string"}}}},"paths":{"/certificates/self-signed-certificate/{Certificate Name} ":{"put":{"description":"","tags":["Self Signed Certificate"],"summary":"Self Signed Certificate Operations","responses":{"200":{"description":"Successfully updated."},"404":{"description":"Resource Not Found."},"400":{"description":"Invalid Request."},"415":{"description":"Invalid JSON data specified."},"500":{"description":"Internal Server Error."},"406":{"description":"JSON Data not acceptable."},"405":{"description":"Method Not Allowed."},"401":{"description":"Invalid Credentials."}},"produces":["application/json"],"parameters":[{"in":"header","description":"Login token","type":"string","required":"true","name":"Authorization"},{"in":"path","type":"string","description":"Certificate Name of Self Signed Certificate","required":"true","name":"Certificate Name"},{"in":"body","description":"Body Parameter of Self Signed Certificate","schema":{"$ref":"#/definitions/Self Signed Certificate PUT body"},"type":"string","name":"Self Signed Certificate","required":"true"},{"collectionFormat":"multi","in":"query","name":"operation","type":"array","items":{"enum":["download"],"types":"string"},"description":""}]}},"/certificates/self-signed-certificate/{Certificate Name} ":{"get":{"produces":["application/json"],"parameters":[{"in":"header","type":"string","description":"Login token","name":"Authorization","required":"true"},{"in":"path","name":"Certificate Name","required":"true","type":"string","description":"Certificate Name of Self Signed Certificate"},{"collectionFormat":"multi","in":"query","type":"array","items":{"enum":["allow-private-key-export","city","common-name","country-code","elliptic-curve-name","expiry","key-size","key-type","name","organization-name","organizational-unit","san-certificate","serial","state"],"types":"string"},"description":"","name":"parameters"}],"responses":{"400":{"description":"Invalid Request."},"404":{"description":"Resource Not Found."},"200":{"description":"Successful operation."},"500":{"description":"Internal Server Error."},"401":{"description":"Invalid Credentials."},"405":{"description":"Method Not Allowed."}},"summary":"FETCH Information of Self Signed Certificate","tags":["Self Signed Certificate"],"description":""}},"/certificates/self-signed-certificate":{"post":{"parameters":[{"name":"Authorization","required":"true","type":"string","description":"Login token","in":"header"},{"schema":{"$ref":"#/definitions/Self Signed Certificate POST body"},"description":"Body Parameter of Self Signed Certificate","type":"string","required":"true","name":"Self Signed Certificate","in":"body"}],"produces":["application/json"],"responses":{"500":{"description":"Internal Server Error."},"405":{"description":"Method Not Allowed."},"406":{"description":"JSON Data not acceptable."},"401":{"description":"Invalid Credentials."},"201":{"description":"Successfully created."},"404":{"description":"Resource Not Found."},"400":{"description":"Invalid Request."},"415":{"description":"Invalid JSON data specified."}},"tags":["Self Signed Certificate"],"summary":"ADD Information of Self Signed Certificate","description":""}},"/certificates/self-signed-certificate ":{"get":{"description":"","summary":"FETCH Information of Self Signed Certificate","tags":["Self Signed Certificate"],"responses":{"400":{"description":"Invalid Request."},"404":{"description":"Resource Not Found."},"200":{"description":"Successful operation."},"500":{"description":"Internal Server Error."},"401":{"description":"Invalid Credentials."},"405":{"description":"Method Not Allowed."}},"parameters":[{"type":"string","description":"Login token","name":"Authorization","required":"true","in":"header"},{"items":{"enum":["allow-private-key-export","city","common-name","country-code","elliptic-curve-name","expiry","key-size","key-type","name","organization-name","organizational-unit","san-certificate","serial","state"],"types":"string"},"description":"","type":"array","name":"parameters","in":"query","collectionFormat":"multi"}],"produces":["application/json"]}},"/certificates/self-signed-certificate/{Certificate Name}":{"delete":{"description":"","produces":["application/json"],"parameters":[{"name":"Authorization","required":"true","description":"Login token","type":"string","in":"header"},{"in":"path","name":"Certificate Name","required":"true","description":"Certificate Name of Self Signed Certificate","type":"string"}],"responses":{"405":{"description":"Method Not Allowed."},"401":{"description":"Invalid Credentials."},"200":{"description":"Successfully deleted."},"500":{"description":"Internal Server Error."},"400":{"description":"Invalid Request."},"404":{"description":"Resource Not Found."}},"summary":"DELETE Information of Self Signed Certificate","tags":["Self Signed Certificate"]}}},"schemes":["http"]}