Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@dynatrace-sdk/client-app-engine-edge-connect
Advanced tools
[![npm](https://img.shields.io/badge/npm-v1.2.2-blue)](https://www.npmjs.com/package/@dynatrace-sdk/client-app-engine-edge-connect/v/1.2.2) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
npm install @dynatrace-sdk/client-app-engine-edge-connect
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 { edgeConnectClient } from '@dynatrace-sdk/client-app-engine-edge-connect';
Create a new EdgeConnect.
Required scope: app-engine:edge-connects:write
You can either specify a UUID in the request body or a random UUID will be assigned to the created EdgeConnect configuration.
The OAuth client ID is optional.
If no OAuth client ID is provided an OAuth client must be generated for that EdgeConnect. This additionally requires the oauth2:clients:manage
scope allowing generation of OAuth clients with the app-engine:edge-connects:connect
scope, e.g. via the following policy statement: ALLOW oauth2:clients:manage where oauth2:scopes='app-engine:edge-connects:connect'
The oauth2:clients:manage
scope is not required if you provide an OAuth client ID.
The OAuth client ID, secret and resource will be returned in the response. The OAuth client secret is not retrievable later on.
Name | Type |
---|---|
config.body*required | EdgeConnect |
The EdgeConnect has been created successfully
import { edgeConnectClient } from "@dynatrace-sdk/client-app-engine-edge-connect";
const data = await edgeConnectClient.createEdgeConnect({
body: {
hostPatterns: ["*.internal.org"],
modificationInfo: {
lastModifiedBy: "12345678-abcd-efgh-1234-123456789",
lastModifiedTime: "2022-01-01T01:02:03.165Z",
},
},
});
Delete an EdgeConnect
Required scope: app-engine:edge-connects:delete
Deletes the specified EdgeConnect configuration. If the configuration used an autogenerated OAuth client, then the oauth2:clients:manage
for the app-engine:edge-connects:connect
scope is required (e.g. via a policy statement like ALLOW oauth2:clients:manage where oauth2:scopes='app-engine:edge-connects:connect'
) in order to allow the deletion of the corresponding OAuth client.
Name | Type | Description |
---|---|---|
config.edgeConnectId*required | string | Specify the ID of the EdgeConnect |
import { edgeConnectClient } from "@dynatrace-sdk/client-app-engine-edge-connect";
const data = await edgeConnectClient.deleteEdgeConnect({
edgeConnectId: "11111111-2222-4444-3333-555555555555",
});
Get an EdgeConnect
Required scope: app-engine:edge-connects:read
Name | Type | Description |
---|---|---|
config.edgeConnectId*required | string | Specify the ID of the EdgeConnect |
The EdgeConnect configuration
import { edgeConnectClient } from "@dynatrace-sdk/client-app-engine-edge-connect";
const data = await edgeConnectClient.getEdgeConnect({
edgeConnectId: "11111111-2222-4444-3333-555555555555",
});
Gets the matching EdgeConnect including alternatives for a URL.
Required scope: app-engine:edge-connects:read
Provides the EdgeConnect which matches the URL due to its configured host patterns. This EdgeConnect would receive a corresponding fetch request if done in the context of the Dynatrace runtime. In addition, this endpoint also provides other EdgeConnects which have matching host patterns that are not as specific (due to wildcard pattern usage) as the matched EdgeConnect
Name | Type | Description |
---|---|---|
config.url*required | string | The URL which is used to check if there are any EdgeConnects with matching host patterns configured. Must be RFC 2396 compliant and use "http" or "https" as its scheme |
The matched EdgeConnect and considered alternatives which are more general
import { edgeConnectClient } from "@dynatrace-sdk/client-app-engine-edge-connect";
const data = await edgeConnectClient.getMatchedEdgeConnects(
{ url: "http://my.dynatrace.com" },
);
List all EdgeConnects
Required scope: app-engine:edge-connects:read
Name | Type | Description |
---|---|---|
config.addFields | string | Provide a comma separated list of additional properties to be included in the response. |
config.filter | string | The filter parameter for filtering the set of returned resources If this parameter is omitted, no filtering is applied and all states will be returned. Filtering by string type parameters When using the operators The following fields are legal filtering parameters - any other field names will result in a HTTP 400 response:
The following constraints apply:
Examples:
|
config.page | number | The index of the page to return. The first page will be returned if this parameters isn't specified. |
config.pageSize | number | The number of resources to return in a single request. 1000 by default. |
A list of all EdgeConnects
import { edgeConnectClient } from "@dynatrace-sdk/client-app-engine-edge-connect";
const data = await edgeConnectClient.listEdgeConnects();
Rotate the secret of the autogenerated OAuth client of the given EdgeConnect.
Required scope: oauth2:clients:manage
The secret rotation can only be used if the configured OAuth client is an autogenerated OAuth client. The scope oauth2:clients:manage
for the app-engine:edge-connects:connect
scope is required (e.g. via a policy like ALLOW oauth2:clients:manage where oauth2:scopes='app-engine:edge-connects:connect'
).
Name | Type | Description |
---|---|---|
config.edgeConnectId*required | string | Specify the ID of the EdgeConnect |
The OAuth client secret was rotated successfully
import { edgeConnectClient } from "@dynatrace-sdk/client-app-engine-edge-connect";
const data =
await edgeConnectClient.rotateOAuthClientSecret({
edgeConnectId: "11111111-2222-4444-3333-555555555555",
});
Update an EdgeConnect
Required scope: app-engine:edge-connects:write
Name | Type | Description |
---|---|---|
config.body*required | EdgeConnect | |
config.edgeConnectId*required | string | Specify the ID of the EdgeConnect |
import { edgeConnectClient } from "@dynatrace-sdk/client-app-engine-edge-connect";
const data = await edgeConnectClient.updateEdgeConnect({
edgeConnectId: "11111111-2222-4444-3333-555555555555",
body: {
hostPatterns: ["*.internal.org"],
modificationInfo: {
lastModifiedBy: "12345678-abcd-efgh-1234-123456789",
lastModifiedTime: "2022-01-01T01:02:03.165Z",
},
},
});
Name | Type |
---|---|
message*required | string |
parameterLocation | string |
path | string |
Maps the specified host patterns to this EdgeConnect
Name | Type | Description |
---|---|---|
hostPatterns*required | Array<string> | |
id | string | |
managedByDynatraceOperator | boolean | Flag to identify if an EdgeConnect is managed by the Dynatrace operator. False by default! |
metadata | Metadata | |
modificationInfo | ModificationInfo | |
name*required | string | |
oauthClientId | string | Id of OAuth client used to connect by the EdgeConnect |
oauthClientResource | string | Resource of OAuth client used to connect by the EdgeConnect. Only provided when creating a new EdgeConnect. |
oauthClientSecret | string | Secret of OAuth client used to connect by the EdgeConnect. Only provided when creating a new EdgeConnect. |
Name | Type |
---|---|
instanceId | string |
version | string |
Name | Type | Description |
---|---|---|
edgeConnects | Array<EdgeConnect> | |
totalCount | number | Total number of currently configured EdgeConnects |
Name | Type |
---|---|
code*required | number |
details | ErrorDetails |
message*required | string |
Name | Type |
---|---|
constraintViolations | Array<ConstraintViolation> |
missingScopes | Array<string> |
Name | Type |
---|---|
error*required | Error |
Contains information about the EdgeConnect and the matched pattern
Name | Type |
---|---|
id*required | string |
matchedPattern*required | string |
metadata | Metadata |
name*required | string |
Name | Type |
---|---|
matched | MatchedEdgeConnect |
secondaryMatching | Array<MatchedEdgeConnect> |
Name | Type |
---|---|
instances | Array<EdgeConnectInstance> |
oauthClientStatus | MetadataOauthClientStatus |
Name | Type |
---|---|
lastModifiedBy*required | string |
lastModifiedTime*required | Date |
Name | Type |
---|---|
clientId*required | string |
clientSecret*required | string |
The status of the OAuth client
Active
| Deleted
| Inactive
| PendingDeletion
FAQs
[![npm](https://img.shields.io/badge/npm-v1.6.0-blue)](https://www.npmjs.com/package/@dynatrace-sdk/client-app-engine-edge-connect/v/1.6.0) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
The npm package @dynatrace-sdk/client-app-engine-edge-connect receives a total of 14 weekly downloads. As such, @dynatrace-sdk/client-app-engine-edge-connect popularity was classified as not popular.
We found that @dynatrace-sdk/client-app-engine-edge-connect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.