ibm.getDlGatewayMacsecCak
Explore with Pulumi AI
For a given IBM Cloud Infrastructure Direct Link Gateway, Get a MACsec CAK by its identifier. A connectivity association key (CAK) used in the MACsec Key Agreement (MKA) protocol. MACsec CAKs consist of both a name and key. The CAK’s name must be a hexadecimal string of even lengths between 2 to 64 inclusive. The CAK’s key must be a Hyper Protect Crypto Service Standard Key type=standard with key material a hexadecimal string exactly 64 characters in length.
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.getDlGatewayMacsecCak({
cakId: "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4",
gateway: "0a06fb9b-820f-4c44-8a31-77f1f0806d28",
});
import pulumi
import pulumi_ibm as ibm
test = ibm.get_dl_gateway_macsec_cak(cak_id="ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4",
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.LookupDlGatewayMacsecCak(ctx, &ibm.LookupDlGatewayMacsecCakArgs{
CakId: "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4",
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.GetDlGatewayMacsecCak.Invoke(new()
{
CakId = "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4",
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.GetDlGatewayMacsecCakArgs;
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.getDlGatewayMacsecCak(GetDlGatewayMacsecCakArgs.builder()
.cakId("ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4")
.gateway("0a06fb9b-820f-4c44-8a31-77f1f0806d28")
.build());
}
}
variables:
test:
fn::invoke:
function: ibm:getDlGatewayMacsecCak
arguments:
cakId: ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
gateway: 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Using getDlGatewayMacsecCak
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 getDlGatewayMacsecCak(args: GetDlGatewayMacsecCakArgs, opts?: InvokeOptions): Promise<GetDlGatewayMacsecCakResult>
function getDlGatewayMacsecCakOutput(args: GetDlGatewayMacsecCakOutputArgs, opts?: InvokeOptions): Output<GetDlGatewayMacsecCakResult>
def get_dl_gateway_macsec_cak(active_deltas: Optional[Sequence[GetDlGatewayMacsecCakActiveDelta]] = None,
cak_id: Optional[str] = None,
gateway: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDlGatewayMacsecCakResult
def get_dl_gateway_macsec_cak_output(active_deltas: Optional[pulumi.Input[Sequence[pulumi.Input[GetDlGatewayMacsecCakActiveDeltaArgs]]]] = None,
cak_id: Optional[pulumi.Input[str]] = None,
gateway: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDlGatewayMacsecCakResult]
func LookupDlGatewayMacsecCak(ctx *Context, args *LookupDlGatewayMacsecCakArgs, opts ...InvokeOption) (*LookupDlGatewayMacsecCakResult, error)
func LookupDlGatewayMacsecCakOutput(ctx *Context, args *LookupDlGatewayMacsecCakOutputArgs, opts ...InvokeOption) LookupDlGatewayMacsecCakResultOutput
> Note: This function is named LookupDlGatewayMacsecCak
in the Go SDK.
public static class GetDlGatewayMacsecCak
{
public static Task<GetDlGatewayMacsecCakResult> InvokeAsync(GetDlGatewayMacsecCakArgs args, InvokeOptions? opts = null)
public static Output<GetDlGatewayMacsecCakResult> Invoke(GetDlGatewayMacsecCakInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDlGatewayMacsecCakResult> getDlGatewayMacsecCak(GetDlGatewayMacsecCakArgs args, InvokeOptions options)
public static Output<GetDlGatewayMacsecCakResult> getDlGatewayMacsecCak(GetDlGatewayMacsecCakArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDlGatewayMacsecCak:getDlGatewayMacsecCak
arguments:
# arguments dictionary
The following arguments are supported:
- Cak
Id string - Direct Link gateway MACsec CAK identifier.
- Gateway string
- Direct Link gateway identifier.
- Active
Deltas List<GetDl Gateway Macsec Cak Active Delta> - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
: - Id string
- Cak
Id string - Direct Link gateway MACsec CAK identifier.
- Gateway string
- Direct Link gateway identifier.
- Active
Deltas []GetDl Gateway Macsec Cak Active Delta - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
: - Id string
- cak
Id String - Direct Link gateway MACsec CAK identifier.
- gateway String
- Direct Link gateway identifier.
- active
Deltas List<GetDl Gateway Macsec Cak Active Delta> - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
: - id String
- cak
Id string - Direct Link gateway MACsec CAK identifier.
- gateway string
- Direct Link gateway identifier.
- active
Deltas GetDl Gateway Macsec Cak Active Delta[] - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
: - id string
- cak_
id str - Direct Link gateway MACsec CAK identifier.
- gateway str
- Direct Link gateway identifier.
- active_
deltas Sequence[GetDl Gateway Macsec Cak Active Delta] - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
: - id str
- cak
Id String - Direct Link gateway MACsec CAK identifier.
- gateway String
- Direct Link gateway identifier.
- active
Deltas List<Property Map> - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
: - id String
getDlGatewayMacsecCak Result
The following output properties are available:
- Cak
Id string - Created
At string - (String) The date and time the resource was created.
- Gateway string
- Id string
- Keys
List<Get
Dl Gateway Macsec Cak Key> - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - Name string
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers. - Session string
- (String) The intended session the key will be used to secure. If the
primary
MACsec session fails due to a key/key name mismatch on the peers, thefallback
session can take over. There must be aprimary
session CAK. Afallback
CAK is optional - Status string
- (String) Current status of the CAK.
- Status
operational
is returned when the CAK is configured - successfully. - Status
rotating
is returned during a key rotation. The CAK defined byactive_delta
is still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will berotating
for a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enteractive
orinactive
status. - Status
active
is returned when the CAK is configured successfully and is currently used to secure the MACsec session. - Status
inactive
is returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enterrotating
status, and ultimately theactive
status, if it is found to be used to secure the MACsec session. The CAK may never leave this status on its own (e.g. if there is a key/key name mismatch). You are allowed to patch the CAK in this state to start the rotation procedure again. - Status
failed
is returned when the CAK cannot be configured. To recover, first resolve any issues with your HPCS key, then patch this CAK with the same or new key. Alternatively, you can delete this CAK if used for thefallback
session.
- Status
- Updated
At string - (String) The date and time the resource was last updated.
- Active
Deltas List<GetDl Gateway Macsec Cak Active Delta> - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
:
- Cak
Id string - Created
At string - (String) The date and time the resource was created.
- Gateway string
- Id string
- Keys
[]Get
Dl Gateway Macsec Cak Key - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - Name string
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers. - Session string
- (String) The intended session the key will be used to secure. If the
primary
MACsec session fails due to a key/key name mismatch on the peers, thefallback
session can take over. There must be aprimary
session CAK. Afallback
CAK is optional - Status string
- (String) Current status of the CAK.
- Status
operational
is returned when the CAK is configured - successfully. - Status
rotating
is returned during a key rotation. The CAK defined byactive_delta
is still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will berotating
for a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enteractive
orinactive
status. - Status
active
is returned when the CAK is configured successfully and is currently used to secure the MACsec session. - Status
inactive
is returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enterrotating
status, and ultimately theactive
status, if it is found to be used to secure the MACsec session. The CAK may never leave this status on its own (e.g. if there is a key/key name mismatch). You are allowed to patch the CAK in this state to start the rotation procedure again. - Status
failed
is returned when the CAK cannot be configured. To recover, first resolve any issues with your HPCS key, then patch this CAK with the same or new key. Alternatively, you can delete this CAK if used for thefallback
session.
- Status
- Updated
At string - (String) The date and time the resource was last updated.
- Active
Deltas []GetDl Gateway Macsec Cak Active Delta - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
:
- cak
Id String - created
At String - (String) The date and time the resource was created.
- gateway String
- id String
- keys
List<Get
Dl Gateway Macsec Cak Key> - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - name String
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers. - session String
- (String) The intended session the key will be used to secure. If the
primary
MACsec session fails due to a key/key name mismatch on the peers, thefallback
session can take over. There must be aprimary
session CAK. Afallback
CAK is optional - status String
- (String) Current status of the CAK.
- Status
operational
is returned when the CAK is configured - successfully. - Status
rotating
is returned during a key rotation. The CAK defined byactive_delta
is still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will berotating
for a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enteractive
orinactive
status. - Status
active
is returned when the CAK is configured successfully and is currently used to secure the MACsec session. - Status
inactive
is returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enterrotating
status, and ultimately theactive
status, if it is found to be used to secure the MACsec session. The CAK may never leave this status on its own (e.g. if there is a key/key name mismatch). You are allowed to patch the CAK in this state to start the rotation procedure again. - Status
failed
is returned when the CAK cannot be configured. To recover, first resolve any issues with your HPCS key, then patch this CAK with the same or new key. Alternatively, you can delete this CAK if used for thefallback
session.
- Status
- updated
At String - (String) The date and time the resource was last updated.
- active
Deltas List<GetDl Gateway Macsec Cak Active Delta> - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
:
- cak
Id string - created
At string - (String) The date and time the resource was created.
- gateway string
- id string
- keys
Get
Dl Gateway Macsec Cak Key[] - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - name string
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers. - session string
- (String) The intended session the key will be used to secure. If the
primary
MACsec session fails due to a key/key name mismatch on the peers, thefallback
session can take over. There must be aprimary
session CAK. Afallback
CAK is optional - status string
- (String) Current status of the CAK.
- Status
operational
is returned when the CAK is configured - successfully. - Status
rotating
is returned during a key rotation. The CAK defined byactive_delta
is still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will berotating
for a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enteractive
orinactive
status. - Status
active
is returned when the CAK is configured successfully and is currently used to secure the MACsec session. - Status
inactive
is returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enterrotating
status, and ultimately theactive
status, if it is found to be used to secure the MACsec session. The CAK may never leave this status on its own (e.g. if there is a key/key name mismatch). You are allowed to patch the CAK in this state to start the rotation procedure again. - Status
failed
is returned when the CAK cannot be configured. To recover, first resolve any issues with your HPCS key, then patch this CAK with the same or new key. Alternatively, you can delete this CAK if used for thefallback
session.
- Status
- updated
At string - (String) The date and time the resource was last updated.
- active
Deltas GetDl Gateway Macsec Cak Active Delta[] - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
:
- cak_
id str - created_
at str - (String) The date and time the resource was created.
- gateway str
- id str
- keys
Sequence[Get
Dl Gateway Macsec Cak Key] - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - name str
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers. - session str
- (String) The intended session the key will be used to secure. If the
primary
MACsec session fails due to a key/key name mismatch on the peers, thefallback
session can take over. There must be aprimary
session CAK. Afallback
CAK is optional - status str
- (String) Current status of the CAK.
- Status
operational
is returned when the CAK is configured - successfully. - Status
rotating
is returned during a key rotation. The CAK defined byactive_delta
is still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will berotating
for a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enteractive
orinactive
status. - Status
active
is returned when the CAK is configured successfully and is currently used to secure the MACsec session. - Status
inactive
is returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enterrotating
status, and ultimately theactive
status, if it is found to be used to secure the MACsec session. The CAK may never leave this status on its own (e.g. if there is a key/key name mismatch). You are allowed to patch the CAK in this state to start the rotation procedure again. - Status
failed
is returned when the CAK cannot be configured. To recover, first resolve any issues with your HPCS key, then patch this CAK with the same or new key. Alternatively, you can delete this CAK if used for thefallback
session.
- Status
- updated_
at str - (String) The date and time the resource was last updated.
- active_
deltas Sequence[GetDl Gateway Macsec Cak Active Delta] - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
:
- cak
Id String - created
At String - (String) The date and time the resource was created.
- gateway String
- id String
- keys List<Property Map>
- (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - name String
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers. - session String
- (String) The intended session the key will be used to secure. If the
primary
MACsec session fails due to a key/key name mismatch on the peers, thefallback
session can take over. There must be aprimary
session CAK. Afallback
CAK is optional - status String
- (String) Current status of the CAK.
- Status
operational
is returned when the CAK is configured - successfully. - Status
rotating
is returned during a key rotation. The CAK defined byactive_delta
is still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will berotating
for a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enteractive
orinactive
status. - Status
active
is returned when the CAK is configured successfully and is currently used to secure the MACsec session. - Status
inactive
is returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enterrotating
status, and ultimately theactive
status, if it is found to be used to secure the MACsec session. The CAK may never leave this status on its own (e.g. if there is a key/key name mismatch). You are allowed to patch the CAK in this state to start the rotation procedure again. - Status
failed
is returned when the CAK cannot be configured. To recover, first resolve any issues with your HPCS key, then patch this CAK with the same or new key. Alternatively, you can delete this CAK if used for thefallback
session.
- Status
- updated
At String - (String) The date and time the resource was last updated.
- active
Deltas List<Property Map> - (List) This field will be present when the status of the MACsec CAK is rotating or inactive. It may be present when the CAK status is failed.
Nested schema for
active_delta
:
Supporting Types
GetDlGatewayMacsecCakActiveDelta
- Keys
List<Get
Dl Gateway Macsec Cak Active Delta Key> - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - Name string
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers.
- Keys
[]Get
Dl Gateway Macsec Cak Active Delta Key - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - Name string
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers.
- keys
List<Get
Dl Gateway Macsec Cak Active Delta Key> - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - name String
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers.
- keys
Get
Dl Gateway Macsec Cak Active Delta Key[] - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - name string
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers.
- keys
Sequence[Get
Dl Gateway Macsec Cak Active Delta Key] - (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - name str
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers.
- keys List<Property Map>
- (List) A reference to a Hyper Protect Crypto Service Standard Key.
Nested schema for
key
: - name String
- (String) The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's
name
must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of thekey
, must match on the MACsec peers.
GetDlGatewayMacsecCakActiveDeltaKey
- Crn string
- (String) The CRN of the referenced key.
- Crn string
- (String) The CRN of the referenced key.
- crn String
- (String) The CRN of the referenced key.
- crn string
- (String) The CRN of the referenced key.
- crn str
- (String) The CRN of the referenced key.
- crn String
- (String) The CRN of the referenced key.
GetDlGatewayMacsecCakKey
- Crn string
- (String) The CRN of the referenced key.
- Crn string
- (String) The CRN of the referenced key.
- crn String
- (String) The CRN of the referenced key.
- crn string
- (String) The CRN of the referenced key.
- crn str
- (String) The CRN of the referenced key.
- crn String
- (String) The CRN of the referenced key.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.