security
This section covers the JS API classes for managing certificates (finding, creating, updating) and the base Security provision object.
This section covers the JS API classes for managing certificates (finding, creating, updating) and the base Security provision object.
This class allows making GET requests to the certificate resource in the OpenGate North API.
Constructor
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
Download a specific certificate by id. This execute a GET http method
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| id | string |
❌ | Id of the certificate. |
Tipo: Promise
Download a certificate using id and in a specific format. This execute a GET http method
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| id | string |
❌ | Id of the certificate. |
| mimetype | string |
❌ | Certificate format mimetype. |
Tipo: Promise
This is a base object that contains everything you can do with Certificates.
Constructor
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
This invokes a request to the OpenGate North API, and the callback is managed via promises. This method creates a certificate element.
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | File |
❌ | this File is the certificate |
Tipo: Promise
This invokes a request to the OpenGate North API, and the callback is managed via promises. This method updates a certificate element.
Tipo: Promise
Set the administrativeState attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| administrativeState | string |
❌ |
Tipo: Certificates
Set the description attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| description | string |
❌ | optional field |
Tipo: Certificates
Set the domains attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| domains | Array |
❌ |
Tipo: Certificates
Set the id attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| id | string |
❌ | required field on delete |
Tipo: Certificates
Set the name attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| name | string |
❌ | required field |
Tipo: Certificates
Set the parameters attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| parameters | string |
❌ | optional field |
Tipo: Certificates
Set the tags attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| tags | Array |
❌ |
Tipo: Certificates
Set the usages attribute
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| usages | Array |
❌ |
Tipo: Certificates
This extends BaseProvision and contains everything you can do with Security.
Constructor
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | this is configuration about Opengate North API. |
| url | string |
❌ | this define a specific resource to make the provision |