You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -293,7 +293,7 @@ class DirectLinkV1 extends BaseService {
293
293
* any macsec_config fields, no other fields may be specified in the patch request. Contact IBM support for access to
294
294
* MACsec.
295
295
*
296
-
* Keys used for MACsec configuration must have names with an even number of characters from [0-9a-fA-F].
296
+
* A MACsec config cannot be added to a gateway created without MACsec.
297
297
* @param {boolean} [params.metered] - Metered billing option. When `true` gateway usage is billed per gigabyte.
298
298
* When `false` there is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
299
299
* @param {string} [params.name] - The unique user-defined name for this gateway.
@@ -589,7 +589,8 @@ class DirectLinkV1 extends BaseService {
589
589
/**
590
590
* Gateway statistics.
591
591
*
592
-
* Retrieve gateway statistics. Specify statistic to retrieve using required `type` query parameter.
592
+
* Retrieve gateway statistics. Specify statistic to retrieve using required `type` query parameter. Currently data
593
+
* retrieval is only supported for MACsec configurations.
593
594
*
594
595
* @param {Object} params - The parameters to send to the service.
595
596
* @param {string} params.id - Direct Link Dedicated gateway identifier.
@@ -1241,7 +1242,7 @@ namespace DirectLinkV1 {
1241
1242
/** MACsec configuration information. When patching any macsec_config fields, no other fields may be specified
1242
1243
* in the patch request. Contact IBM support for access to MACsec.
1243
1244
*
1244
-
* Keys used for MACsec configuration must have names with an even number of characters from [0-9a-fA-F].
1245
+
* A MACsec config cannot be added to a gateway created without MACsec.
1245
1246
*/
1246
1247
macsecConfig?: GatewayMacsecConfigPatchTemplate;
1247
1248
/** Metered billing option. When `true` gateway usage is billed per gigabyte. When `false` there is no per
@@ -1600,84 +1601,150 @@ namespace DirectLinkV1 {
1600
1601
gateways: Gateway[];
1601
1602
}
1602
1603
1603
-
/** MACsec connectivity association key. */
1604
-
exportinterfaceGatewayMacsecCak{
1605
-
/** connectivity association key. */
1606
-
crn: string;
1607
-
}
1608
-
1609
1604
/** MACsec configuration information. For Dedicated Gateways with MACsec configured, return configuration information. Contact IBM support for access to MACsec. */
1610
1605
exportinterfaceGatewayMacsecConfig{
1611
-
/** Indicate whether MACsec protection should be active (true) or inactive (false) for this MACsec enabled
1612
-
* gateway.
1606
+
/** Indicate whether MACsec should currently be active (true) or inactive (false) for a MACsec enabled gateway.
1607
+
* To be MACsec enabled a `macsec_config` must be specified at gateway create time.
1613
1608
*/
1614
1609
active: boolean;
1615
-
/** Active connectivity association key. Normally will be the same as the primary_cak. During CAK changes this
1616
-
* field can be used to indicate which key is currently active.
1610
+
/** Active connectivity association key.
1611
+
*
1612
+
* During normal operation `active_cak` will match the desired `primary_cak`. During CAK changes this field can be
1613
+
* used to indicate which key is currently active on the gateway.
1617
1614
*/
1618
-
active_cak?: GatewayMacsecCak;
1615
+
active_cak?: GatewayMacsecConfigActiveCak;
1619
1616
/** SAK cipher suite. */
1620
1617
cipher_suite?: string;
1621
1618
/** confidentiality offset. */
1622
-
confidentiality_offset: number;
1619
+
confidentiality_offset?: number;
1623
1620
/** cryptographic algorithm. */
1624
1621
cryptographic_algorithm?: string;
1625
1622
/** fallback connectivity association key. */
1626
-
fallback_cak?: GatewayMacsecCak;
1623
+
fallback_cak?: GatewayMacsecConfigFallbackCak;
1627
1624
/** key server priority. */
1628
1625
key_server_priority?: number;
1629
1626
/** desired primary connectivity association key. */
1630
-
primary_cak: GatewayMacsecCak;
1627
+
primary_cak: GatewayMacsecConfigPrimaryCak;
1631
1628
/** Secure Association Key (SAK) expiry time in seconds. */
1632
1629
sak_expiry_time?: number;
1633
-
/** The current status of MACsec on the device for this gateway. Status 'unknown' is returned during gateway
1634
-
* creation and deletion.
1630
+
/** Packets without MACsec headers are not dropped when security_policy is `should_secure`. */
1631
+
security_policy?: string;
1632
+
/** Current status of MACsec on the device for this gateway. Status 'unknown' is returned during gateway
1633
+
* creation and deletion. Status `key_error` indicates Direct Link was unable to retrieve key materials for one of
1634
+
* the specified. This usually due to inadequate service to service authorization. Verify the key exists and
1635
+
* verify a service to service policy exists authorization the Direct Link service to access its key material.
1636
+
* Correct any problems and respecify the desired key. If the problem persists contact IBM support.
1635
1637
*/
1636
1638
status: string;
1637
1639
/** replay protection window size. */
1638
1640
window_size?: number;
1639
1641
}
1640
1642
1641
-
/** MACsec configuration information. When patching any macsec_config fields, no other fields may be specified in the patch request. Contact IBM support for access to MACsec. Keys used for MACsec configuration must have names with an even number of characters from [0-9a-fA-F]. */
1643
+
/** Active connectivity association key. During normal operation `active_cak` will match the desired `primary_cak`. During CAK changes this field can be used to indicate which key is currently active on the gateway. */
1644
+
exportinterfaceGatewayMacsecConfigActiveCak{
1645
+
/** connectivity association key crn. */
1646
+
crn: string;
1647
+
/** connectivity association key status. */
1648
+
status: string;
1649
+
}
1650
+
1651
+
/** fallback connectivity association key. */
1652
+
exportinterfaceGatewayMacsecConfigFallbackCak{
1653
+
/** connectivity association key crn. */
1654
+
crn: string;
1655
+
/** connectivity association key status. */
1656
+
status: string;
1657
+
}
1658
+
1659
+
/** MACsec configuration information. When patching any macsec_config fields, no other fields may be specified in the patch request. Contact IBM support for access to MACsec. A MACsec config cannot be added to a gateway created without MACsec. */
1642
1660
exportinterfaceGatewayMacsecConfigPatchTemplate{
1643
1661
/** Indicate whether MACsec protection should be active (true) or inactive (false) for this MACsec enabled
1644
1662
* gateway.
1645
1663
*/
1646
1664
active?: boolean;
1647
-
/** Fallback connectivity association key. Keys used for MACsec configuration must have names with an even
1648
-
* number of characters from [0-9a-fA-F].
1665
+
/** Fallback connectivity association key.
1666
+
*
1667
+
* The `fallback_cak` crn cannot match the `primary_cak` crn.
1668
+
*
1669
+
* MACsec keys must be type=standard with key name lengths between 2 to 64 inclusive and contain only characters
1670
+
* [a-fA-F0-9].
1671
+
* The key material must be exactly 64 characters in length and contain only [a-fA-F0-9].
1672
+
*
1673
+
* To clear the optional `fallback_cak` field patch its crn to `""`.
1674
+
*
1675
+
* A gateway's `fallback_cak` crn cannot match its `primary_cak` crn.
1649
1676
*/
1650
-
fallback_cak?: GatewayMacsecCak;
1651
-
/** Desired primary connectivity association key. Keys for a MACsec configuration must have names with an even
/** MACsec configuration information. Contact IBM support for access to MACsec. Keys used for MACsec configuration must have names with an even number of characters from [0-9a-fA-F]. */
1691
+
/** Fallback connectivity association key. The `fallback_cak` crn cannot match the `primary_cak` crn. MACsec keys must be type=standard with key name lengths between 2 to 64 inclusive and contain only characters [a-fA-F0-9]. The key material must be exactly 64 characters in length and contain only [a-fA-F0-9]. To clear the optional `fallback_cak` field patch its crn to `""`. A gateway's `fallback_cak` crn cannot match its `primary_cak` crn. */
/** Desired primary connectivity association key. MACsec keys must be type=standard with key name lengths between 2 to 64 inclusive and contain only characters [a-fA-F0-9]. The key material must be exactly 64 characters in length and contain only [a-fA-F0-9]. A gateway's `primary_cak` crn cannot match its `fallback_cak` crn. */
/** Fallback connectivity association key. The `fallback_cak` crn cannot match the `primary_cak` crn. MACsec keys must be type=standard with key name lengths between 2 to 64 inclusive and contain only characters [a-fA-F0-9]. The key material must be exactly 64 characters in length and contain only [a-fA-F0-9]. */
/** Desired primary connectivity association key. MACsec keys must be type=standard with key name lengths between 2 to 64 inclusive and contain only characters [a-fA-F0-9]. The key material must be exactly 64 characters in length and contain only [a-fA-F0-9]. */
0 commit comments