Application Connections
List Application Connections
SDK Method
application_connection.List()
Return Values
Returns a *application_connection.Iter and an error. Range over All() to receive files_sdk.ApplicationConnection values and errors.
Check each loop error before using its resource. Next() and Err() remain supported.
Authorization Requirement
Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.
Additional Arguments
Show Application Connection
SDK Method
application_connection.Find()
Return Values
Returns a files_sdk.ApplicationConnection value and an error.
Authorization Requirement
Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.
ApplicationConnectionFindParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Application Connection ID. |
Create Application Connection
SDK Method
application_connection.Create()
Return Values
Returns a files_sdk.ApplicationConnection value and an error.
Authorization Requirement
Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.
ApplicationConnectionCreateParams Fields
| Field | Default | Description |
|---|---|---|
| Name string Required | Connection display name. | |
| SecretId int64 | ID of the credential in the Secret Store, if the connection uses a credential. | |
| ApplicationKey string Required | Application key from the Automation applications list. | |
| Origin string Required | HTTPS origin for this connection. | |
| WorkspaceId int64 | 0 | Workspace that owns this connection. |
Update Application Connection
SDK Method
application_connection.Update()
Return Values
Returns a files_sdk.ApplicationConnection value and an error.
Authorization Requirement
Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.
ApplicationConnectionUpdateParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Application Connection ID. |
| Name string | Connection display name. |
| SecretId int64 | ID of the credential in the Secret Store, if the connection uses a credential. |
Delete Application Connection
SDK Method
application_connection.Delete()
Return Values
Returns an error, or nil on success.
Authorization Requirement
Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.
ApplicationConnectionDeleteParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Application Connection ID. |
The ApplicationConnection Object
Some of the methods above return a ApplicationConnection object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id int64 | Connection ID. |
| WorkspaceId int64 | Workspace that owns this connection. |
| Name string | Connection display name. |
| ApplicationKey string | Application key from the Automation applications list. |
| Origin string | HTTPS origin for this connection. |
| SecretId int64 | ID of the credential in the Secret Store, if the connection uses a credential. |
| Authentication object | Current credential type and placement, without the secret value. |
| CreatedAt date-time | Time the connection was created. |
| UpdatedAt date-time | Time the connection was updated. |