Skip to content

@mbanq/core-sdk-js v0.50.0


@mbanq/core-sdk-js / commands / GetConfigurationByName

Function: GetConfigurationByName()

GetConfigurationByName(configName): Command<{ configName: string; }, GetConfigurationByNameResponse>

Defined in: src/commands/rest/globalConfiguration.ts:72

Retrieves a specific global configuration by its name.

This API returns the configuration details for a specific global configuration identified by its name, including its value, description, trap door setting, and value data type.

Parameters

configName

string

The name of the configuration to retrieve

Returns

Command<{ configName: string; }, GetConfigurationByNameResponse>

A Command that when executed returns the specific configuration details

Example

typescript
const getConfigCmd = GetConfigurationByName('virtual-card-reordering-limit');
const result = await getConfigCmd.execute(config);

console.log(`Value: ${result.value}`);
console.log(`Description: ${result.description}`);
console.log(`Data Type: ${result.valueDataType}`);

See

https://apidocs.cloud.mbanq.com/reference/get_v1-configurations-name-configname API Documentation

Released under the MIT License.