ibm 1.80.0-beta0 published on Tuesday, Jun 24, 2025 by ibm-cloud
ibm.getDlGatewayMacsecConfig
Explore with Pulumi AI
Retrieve the MACsec configuration of a IBM Cloud Infrastructure Direct Link Gateway. For more information, about IBM Cloud Direct Link, see getting started with IBM Cloud Direct Link.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const test = ibm.getDlGatewayMacsecConfig({
gateway: "0a06fb9b-820f-4c44-8a31-77f1f0806d28",
});
import pulumi
import pulumi_ibm as ibm
test = ibm.get_dl_gateway_macsec_config(gateway="0a06fb9b-820f-4c44-8a31-77f1f0806d28")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.LookupDlGatewayMacsecConfig(ctx, &ibm.LookupDlGatewayMacsecConfigArgs{
Gateway: "0a06fb9b-820f-4c44-8a31-77f1f0806d28",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var test = Ibm.GetDlGatewayMacsecConfig.Invoke(new()
{
Gateway = "0a06fb9b-820f-4c44-8a31-77f1f0806d28",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetDlGatewayMacsecConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = IbmFunctions.getDlGatewayMacsecConfig(GetDlGatewayMacsecConfigArgs.builder()
.gateway("0a06fb9b-820f-4c44-8a31-77f1f0806d28")
.build());
}
}
variables:
test:
fn::invoke:
function: ibm:getDlGatewayMacsecConfig
arguments:
gateway: 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Using getDlGatewayMacsecConfig
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDlGatewayMacsecConfig(args: GetDlGatewayMacsecConfigArgs, opts?: InvokeOptions): Promise<GetDlGatewayMacsecConfigResult>
function getDlGatewayMacsecConfigOutput(args: GetDlGatewayMacsecConfigOutputArgs, opts?: InvokeOptions): Output<GetDlGatewayMacsecConfigResult>
def get_dl_gateway_macsec_config(gateway: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDlGatewayMacsecConfigResult
def get_dl_gateway_macsec_config_output(gateway: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDlGatewayMacsecConfigResult]
func LookupDlGatewayMacsecConfig(ctx *Context, args *LookupDlGatewayMacsecConfigArgs, opts ...InvokeOption) (*LookupDlGatewayMacsecConfigResult, error)
func LookupDlGatewayMacsecConfigOutput(ctx *Context, args *LookupDlGatewayMacsecConfigOutputArgs, opts ...InvokeOption) LookupDlGatewayMacsecConfigResultOutput
> Note: This function is named LookupDlGatewayMacsecConfig
in the Go SDK.
public static class GetDlGatewayMacsecConfig
{
public static Task<GetDlGatewayMacsecConfigResult> InvokeAsync(GetDlGatewayMacsecConfigArgs args, InvokeOptions? opts = null)
public static Output<GetDlGatewayMacsecConfigResult> Invoke(GetDlGatewayMacsecConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDlGatewayMacsecConfigResult> getDlGatewayMacsecConfig(GetDlGatewayMacsecConfigArgs args, InvokeOptions options)
public static Output<GetDlGatewayMacsecConfigResult> getDlGatewayMacsecConfig(GetDlGatewayMacsecConfigArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDlGatewayMacsecConfig:getDlGatewayMacsecConfig
arguments:
# arguments dictionary
The following arguments are supported:
getDlGatewayMacsecConfig Result
The following output properties are available:
- Active bool
- (Bool) Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway.
- Cipher
Suite string - (String) The cipher suite used in generating the security association key (SAK).
- Confidentiality
Offset double - (Integer) The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted.
- Created
At string - (String) The date and time the resource was created.
- Gateway string
- Id string
- Key
Server doublePriority - (Integer) Used in the MACsec Key Agreement (MKA) protocol to determine which peer acts as the key server. Lower values indicate a higher preference to be the key server. The MACsec configuration on the direct link will always set this value to 255.
- Sak
Rekeys List<GetDl Gateway Macsec Config Sak Rekey> - (List) Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers.
Nested scheme for
sak_rekey
: - Security
Policy string - (String) Determines how packets without MACsec headers are handled.
must_secure
- Packets without MACsec headers are dropped. This policy should be used to prefer security over network availability.should_secure
- Packets without MACsec headers are allowed. This policy should be used to prefer network availability over security. - Status string
- (String) Current status of MACsec on this direct link. Status
offline
is returned when MACsec is inactive and during direct link creation. Statusdeleting
is returned when MACsec during removal of MACsec from the direct link and during direct link deletion. Seestatus_reasons[]
for possible remediation of thefailed
status. - Status
Reasons List<GetDl Gateway Macsec Config Status Reason> - (List) Context for certain values of status.
Nested Schema for
status_reasons
: - Updated
At string - (String) The date and time the resource was last updated.
- Window
Size double - (Integer) The window size determines the number of frames in a window for replay protection. Replay protection is used to counter replay attacks. Frames within a window size can be out of order and are not replay protected.
- Active bool
- (Bool) Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway.
- Cipher
Suite string - (String) The cipher suite used in generating the security association key (SAK).
- Confidentiality
Offset float64 - (Integer) The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted.
- Created
At string - (String) The date and time the resource was created.
- Gateway string
- Id string
- Key
Server float64Priority - (Integer) Used in the MACsec Key Agreement (MKA) protocol to determine which peer acts as the key server. Lower values indicate a higher preference to be the key server. The MACsec configuration on the direct link will always set this value to 255.
- Sak
Rekeys []GetDl Gateway Macsec Config Sak Rekey - (List) Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers.
Nested scheme for
sak_rekey
: - Security
Policy string - (String) Determines how packets without MACsec headers are handled.
must_secure
- Packets without MACsec headers are dropped. This policy should be used to prefer security over network availability.should_secure
- Packets without MACsec headers are allowed. This policy should be used to prefer network availability over security. - Status string
- (String) Current status of MACsec on this direct link. Status
offline
is returned when MACsec is inactive and during direct link creation. Statusdeleting
is returned when MACsec during removal of MACsec from the direct link and during direct link deletion. Seestatus_reasons[]
for possible remediation of thefailed
status. - Status
Reasons []GetDl Gateway Macsec Config Status Reason - (List) Context for certain values of status.
Nested Schema for
status_reasons
: - Updated
At string - (String) The date and time the resource was last updated.
- Window
Size float64 - (Integer) The window size determines the number of frames in a window for replay protection. Replay protection is used to counter replay attacks. Frames within a window size can be out of order and are not replay protected.
- active Boolean
- (Bool) Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway.
- cipher
Suite String - (String) The cipher suite used in generating the security association key (SAK).
- confidentiality
Offset Double - (Integer) The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted.
- created
At String - (String) The date and time the resource was created.
- gateway String
- id String
- key
Server DoublePriority - (Integer) Used in the MACsec Key Agreement (MKA) protocol to determine which peer acts as the key server. Lower values indicate a higher preference to be the key server. The MACsec configuration on the direct link will always set this value to 255.
- sak
Rekeys List<GetDl Gateway Macsec Config Sak Rekey> - (List) Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers.
Nested scheme for
sak_rekey
: - security
Policy String - (String) Determines how packets without MACsec headers are handled.
must_secure
- Packets without MACsec headers are dropped. This policy should be used to prefer security over network availability.should_secure
- Packets without MACsec headers are allowed. This policy should be used to prefer network availability over security. - status String
- (String) Current status of MACsec on this direct link. Status
offline
is returned when MACsec is inactive and during direct link creation. Statusdeleting
is returned when MACsec during removal of MACsec from the direct link and during direct link deletion. Seestatus_reasons[]
for possible remediation of thefailed
status. - status
Reasons List<GetDl Gateway Macsec Config Status Reason> - (List) Context for certain values of status.
Nested Schema for
status_reasons
: - updated
At String - (String) The date and time the resource was last updated.
- window
Size Double - (Integer) The window size determines the number of frames in a window for replay protection. Replay protection is used to counter replay attacks. Frames within a window size can be out of order and are not replay protected.
- active boolean
- (Bool) Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway.
- cipher
Suite string - (String) The cipher suite used in generating the security association key (SAK).
- confidentiality
Offset number - (Integer) The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted.
- created
At string - (String) The date and time the resource was created.
- gateway string
- id string
- key
Server numberPriority - (Integer) Used in the MACsec Key Agreement (MKA) protocol to determine which peer acts as the key server. Lower values indicate a higher preference to be the key server. The MACsec configuration on the direct link will always set this value to 255.
- sak
Rekeys GetDl Gateway Macsec Config Sak Rekey[] - (List) Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers.
Nested scheme for
sak_rekey
: - security
Policy string - (String) Determines how packets without MACsec headers are handled.
must_secure
- Packets without MACsec headers are dropped. This policy should be used to prefer security over network availability.should_secure
- Packets without MACsec headers are allowed. This policy should be used to prefer network availability over security. - status string
- (String) Current status of MACsec on this direct link. Status
offline
is returned when MACsec is inactive and during direct link creation. Statusdeleting
is returned when MACsec during removal of MACsec from the direct link and during direct link deletion. Seestatus_reasons[]
for possible remediation of thefailed
status. - status
Reasons GetDl Gateway Macsec Config Status Reason[] - (List) Context for certain values of status.
Nested Schema for
status_reasons
: - updated
At string - (String) The date and time the resource was last updated.
- window
Size number - (Integer) The window size determines the number of frames in a window for replay protection. Replay protection is used to counter replay attacks. Frames within a window size can be out of order and are not replay protected.
- active bool
- (Bool) Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway.
- cipher_
suite str - (String) The cipher suite used in generating the security association key (SAK).
- confidentiality_
offset float - (Integer) The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted.
- created_
at str - (String) The date and time the resource was created.
- gateway str
- id str
- key_
server_ floatpriority - (Integer) Used in the MACsec Key Agreement (MKA) protocol to determine which peer acts as the key server. Lower values indicate a higher preference to be the key server. The MACsec configuration on the direct link will always set this value to 255.
- sak_
rekeys Sequence[GetDl Gateway Macsec Config Sak Rekey] - (List) Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers.
Nested scheme for
sak_rekey
: - security_
policy str - (String) Determines how packets without MACsec headers are handled.
must_secure
- Packets without MACsec headers are dropped. This policy should be used to prefer security over network availability.should_secure
- Packets without MACsec headers are allowed. This policy should be used to prefer network availability over security. - status str
- (String) Current status of MACsec on this direct link. Status
offline
is returned when MACsec is inactive and during direct link creation. Statusdeleting
is returned when MACsec during removal of MACsec from the direct link and during direct link deletion. Seestatus_reasons[]
for possible remediation of thefailed
status. - status_
reasons Sequence[GetDl Gateway Macsec Config Status Reason] - (List) Context for certain values of status.
Nested Schema for
status_reasons
: - updated_
at str - (String) The date and time the resource was last updated.
- window_
size float - (Integer) The window size determines the number of frames in a window for replay protection. Replay protection is used to counter replay attacks. Frames within a window size can be out of order and are not replay protected.
- active Boolean
- (Bool) Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway.
- cipher
Suite String - (String) The cipher suite used in generating the security association key (SAK).
- confidentiality
Offset Number - (Integer) The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted.
- created
At String - (String) The date and time the resource was created.
- gateway String
- id String
- key
Server NumberPriority - (Integer) Used in the MACsec Key Agreement (MKA) protocol to determine which peer acts as the key server. Lower values indicate a higher preference to be the key server. The MACsec configuration on the direct link will always set this value to 255.
- sak
Rekeys List<Property Map> - (List) Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers.
Nested scheme for
sak_rekey
: - security
Policy String - (String) Determines how packets without MACsec headers are handled.
must_secure
- Packets without MACsec headers are dropped. This policy should be used to prefer security over network availability.should_secure
- Packets without MACsec headers are allowed. This policy should be used to prefer network availability over security. - status String
- (String) Current status of MACsec on this direct link. Status
offline
is returned when MACsec is inactive and during direct link creation. Statusdeleting
is returned when MACsec during removal of MACsec from the direct link and during direct link deletion. Seestatus_reasons[]
for possible remediation of thefailed
status. - status
Reasons List<Property Map> - (List) Context for certain values of status.
Nested Schema for
status_reasons
: - updated
At String - (String) The date and time the resource was last updated.
- window
Size Number - (Integer) The window size determines the number of frames in a window for replay protection. Replay protection is used to counter replay attacks. Frames within a window size can be out of order and are not replay protected.
Supporting Types
GetDlGatewayMacsecConfigSakRekey
GetDlGatewayMacsecConfigStatusReason
GetDlGatewayMacsecConfigStatusReasonSakRekeyTimerMode
- Code string
- (String) A reason code for the status:
macsec_cak_failed
- At least one of the connectivity association keys (CAKs) associated with the MACsec configuration was unable to be configured on the direct link gateway. Refer to the status of the CAKs associated with the MACsec configuration to find the the source of this reason. - Message string
- (String) An explanation of the status reason.
- More
Info string - (String) Link to documentation about this status reason.
- Code string
- (String) A reason code for the status:
macsec_cak_failed
- At least one of the connectivity association keys (CAKs) associated with the MACsec configuration was unable to be configured on the direct link gateway. Refer to the status of the CAKs associated with the MACsec configuration to find the the source of this reason. - Message string
- (String) An explanation of the status reason.
- More
Info string - (String) Link to documentation about this status reason.
- code String
- (String) A reason code for the status:
macsec_cak_failed
- At least one of the connectivity association keys (CAKs) associated with the MACsec configuration was unable to be configured on the direct link gateway. Refer to the status of the CAKs associated with the MACsec configuration to find the the source of this reason. - message String
- (String) An explanation of the status reason.
- more
Info String - (String) Link to documentation about this status reason.
- code string
- (String) A reason code for the status:
macsec_cak_failed
- At least one of the connectivity association keys (CAKs) associated with the MACsec configuration was unable to be configured on the direct link gateway. Refer to the status of the CAKs associated with the MACsec configuration to find the the source of this reason. - message string
- (String) An explanation of the status reason.
- more
Info string - (String) Link to documentation about this status reason.
- code str
- (String) A reason code for the status:
macsec_cak_failed
- At least one of the connectivity association keys (CAKs) associated with the MACsec configuration was unable to be configured on the direct link gateway. Refer to the status of the CAKs associated with the MACsec configuration to find the the source of this reason. - message str
- (String) An explanation of the status reason.
- more_
info str - (String) Link to documentation about this status reason.
- code String
- (String) A reason code for the status:
macsec_cak_failed
- At least one of the connectivity association keys (CAKs) associated with the MACsec configuration was unable to be configured on the direct link gateway. Refer to the status of the CAKs associated with the MACsec configuration to find the the source of this reason. - message String
- (String) An explanation of the status reason.
- more
Info String - (String) Link to documentation about this status reason.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.