
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@dynatrace-sdk/client-hub
Advanced tools
[](https://www.npmjs.com/package/@dynatrace-sdk/client-hub/v/1.19.2) [](https://opensource.org/licenses/Apache-2.0)
The Hub API provides catalog content, such as Dynatrace Apps, Extensions, and Technologies, in the context of the current environment.
npm install @dynatrace-sdk/client-hub
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Full API reference for the latest version of the SDK is also available at the Dynatrace Developer.
import { appsClient } from '@dynatrace-sdk/client-hub';
Provides detailed information about an app
Required scope: hub:catalog:read
Name | Type | Description |
---|---|---|
config.addFields | Array<"hubItemId" | "manifest" | "resourceContext" | "contentCount"> | A list of fields that are added to the default set of fields. |
config.id*required | string |
Return type | Status code | Description |
---|---|---|
Detail | 200 | Detailed information about an app |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { appsClient } from "@dynatrace-sdk/client-hub";
const data = await appsClient.getAppDetails({ id: "..." });
List overview information of all apps
Required scope: hub:catalog:read
Name | Type | Description |
---|---|---|
config.addFields | Array<"hubItemId" | "resourceContext" | "contentCount"> | A list of fields that are added to the default set of fields. |
config.onlyCompatible | boolean | Filters apps and their releases to exclude incompatible instances. If true or missing the resulting releases will have compatibility of COMPATIBLE or UNKNOWN. |
Return type | Status code | Description |
---|---|---|
OverviewsList | 200 | A list of overview information |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { appsClient } from "@dynatrace-sdk/client-hub";
const data = await appsClient.getAppOverviewList();
Provides a list of releases published for an app, including revoked releases
Required scope: hub:catalog:read
Name | Type |
---|---|
config.addFields | Array<"manifest" | "contentCount"> |
config.id*required | string |
Return type | Status code | Description |
---|---|---|
ReleasesList | 200 | A list of releases |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { appsClient } from "@dynatrace-sdk/client-hub";
const data = await appsClient.getAppReleases({ id: "..." });
import { categoriesClient } from '@dynatrace-sdk/client-hub';
List Hub categories, including the IDs of the associated items and their content blocks if any
Required scope: hub:catalog:read
Return type | Status code | Description |
---|---|---|
Categories | 200 | The categories |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { categoriesClient } from "@dynatrace-sdk/client-hub";
const data = await categoriesClient.getCategories();
import { extensionsClient } from '@dynatrace-sdk/client-hub';
Provides detailed information about an extension
Required scope: hub:catalog:read
Name | Type | Description |
---|---|---|
config.addFields | Array<"hubItemId" | "extensionMetadata"> | A list of fields that are added to the default set of fields. |
config.id*required | string |
Return type | Status code | Description |
---|---|---|
Detail | 200 | Detailed information about an extension |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { extensionsClient } from "@dynatrace-sdk/client-hub";
const data = await extensionsClient.getExtensionDetails({
id: "...",
});
List overview information of all extensions
Required scope: hub:catalog:read
Name | Type | Description |
---|---|---|
config.addFields | Array<"hubItemId"> | A list of fields that are added to the default set of fields. |
config.onlyCompatible | boolean | A flag to reduce the list to only include compatible extensions with their latest compatible version. |
Return type | Status code | Description |
---|---|---|
OverviewsList | 200 | A list of overview information |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { extensionsClient } from "@dynatrace-sdk/client-hub";
const data =
await extensionsClient.getExtensionOverviewList();
Provides a list of releases published for an extension, including revoked releases
Required scope: hub:catalog:read
Name | Type | Description |
---|---|---|
config.addFields | Array<"extensionMetadata"> | A list of fields that are added to the default set of fields. |
config.id*required | string |
Return type | Status code | Description |
---|---|---|
ReleasesList | 200 | A list of releases |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { extensionsClient } from "@dynatrace-sdk/client-hub";
const data = await extensionsClient.getExtensionReleases({
id: "...",
});
import { technologiesClient } from '@dynatrace-sdk/client-hub';
Provides detailed information about a technology
Required scope: hub:catalog:read
Name | Type | Description |
---|---|---|
config.addFields | Array<"hubItemId"> | A list of fields that are added to the default set of fields. |
config.id*required | string |
Return type | Status code | Description |
---|---|---|
Detail | 200 | Detailed information about a technology |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { technologiesClient } from "@dynatrace-sdk/client-hub";
const data = await technologiesClient.getTechnologyDetails({
id: "...",
});
List overview information of all technologies
Required scope: hub:catalog:read
Name | Type | Description |
---|---|---|
config.addFields | Array<"hubItemId"> | A list of fields that are added to the default set of fields. |
config.onlyCompatible | boolean | A flag to reduce the list to only include compatible technologies. |
Return type | Status code | Description |
---|---|---|
OverviewsList | 200 | A list of overview information |
Error Type | Error Message |
---|---|
ErrorResponse | An error occurred |
import { technologiesClient } from "@dynatrace-sdk/client-hub";
const data =
await technologiesClient.getTechnologyOverviewList();
Name | Type |
---|---|
total*required | number |
Name | Type |
---|---|
icon | string |
name*required | string |
salesEmail | string |
salesLink | string |
supportEmail | string |
supportLink | string |
Name | Type |
---|---|
categories*required | Array<Category> |
An item category in the Hub
Name | Type | Description |
---|---|---|
id*required | string | The category's ID |
itemIds*required | Array<string> | The IDs of the items associated with this category |
page*required | CategoryPage | |
subgroup*required | string | Groups categories to related subpages |
Name | Type | Description |
---|---|---|
content*required | Array<CategoryPageContent> | |
description*required | string | The customer facing description of this page |
shortTitle*required | string | A shorter version of the customer facing title of the page |
title*required | string | The customer facing title of the page |
Name | Type | Description |
---|---|---|
blocks | Array<CategoryPageContentBlock> | The blocks of the items associated with this category |
contentType*required | "section" | "curated_content_block" | "content_block_group" | "browse_all_block" | The type of content |
description*required | string | The customer facing description of the content |
itemIds | Array<string> | The IDs of the items associated with this category |
title*required | string | The customer facing title of the content |
Name | Type | Default |
---|---|---|
description | string | "" |
href*required | string | |
hrefText | string | |
image*required | string | |
title*required | string |
Contains information about a constraint violation caused by invalid input.
Name | Type | Description |
---|---|---|
message*required | string | The constraint violation description message |
path | string | The path of the parameter that caused the constraint violation |
Name | Type |
---|---|
actions | AssetCount |
documents | DocumentCount |
settings | AssetCount |
Name | Type | Description |
---|---|---|
name*required | string | The name of the required dependency |
version*required | string | SemVer2 version of the required dependency |
Meta data of the latest version of this item.
Name | Type | Description |
---|---|---|
author | Author | |
comingSoon*required | boolean | |
contentCount | ContentCount | |
createdTime | Date | The time this Hub item was originally created. |
currentRelease | Release | |
description*required | string | |
detailSections*required | Array<DetailSection> | |
hasDetailSection*required | boolean | Whether the details of this item contain one or more detail content sections. |
hubItemId | string | The Hub item id, aka. slug. |
icon | string | |
id*required | string | The id is only unique within a specific type. |
keywords*required | Array<string> | |
links | Array<Link> | |
name*required | string | |
relatedItems | Array<Overview> | |
releaseTime | Date | The time this latest version of the item was released. |
resourceContext | ResourceContext | |
type*required | "APP" | "CLASSIC_APP" | "EXTENSION_2" | "TECHNOLOGY" | |
version | string | The latest version of this item. |
Can be either a Markdown or Gallery section. Only one of the respective properties is returned (markdown
, or gallery
).
Name | Type |
---|---|
gallery | GallerySection |
markdown | MarkdownSection |
sourceId*required | string |
Name | Type |
---|---|
total*required | number |
types | DocumentCountTypes |
type: Record<string, number | undefined>
Standard error response
Name | Type | Description |
---|---|---|
code*required | number | The error code (HTTP response) |
details | ErrorDetails | Optional details of the error |
message*required | string | The error code (HTTP response) |
Optional details of the error
Name | Type | Description |
---|---|---|
constraintViolations | Array<ConstraintViolation> | A list of constraint violations of input parameters (path, query, request body) |
Name | Type | Description |
---|---|---|
error*required | Error | Standard error response |
Name | Type |
---|---|
extensionContents | any |
featureSets | Array<string> |
featureSetsDetails | Record<string | any> |
Name | Type | Description |
---|---|---|
alt | string | Descriptive text of what the image expresses |
caption | string | |
resolutions | GalleryImageResolutions | |
src*required | string | |
title | string |
type: Record<string, string | undefined>
Name | Type |
---|---|
images*required | Array<GalleryImage> |
title*required | string |
Name | Type | Description |
---|---|---|
appId | string | |
pageToken | string | |
target | string | |
type*required | "DOCUMENTATION" | "MARKETING" | "ACTIVATION" | "REPOSITORY" | Links can be of the following types:
|
Name | Type | Default |
---|---|---|
actions | any | |
contentCount | ContentCount | |
csp | any | |
dependencies*required | Array<Dependency> | |
documents | any | |
hidden*required | boolean | false |
intents | any | |
pageTokens | any | |
scopes | Array<ManifestScope> | |
settings | any |
Name | Type |
---|---|
comment*required | string |
name*required | string |
Name | Type |
---|---|
markdown*required | string |
title*required | string |
Meta data of the latest version of this item.
Name | Type | Description |
---|---|---|
author | Author | |
comingSoon*required | boolean | |
contentCount | ContentCount | |
createdTime | Date | The time this Hub item was originally created. |
description*required | string | |
hasDetailSection*required | boolean | Whether the details of this item contain one or more detail content sections. |
hubItemId | string | The Hub item id, aka. slug. |
icon | string | |
id*required | string | The id is only unique within a specific type. |
keywords*required | Array<string> | |
links | Array<Link> | |
name*required | string | |
releaseTime | Date | The time this latest version of the item was released. |
resourceContext | ResourceContext | |
type*required | "APP" | "CLASSIC_APP" | "EXTENSION_2" | "TECHNOLOGY" | |
version | string | The latest version of this item. |
A list of item meta data. Per default contains only compatible items, but can be controlled using the onlyCompatible flag.
Name | Type |
---|---|
items*required | Array<Overview> |
Name | Type | Description |
---|---|---|
compatible*required | "COMPATIBLE" | "INCOMPATIBLE" | "UNKNOWN" | |
extensionMetadata | ExtensionMetadata | |
manifest | Manifest | |
publicationTime*required | Date | |
releaseNotes | string | Markdown content describing this release. |
revocation | Revocation | The existence of this object marks a release as being revoked. It contains information on why this is the case. |
version*required | string | A semantic versioning 2.0 conform version. |
Name | Type |
---|---|
releases*required | Array<Release> |
Name | Type |
---|---|
operations | Array<"install"> |
The existence of this object marks a release as being revoked. It contains information on why this is the case.
Name | Type |
---|---|
description | string |
reason*required | "SECURITY_ISSUE" | "FAULTY_RELEASE" | "DEPRECATED" |
severity | "LOW" | "MEDIUM" | "HIGH" |
⚠️ Deprecated Use literal values.
The type of content
BrowseAllBlock
| ContentBlockGroup
| CuratedContentBlock
| Section
⚠️ Deprecated Use literal values.
Compatible
| Incompatible
| Unknown
⚠️ Deprecated Use literal values.
App
| ClassicApp
| Extension_2
| Technology
⚠️ Deprecated Use literal values.
Links can be of the following types:
DOCUMENTATION
- Technical documentationMARKETING
- Promotion materialACTIVATION
- Location within the product to configure the itemREPOSITORY
- Source code repositoryActivation
| Documentation
| Marketing
| Repository
⚠️ Deprecated Use literal values.
ContentCount
| HubItemId
| Manifest
| ResourceContext
⚠️ Deprecated Use literal values.
ContentCount
| HubItemId
| ResourceContext
⚠️ Deprecated Use literal values.
ContentCount
| Manifest
⚠️ Deprecated Use literal values.
ExtensionMetadata
| HubItemId
⚠️ Deprecated Use literal values.
ExtensionMetadata
⚠️ Deprecated Use literal values.
HubItemId
⚠️ Deprecated Use literal values.
HubItemId
⚠️ Deprecated Use literal values.
Install
⚠️ Deprecated Use literal values.
Deprecated
| FaultyRelease
| SecurityIssue
⚠️ Deprecated Use literal values.
High
| Low
| Medium
FAQs
[](https://www.npmjs.com/package/@dynatrace-sdk/client-hub/v/1.19.2) [](https://opensource.org/licenses/Apache-2.0)
We found that @dynatrace-sdk/client-hub demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.