ConnectionInfo - Scoped, Global
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The ConnectionInfo API enables you to get connection attribute information through the connection and credential alias.
You can use this API in scoped applications or within the global scope. In scoped scripts,
use the sn_cc
namespace identifier.
For more information on connections and credentials, see Credentials and connection information.
This function retrieves connection attribute information identified by the given connection and credential alias.
Scoped ConnectionInfo - getAttribute(String name)
Returns the value of a ConnectionInfo attribute with the specified property name.
Name | Type | Description |
---|---|---|
name | String | Name of a ConnectionInfo object property. |
Type | Description |
---|---|
String | Value of a specified ConnectionInfo property. |
Example
Scoped ConnectionInfo - getCredentialAttribute()
Returns the value of credential attributes for a specified connection.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Object | Key-value pair map of credential attributes. |
Example
Scoped ConnectionInfo - getDataMap()
Returns the connection attributes as a collection of key-value pairs.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Object | Key-value pair map of connection attributes. |
Example
Scoped ConnectionInfo - getExtendedAttributes()
Returns the extended attributes as a collection of key-value pairs.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Object | Key-value pair map of extended attributes. |