Skip to content

Commit 0e2f589

Browse files
added ternary
1 parent 6f31eed commit 0e2f589

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/content/partials/networking-services/account-id-api-key.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@
44
---
55

66
:::note
7-
You will need your [account ID](/fundamentals/account/find-account-and-zone-ids/) and [API Key](/fundamentals/api/get-started/keys/#view-your-global-api-key) to use the API.
7+
8+
{props.showSiteId ? (
9+
<>To export NetFlow statistics, you will need your [account ID](/fundamentals/account/find-account-and-zone-ids/) and [API token](/fundamentals/api/get-started/account-owned-tokens/), as well as the `site_id` associated with your Magic WAN Connector.</>
10+
) : (
11+
<>You will need your [account ID](/fundamentals/account/find-account-and-zone-ids/) and [API token](/fundamentals/api/get-started/account-owned-tokens/).</>
12+
)}
13+
814
:::

src/content/partials/networking-services/mconn/network-options/app-aware-policies/netflow.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{}
33
---
44

5-
import { CURL } from "~/components";
5+
import { CURL, Render } from "~/components";
66

77
## NetFlow exports from Magic WAN Connector to Magic Network Monitoring
88

@@ -12,9 +12,7 @@ The Magic WAN Connector appliance uses NetFlow v9 to export flow data for breako
1212

1313
### Enable NetFlow exports
1414

15-
:::note
16-
To export NetFlow statistics, you will need your [account ID](/fundamentals/account/find-account-and-zone-ids/), your [API token](/fundamentals/api/get-started/account-owned-tokens/), and the `site_id` associated with your Magic WAN Connector.
17-
:::
15+
<Render file="account-id-api-key" product="networking-services" params={{ showSiteId: true }} />
1816

1917
1. Create a `PUT` request to the Netflow configuration endpoint for your site.
2018
2. In the JSON body request, you must include the `collector_ip`. To export traffic statistics to Magic Network Monitoring, use the IP address `162.159.65.1`. This is the only field required to enable the feature.

0 commit comments

Comments
 (0)