Introduction
The IBM Cloud® Direct Link API is a RESTful API that allows you to manage your Direct Link resources.
compile 'com.ibm.cloud:direct-link:X.X.X'
The code examples on this tab use the client library that is provided for Go.
Installation
go get -u github.com/IBM/networking-go-sdk
go get  -u github.com/IBM/go-sdk-core
The code examples on this tab use the client library that is provided for Java.
Maven
<dependency>
    <groupId>com.ibm.cloud</groupId>
    <artifactId>direct-link</artifactId>
    <version>X.X.X</version>
</dependency>
The code examples on this tab use the client library that is provided for Node.js.
Installation
npm install ibm-networking-services
The code examples on this tab use the client library that is provided for Python.
Installation
pip install --upgrade "ibm-cloud-networking-services>=X.X.X"
Authentication
The IBM Cloud Direct Link API uses Identity and Access Management (IAM) to authenticate requests. Pass a bearer token in an Authorization header.
You can retrieve an access token by first creating an API key, and then exchanging your API key for an IBM Cloud IAM token. For more information, see Retrieving an access token programmatically.
The SDK provides initialization methods for each form of authentication.
- Use the API key to have the SDK manage the lifecycle of the access token. The SDK requests an access token, ensures that the access token is valid, and refreshes it if necessary.
- Use the access token to manage the lifecycle yourself. You must periodically refresh the token.
For more information, see Authentication with the SDK.
IAM authentication. Replace {apikey} and {url} with your service credentials.
curl -u "apikey:{apikey}" -X {request_method} "{url}/{method}"
SDK managing the IAM token. Replace {apikey}, {version},  and {url}.
IamAuthenticator authenticator = new IamAuthenticator("{apikey}");
DirectLink directLink = new DirectLink("{version}", "{serviceName}",authenticator);
// Use only when need to change the endpoint.
// Default endpoint is directlink.cloud.ibm.com
directLink.setServiceUrl("{url}")
SDK managing the IAM token. Replace {apikey}, {version}, and {url}.
const DirectLinkV1 = require('ibm-networking-services/direct-link');
const { IamAuthenticator } = require('ibm-cloud-sdk-core');
const directLinkV1 = new DirectLinkV1({
  authenticator: new IamAuthenticator({
    apikey: '{apikey}',
  }),
  version: '{version}',
  // Default is directlink.cloud.ibm.com
  serviceUrl: '{url}',
});
SDK managing the IAM token. Replace {apikey} , {version}, and {url}.
from ibm_cloud_networking_services import DirectLinkV1
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
authenticator = IAMAuthenticator('{apikey}')
direct_link = DirectLinkV1(
    version='{version}',
    authenticator=authenticator
)
# Use only when need to change the endpoint.
# Default endpoint is directlink.cloud.ibm.com
direct_link.set_service_url('{url}')
SDK managing the IAM token. Replace {apikey}, {version}, and {url}.
import (
  "github.com/IBM/go-sdk-core/core"
  "github.com/IBM/networking-go-sdk/directlinkv1"
)
func main() {
  authenticator := &core.IamAuthenticator{
    ApiKey: "{apikey}",
    URL:    "{serviceURL}"
  }
  version := "{version}"
  options := &directlinkv1.DirectLinkV1Options{
    Version: &version,
    Authenticator: authenticator,
    // Default is directlink.cloud.ibm.com
    URL:    "{serviceURL}",
  }
  directLink, directLinkErr := directlinkv1.NewDirectLinkV1UsingExternalConfig(options)
  if directLinkErr != nil {
    panic(directLinkErr)
  }
}
Auditing
You can monitor API activity within your account by using the IBM Cloud Direct Link service. Whenever an API method is called, an event is generated that you can then track and audit from within Activity Tracker. The specific event type is listed for each individual method.
For more information about how to track IBM Cloud Direct Link activity, see Auditing events for IBM Cloud Direct Link.
Authorization
Access management to Direct Link resources is done through Identity and Access Management (IAM). For more information, see Using IAM permissions with Direct Link.
Error handling
The Direct Link API uses standard HTTP response codes to indicate whether a method completed successfully. A 2xx response indicates success. A 4xx type response indicates a failure, and a 5xx type response indicates an internal system error.
| HTTP Error Code | Description | Recovery | 
|---|---|---|
| 200 | Success | The request was successful. | 
| 400 | Bad Request | The input parameters in the request body are either incomplete, in the wrong format, or resources are in an incorrect state. See the specific error message for more details. | 
| 401 | Unauthorized | You are not authorized to make this request. Log in to IBM Cloud and try again. If this error persists, contact the account owner to check your permissions. | 
| 403 | Forbidden | The supplied authentication is not authorized to access the requested action. | 
| 404 | Not Found | The requested resource might not exist, or the supplied authentication is not authorized to access it. See the specific error message for resource details, verify that the specified resource exists, or contact the account owner to check your permissions to view it. | 
| 500 | Internal Server Error | IBM Cloud API is currently unavailable. Your request might not be processed. Wait a few minutes and try again. If the problem persists, contact IBM Support. | 
ErrorResponse
| Name | Description | 
|---|---|
| code{: .parameter-name .required} string | An identifier of the problem. Possible values: [ invalid_field,invalid_header,invalid_method,missing_field,server_error] | 
| message{: .parameter-name .required} string | An explanation of the problem with possible solutions. | 
| more_info{: .parameter-name} string | A URL for more information about the solution. | 
| target{: .parameter-name} object | Details about the property ( typeandname) that is the focus of the problem. | 
The Java SDK generates an exception for any unsuccessful method invocation. All methods that accept an argument can also throw an IllegalArgumentException.
| Exception | Description | 
|---|---|
| IllegalArgumentException | An invalid argument was passed to the method. | 
When the Java SDK receives an error response from the Direct Link service, it generates an exception from the com.ibm.cloud.sdk.core.service.exception package. All service exceptions contain the following fields.
| Field | Description | 
|---|---|
| statusCode | The HTTP response code that is returned. | 
| message | A message that describes the error. | 
When the Node SDK receives an error response from the Direct Link service, it creates an Error object with information that describes the error that occurred. This error object is passed as the first parameter to the callback function for the method. The contents of the error object are as shown in the following table.
Error
| Field | Description | 
|---|---|
| code | The HTTP response code that is returned. | 
| message | A message that describes the error. | 
The Python SDK generates an exception for any unsuccessful method invocation. When the Python SDK receives an error response from the Direct Link service, it generates an ApiException with the following fields.
| Field | Description | 
|---|---|
| code | The HTTP response code that is returned. | 
| message | A message that describes the error. | 
| info | A dictionary of additional information about the error. | 
The Go SDK generates an error for any unsuccessful service instantiation and method invocation. You can check for the error immediately. The contents of the error object are as shown in the following table.
Error
| Field | Description | 
|---|---|
| code | The HTTP response code that is returned. | 
| message | A message that describes the error. | 
Example error handling
try {
  // Invoke a Direct Link method
} catch (BadRequestException e) {
  // Handle Bad Request (400) exception
} catch (UnauthorizedException e) {
  // Handle Unauthorized (401) exception
} catch (ForbiddenException e) {
  // Handle Forbidden (403) exception
} catch (NotFoundException e) {
  // Handle Not Found (404) exception
} catch (RequestTooLargeException e) {
  // Handle Request Too Large (413) exception
} catch (InternalServerErrorException e) {
  // Handle Internal Server Error (500) exception
} catch (ServiceResponseException e) {
  // Base class for all exceptions caused by error responses from the service
  System.out.println("Service returned status code "
    + e.getStatusCode() + ": " + e.getMessage());
}
Example error handling
directLink.method(params)
  .catch(err => {
    console.log('error:', err);
  });
Example error handling
from ibm_cloud_sdk_core.api_exception import ApiException
try:
    # Invoke a Direct Link method
except ApiException as ex:
    print "Method failed with status code " + str(ex.code) + ": " + ex.message
Example error handling
import "github.com/IBM/networking-go-sdk/directlinkv1"
// Instantiate a service
directLink, directLinkErr := directlinkv1.NewDirectLinkV1(options)
// Check for errors
if directLinkErr != nil {
  panic(directLinkErr)
}
// Call a method
result, response, responseErr := directLink.methodName(&methodOptions)
// Check for errors
if responseErr != nil {
  panic(responseErr)
}
Versioning
All API requests require a major version in the path (/v1/) and a date-based version as a query parameter in the format version=YYYY-MM-DD.
For example: GET /v1/gateways?version=2020-06-02
Any date-based version from Direct Link GA, up to the current date, is supported. Start development of new applications with the current date as a fixed value. Do not dynamically use the current date as the version for a production application. Instead, use a fixed date-based version that was tested with your application.
Specify the version to use on API requests with the version parameter when you create the service instance. The service uses the API version for the date you specify, or the most recent version before that date. Don't default to the current date. Instead, specify a date that matches a version that is compatible with your app, and don't change it until your app is ready for a later version.
// Mention the correct date for version param
String version = "2020-07-27";
// Instantiate authenticator as mentioned in Authentication
DirectLink directLink = new DirectLink(version, "{serviceName}", "${authenticator}");
const DirectLinkV1 = require('ibm-networking-services/direct-link');
const directLinkV1 = new DirectLinkV1({
  // Instantiate authenticator as mentioned in Authentication
  authenticator: '${authenticator}',
  version: '2020-07-27',  // Mention the correct date for version param
});
from ibm_cloud_networking_services import DirectLinkV1
# Instantiate authenticatior as mentioned in Authentication
direct_link = DirectLinkV1(
    version="2020-07-27", # Mention the correct date for version param
    authenticator=authenticator
)
import (
  "github.com/IBM/networking-go-sdk/directlinkv1"
)
func main() {
  // Mention the correct date for version param
  version := "2020-07-27"
  //Instantiate authenticator as mentioned in Authentication
  options := &directlinkv1.DirectLinkV1Options{
    Version: version,
    Authenticator: authenticator,
  }
  directLink, directLinkErr := directlinkv1.NewDirectLinkV1UsingExternalConfig(options)
}
API changes
API improvements and fixes are documented in the API change log, along with guidance on code updates that are required to use a new date-based version. By design, new features with backward-incompatible changes apply only to version dates on and after the feature's release. Changes that apply to older versions of the API are designed to maintain compatibility with existing applications and code.
Best practices
To minimize regressions from changes, the following best practices are recommended when you call the API:
- Log any 4xxor5xxHTTP status code along with the includedtraceproperty.
- Follow HTTP redirect rules for any 3xxHTTP status code.
- Consume only the resources and properties that are needed for your application to function.
- Avoid depending on any behavior that is not explicitly documented.
Methods
List gateways
List all Direct Link gateways in this account. Gateways in other accounts with connections to networks in this account are also returned.
List all Direct Link gateways in this account. Gateways in other accounts with connections to networks in this account are also returned.
List all Direct Link gateways in this account. Gateways in other accounts with connections to networks in this account are also returned.
List all Direct Link gateways in this account. Gateways in other accounts with connections to networks in this account are also returned.
List all Direct Link gateways in this account. Gateways in other accounts with connections to networks in this account are also returned.
GET /gateways
ServiceCall<GatewayCollection> listGateways(ListGatewaysOptions listGatewaysOptions)listGateways(params)
list_gateways(
        self,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGateways(listGatewaysOptions *ListGatewaysOptions) (result *GatewayCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewaysWithContext(ctx context.Context, listGatewaysOptions *ListGatewaysOptions) (result *GatewayCollection, response *core.DetailedResponse, err error)
Request
Use the ListGatewaysOptions.Builder to create a ListGatewaysOptions object that contains the parameter values for the listGateways method.
Instantiate the ListGatewaysOptions struct and set the fields to provide parameter values for the ListGateways method.
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
parameters
parameters
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
- curl -X GET https://$DL_ENDPOINT/v1/gateways?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- let res; try { res = await directLinkService.listGateways({}); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListGatewaysOptions listGatewaysOptions = new ListGatewaysOptions(); Response<GatewayCollection> response = directLinkService.listGateways(listGatewaysOptions).execute(); GatewayCollection gatewayCollection = response.getResult(); System.out.println(gatewayCollection);
- listGatewaysOptions := directLinkService.NewListGatewaysOptions() gatewayCollection, response, err := directLinkService.ListGateways(listGatewaysOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_gateways() gateway_collection = response.get_result() print(json.dumps(gateway_collection, indent=2))
Response
List of gateways
- Collection of Direct Link gateways - gateways
- gateway - undefined
- Customer BGP ASN - Example: - 64999
- The date and time resource was created 
- The CRN (Cloud Resource Name) of this gateway - Example: - crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. 
- Gateways with global routing ( - true) can connect to networks outside their associated region.- Example: - true
- The unique identifier of this gateway - Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway location long name - Example: - Dallas 03
- Gateway location - Example: - dal03
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - myGateway
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 
- Gateway speed in megabits per second - Example: - 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]- Example: - dedicated
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR - Example: - 10.254.30.78/30
- IBM BGP ASN - Example: - 13884
- BGP IBM CIDR - Example: - 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]- Example: - active
- Date and time bgp status was updated - Example: - 2020-08-20T06:58:41.909781Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - myCarrierName
- Changes pending approval for provider managed Direct Link Connect gateways. 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. - Example: - The completion notice file was blank
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]- Example: - transit
- Cross connect router. Only included on type=dedicated gateways. - Example: - xcr01.dal03
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - newCustomerName
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]- Example: - up
- Date and time link status was updated - Example: - 2020-08-20T06:58:41.909781Z
- Gateway patch panel complete notification from implementation team - Example: - patch panel configuration details
- Indicates whether gateway changes must be made via a provider portal. 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.- Example: - 10
 
 
List of gateways.
- Collection of Direct Link gateways. - gateways
- gateway. - GatewayCollectionGatewaysItem
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - changeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - statusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
 
 
List of gateways.
- Collection of Direct Link gateways. - gateways
- gateway. - GatewayCollectionGatewaysItem
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
 
 
List of gateways.
- Collection of Direct Link gateways. - gateways
- gateway. - GatewayCollectionGatewaysItem
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
 
 
List of gateways.
- Collection of Direct Link gateways. - Gateways
- gateway. - GatewayCollectionGatewaysItem
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - AuthenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - BfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - ChangeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - Macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - StatusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - OperationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - Port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - ResourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
 
 
Status Code
- Successfully retrieved the list of gateways. 
- { "gateways": [ { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/766d8d374a484f029d0fca5a40a52a1c:5d343839-07d3-4213-a950-0f71ed45423f:key:7fc1a0ba-4633-48cb-997b-5749787c952c" }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "location_display_name": "Dallas 03", "location_name": "dal03", "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" } ] }
- { "gateways": [ { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/766d8d374a484f029d0fca5a40a52a1c:5d343839-07d3-4213-a950-0f71ed45423f:key:7fc1a0ba-4633-48cb-997b-5749787c952c" }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "location_display_name": "Dallas 03", "location_name": "dal03", "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" } ] }
Create gateway
Creates a Direct Link gateway based on the supplied template.
Creates a Direct Link gateway based on the supplied template.
Creates a Direct Link gateway based on the supplied template.
Creates a Direct Link gateway based on the supplied template.
Creates a Direct Link gateway based on the supplied template.
POST /gateways
ServiceCall<Gateway> createGateway(CreateGatewayOptions createGatewayOptions)createGateway(params)
create_gateway(
        self,
        gateway_template: 'GatewayTemplate',
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) CreateGateway(createGatewayOptions *CreateGatewayOptions) (result *Gateway, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) CreateGatewayWithContext(ctx context.Context, createGatewayOptions *CreateGatewayOptions) (result *Gateway, response *core.DetailedResponse, err error)
Request
Use the CreateGatewayOptions.Builder to create a CreateGatewayOptions object that contains the parameter values for the createGateway method.
Instantiate the CreateGatewayOptions struct and set the fields to provide parameter values for the CreateGateway method.
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The Direct Link Gateway template
- BGP ASN - Example: - 64999
- Gateways with global routing ( - true) can connect to networks outside their associated region.- Example: - true
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
- The unique user-defined name for this gateway. - Example: - myGateway
- Gateway speed in megabits per second - Example: - 1000
- Offering type - Allowable values: [ - connect,- dedicated]- Example: - dedicated
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 
- BFD configuration information. 
- (DEPRECATED) BGP base CIDR. - Field is deprecated. See bgp_ibm_cidr and bgp_cer_cidr for details on how to create a gateway using either automatic or explicit IP assignment. Any bgp_base_cidr value set will be ignored. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. - Example: - 169.254.0.10/30
- BGP IBM CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. - Example: - 169.254.0.9/30
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - direct- Example: - transit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permit- Example: - permit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permit- Example: - permit
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 
- Gateway patch panel complete notification from implementation team - Example: - patch panel configuration details
- Resource group for this resource. If unspecified, the account's default resource group is used. 
- Gateway fields specific to type=dedicated gateway create - One of
- Carrier name - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - ^[a-zA-Z0-9 _-]+$- Example: - myCarrierName
- Cross connect router - Example: - xcr01.dal03
- Customer name - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - ^[a-zA-Z0-9 _-]+$- Example: - newCustomerName
- Gateway location - Example: - dal03
- The VLAN to configure for this gateway. - Possible values: 2 ≤ value ≤ 3967 - Example: - 10
 
The createGateway options.
- Gateway fields specific to type=dedicated gateway create. - gatewayTemplate
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- authenticationKey
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfdConfig
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR. - Field is deprecated. See bgp_ibm_cidr and bgp_cer_cidr for details on how to create a gateway using either automatic or explicit IP assignment. Any bgp_base_cidr value set will be ignored. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.10/30
- BGP IBM CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.9/30
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - directExamples:- transit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - exportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - importRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. Examples:- myGateway 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Resource group for this resource. If unspecified, the account's default resource group is used. - resourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. - Allowable values: [ - connect,- dedicated]Examples:- dedicated 
- Carrier name. - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - /^[a-zA-Z0-9 _-]+$/Examples:- myCarrierName 
- Cross connect router. Examples:- xcr01.dal03 
- Customer name. - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - /^[a-zA-Z0-9 _-]+$/Examples:- newCustomerName 
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. Examples:- true
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 - caks
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
 
- SAK rekey mode based on length of time since last rekey. - sakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:- must_secure 
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:- 64
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - If not explicitly provided, the field will be assigned with the following priorities based on - cross_connect_routercapabilities and available ports:- macsecwas not provided in the request- non_macsec
- macsec_optional
 
- macsecwas provided in the request- macsec_optional
- macsec.
 
 - Allowable values: [ - non_macsec,- macsec,- macsec_optional]
- The VLAN to configure for this gateway. - Possible values: 2 ≤ value ≤ 3967 Examples:- 10
 
parameters
- Gateway fields specific to type=dedicated gateway create. - gatewayTemplate
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- authentication_key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR. - Field is deprecated. See bgp_ibm_cidr and bgp_cer_cidr for details on how to create a gateway using either automatic or explicit IP assignment. Any bgp_base_cidr value set will be ignored. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.10/30
- BGP IBM CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.9/30
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - directExamples:- transit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - export_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - import_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. Examples:- myGateway 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Resource group for this resource. If unspecified, the account's default resource group is used. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. - Allowable values: [ - connect,- dedicated]Examples:- dedicated 
- Carrier name. - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - /^[a-zA-Z0-9 _-]+$/Examples:- myCarrierName 
- Cross connect router. Examples:- xcr01.dal03 
- Customer name. - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - /^[a-zA-Z0-9 _-]+$/Examples:- newCustomerName 
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. Examples:- true
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 - caks
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
 
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:- must_secure 
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:- 64
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - If not explicitly provided, the field will be assigned with the following priorities based on - cross_connect_routercapabilities and available ports:- macsecwas not provided in the request- non_macsec
- macsec_optional
 
- macsecwas provided in the request- macsec_optional
- macsec.
 
 - Allowable values: [ - non_macsec,- macsec,- macsec_optional]
- The VLAN to configure for this gateway. - Possible values: 2 ≤ value ≤ 3967 Examples:- 10
 
parameters
- Gateway fields specific to type=dedicated gateway create. - gateway_template
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- authentication_key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR. - Field is deprecated. See bgp_ibm_cidr and bgp_cer_cidr for details on how to create a gateway using either automatic or explicit IP assignment. Any bgp_base_cidr value set will be ignored. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.10/30
- BGP IBM CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.9/30
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - directExamples:- transit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - export_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - import_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. Examples:- myGateway 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Resource group for this resource. If unspecified, the account's default resource group is used. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. - Allowable values: [ - connect,- dedicated]Examples:- dedicated 
- Carrier name. - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - /^[a-zA-Z0-9 _-]+$/Examples:- myCarrierName 
- Cross connect router. Examples:- xcr01.dal03 
- Customer name. - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - /^[a-zA-Z0-9 _-]+$/Examples:- newCustomerName 
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. Examples:- true
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 - caks
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
 
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:- must_secure 
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:- 64
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - If not explicitly provided, the field will be assigned with the following priorities based on - cross_connect_routercapabilities and available ports:- macsecwas not provided in the request- non_macsec
- macsec_optional
 
- macsecwas provided in the request- macsec_optional
- macsec.
 
 - Allowable values: [ - non_macsec,- macsec,- macsec_optional]
- The VLAN to configure for this gateway. - Possible values: 2 ≤ value ≤ 3967 Examples:- 10
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The CreateGateway options.
- Gateway fields specific to type=dedicated gateway create. - GatewayTemplate
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- AuthenticationKey
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - BfdConfig
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR. - Field is deprecated. See bgp_ibm_cidr and bgp_cer_cidr for details on how to create a gateway using either automatic or explicit IP assignment. Any bgp_base_cidr value set will be ignored. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.10/30
- BGP IBM CIDR. - For auto IP assignment, omit bgp_cer_cidr and bgp_ibm_cidr. IBM will automatically select values for bgp_cer_cidr and bgp_ibm_cidr. - For explicit IP assignment set a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.9/30
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - directExamples:- transit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - ExportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - ImportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. Examples:- myGateway 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Resource group for this resource. If unspecified, the account's default resource group is used. - ResourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. - Allowable values: [ - connect,- dedicated]Examples:- dedicated 
- Carrier name. - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - /^[a-zA-Z0-9 _-]+$/Examples:- myCarrierName 
- Cross connect router. Examples:- xcr01.dal03 
- Customer name. - Possible values: 1 ≤ length ≤ 128, Value must match regular expression - /^[a-zA-Z0-9 _-]+$/Examples:- newCustomerName 
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - Macsec
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. Examples:- true
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 - Caks
- Key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
 
- SAK rekey mode based on length of time since last rekey. - SakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:- must_secure 
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:- 64
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - If not explicitly provided, the field will be assigned with the following priorities based on - cross_connect_routercapabilities and available ports:- macsecwas not provided in the request- non_macsec
- macsec_optional
 
- macsecwas provided in the request- macsec_optional
- macsec.
 
 - Allowable values: [ - non_macsec,- macsec,- macsec_optional]
- The VLAN to configure for this gateway. - Possible values: 2 ≤ value ≤ 3967 Examples:- 10
 
- curl -X POST https://$DL_ENDPOINT/v1/gateways?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN" -d '{ "bgp_asn": 1000, "bgp_base_cidr": "10.254.30.76/30", "global": true, "location_name": "dal03", "name": "example-gateway", "speed_mbps": 1000, "connection_mode": "transit", "type": "dedicated", "cross_connect_router": "xcr03.dal03", "metered": true, "carrier_name": "my carrier", "customer_name": "my customer" }'
- // Request models needed by this operation. // GatewayTemplateGatewayTypeDedicatedTemplate const gatewayTemplateModel = { bgp_asn: 64999, global: true, metered: false, name: 'myGateway', speed_mbps: 1000, type: 'dedicated', carrier_name: 'myCarrierName', cross_connect_router: 'xcr01.dal03', customer_name: 'newCustomerName', location_name: 'dal03', }; const params = { gatewayTemplate: gatewayTemplateModel, }; let res; try { res = await directLinkService.createGateway(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GatewayTemplateGatewayTypeDedicatedTemplate gatewayTemplateModel = new GatewayTemplateGatewayTypeDedicatedTemplate.Builder() .bgpAsn(Long.valueOf("64999")) .global(true) .metered(false) .name("myGateway") .speedMbps(Long.valueOf("1000")) .type("dedicated") .carrierName("myCarrierName") .crossConnectRouter("xcr01.dal03") .customerName("newCustomerName") .locationName("dal03") .build(); CreateGatewayOptions createGatewayOptions = new CreateGatewayOptions.Builder() .gatewayTemplate(gatewayTemplateModel) .build(); Response<Gateway> response = directLinkService.createGateway(createGatewayOptions).execute(); Gateway gateway = response.getResult(); System.out.println(gateway);
- gatewayTemplateModel := &directlinkv1.GatewayTemplateGatewayTypeDedicatedTemplate{ BgpAsn: core.Int64Ptr(int64(64999)), Global: core.BoolPtr(true), Metered: core.BoolPtr(false), Name: core.StringPtr("myGateway"), SpeedMbps: core.Int64Ptr(int64(1000)), Type: core.StringPtr("dedicated"), CarrierName: core.StringPtr("myCarrierName"), CrossConnectRouter: core.StringPtr("xcr01.dal03"), CustomerName: core.StringPtr("newCustomerName"), LocationName: core.StringPtr("dal03"), } createGatewayOptions := directLinkService.NewCreateGatewayOptions( gatewayTemplateModel, ) gateway, response, err := directLinkService.CreateGateway(createGatewayOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gateway, "", " ") fmt.Println(string(b))
- gateway_template_model = { 'bgp_asn': 64999, 'global': True, 'metered': False, 'name': 'myGateway', 'speed_mbps': 1000, 'type': 'dedicated', 'carrier_name': 'myCarrierName', 'cross_connect_router': 'xcr01.dal03', 'customer_name': 'newCustomerName', 'location_name': 'dal03', } response = direct_link_service.create_gateway( gateway_template=gateway_template_model, ) gateway = response.get_result() print(json.dumps(gateway, indent=2))
Response
gateway
- Customer BGP ASN - Example: - 64999
- The date and time resource was created 
- The CRN (Cloud Resource Name) of this gateway - Example: - crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]- Example: - permit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]- Example: - permit
- Gateways with global routing ( - true) can connect to networks outside their associated region.- Example: - true
- The unique identifier of this gateway - Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway location long name - Example: - Dallas 03
- Gateway location - Example: - dal03
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - myGateway
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 
- Gateway speed in megabits per second - Example: - 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]- Example: - dedicated
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 
- BFD configuration information. 
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR - Example: - 10.254.30.78/30
- IBM BGP ASN - Example: - 13884
- BGP IBM CIDR - Example: - 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]- Example: - active
- Date and time bgp status was updated - Example: - 2020-08-20T06:58:41.909781Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - myCarrierName
- Changes pending approval for provider managed Direct Link Connect gateways. - change_request
- type of gateway change request - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. - Example: - The completion notice file was blank
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]- Example: - transit
- Cross connect router. Only included on type=dedicated gateways. - Example: - xcr01.dal03
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - newCustomerName
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]- Example: - up
- Date and time link status was updated - Example: - 2020-08-20T06:58:41.909781Z
- MACsec configuration information of a Direct Link gateway. 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Gateway patch panel complete notification from implementation team - Example: - patch panel configuration details
- Port information for type=connect gateways. 
- Indicates whether gateway changes must be made via a provider portal. 
- Resource group reference 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.- Example: - 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - changeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - statusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - AuthenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - BfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - ChangeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - Macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - StatusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - OperationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - Port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - ResourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
Status Code
- The Direct Link gateway was created successfully. 
- An invalid Direct Link template was provided. 
- { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "bfd_config": { "bfd_status": "up", "bfd_status_updated_at": "2020-08-20T06:58:41.909781Z", "interval": 2000, "multiplier": 3 }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "bgp_status_updated_at": "2020-08-20T06:58:41.909781Z", "carrier_name": "CarrierName", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "customer_name": "CustomerName", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "link_status_updated_at": "2020-08-20T06:58:41.909781Z", "location_display_name": "Dallas 03", "location_name": "dal03", "macsec": { "active": true, "security_policy": "must_secure", "status": "secured" }, "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" }
- { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "bfd_config": { "bfd_status": "up", "bfd_status_updated_at": "2020-08-20T06:58:41.909781Z", "interval": 2000, "multiplier": 3 }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "bgp_status_updated_at": "2020-08-20T06:58:41.909781Z", "carrier_name": "CarrierName", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "customer_name": "CustomerName", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "link_status_updated_at": "2020-08-20T06:58:41.909781Z", "location_display_name": "Dallas 03", "location_name": "dal03", "macsec": { "active": true, "security_policy": "must_secure", "status": "secured" }, "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" }
- { "errors": [ { "code": "validation_required_field_missing", "message": "Mandatory field is missing.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "validation_required_field_missing", "message": "Mandatory field is missing.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Delete gateway
Delete a Direct Link gateway.
Delete a Direct Link gateway.
Delete a Direct Link gateway.
Delete a Direct Link gateway.
Delete a Direct Link gateway.
DELETE /gateways/{id}ServiceCall<Void> deleteGateway(DeleteGatewayOptions deleteGatewayOptions)deleteGateway(params)
delete_gateway(
        self,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) DeleteGateway(deleteGatewayOptions *DeleteGatewayOptions) (response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) DeleteGatewayWithContext(ctx context.Context, deleteGatewayOptions *DeleteGatewayOptions) (response *core.DetailedResponse, err error)
Request
Use the DeleteGatewayOptions.Builder to create a DeleteGatewayOptions object that contains the parameter values for the deleteGateway method.
Instantiate the DeleteGatewayOptions struct and set the fields to provide parameter values for the DeleteGateway method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The deleteGateway options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The DeleteGateway options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X DELETE https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; try { await directLinkService.deleteGateway(params); } catch (err) { console.warn(err); }
- DeleteGatewayOptions deleteGatewayOptions = new DeleteGatewayOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Void> response = directLinkService.deleteGateway(deleteGatewayOptions).execute();
- deleteGatewayOptions := directLinkService.NewDeleteGatewayOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) response, err := directLinkService.DeleteGateway(deleteGatewayOptions) if err != nil { panic(err) } if response.StatusCode != 204 { fmt.Printf("\nUnexpected response status code received from DeleteGateway(): %d\n", response.StatusCode) }
- response = direct_link_service.delete_gateway( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', )
Response
Status Code
- The Direct Link gateway was deleted successfully. 
- The gateway could not be deleted as there are virtual connections associated with it. Delete all virtual connections associated with this gateway and retry. 
- A Direct Link gateway with the specified identifier could not be found. 
- { "errors": [ { "code": "bad_request", "message": "The gateway could not be deleted as there are virtual connections associated with it. Delete all virtual connections associated with this gateway and retry.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The gateway could not be deleted as there are virtual connections associated with it. Delete all virtual connections associated with this gateway and retry.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Get gateway
Retrieve a Direct Link gateway.
Retrieve a Direct Link gateway.
Retrieve a Direct Link gateway.
Retrieve a Direct Link gateway.
Retrieve a Direct Link gateway.
GET /gateways/{id}ServiceCall<GetGatewayResponse> getGateway(GetGatewayOptions getGatewayOptions)getGateway(params)
get_gateway(
        self,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGateway(getGatewayOptions *GetGatewayOptions) (result GetGatewayResponseIntf, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayWithContext(ctx context.Context, getGatewayOptions *GetGatewayOptions) (result GetGatewayResponseIntf, response *core.DetailedResponse, err error)
Request
Use the GetGatewayOptions.Builder to create a GetGatewayOptions object that contains the parameter values for the getGateway method.
Instantiate the GetGatewayOptions struct and set the fields to provide parameter values for the GetGateway method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getGateway options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGateway options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.getGateway(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayOptions getGatewayOptions = new GetGatewayOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<GetGatewayResponse> response = directLinkService.getGateway(getGatewayOptions).execute(); GetGatewayResponse getGatewayResponse = response.getResult(); System.out.println(getGatewayResponse);
- getGatewayOptions := directLinkService.NewGetGatewayOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) getGatewayResponse, response, err := directLinkService.GetGateway(getGatewayOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(getGatewayResponse, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) get_gateway_response = response.get_result() print(json.dumps(get_gateway_response, indent=2))
Response
gateway
- Customer BGP ASN - Example: - 64999
- The date and time resource was created 
- The CRN (Cloud Resource Name) of this gateway - Example: - crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]- Example: - permit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]- Example: - permit
- Gateways with global routing ( - true) can connect to networks outside their associated region.- Example: - true
- The unique identifier of this gateway - Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway location long name - Example: - Dallas 03
- Gateway location - Example: - dal03
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - myGateway
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 
- Gateway speed in megabits per second - Example: - 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]- Example: - dedicated
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 
- BFD configuration information. 
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR - Example: - 10.254.30.78/30
- IBM BGP ASN - Example: - 13884
- BGP IBM CIDR - Example: - 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]- Example: - active
- Date and time bgp status was updated - Example: - 2020-08-20T06:58:41.909781Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - myCarrierName
- Changes pending approval for provider managed Direct Link Connect gateways. - change_request
- type of gateway change request - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. - Example: - The completion notice file was blank
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]- Example: - transit
- Cross connect router. Only included on type=dedicated gateways. - Example: - xcr01.dal03
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - newCustomerName
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]- Example: - up
- Date and time link status was updated - Example: - 2020-08-20T06:58:41.909781Z
- MACsec configuration information of a Direct Link gateway. 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Gateway patch panel complete notification from implementation team - Example: - patch panel configuration details
- Port information for type=connect gateways. 
- Indicates whether gateway changes must be made via a provider portal. 
- Resource group reference 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.- Example: - 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - changeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - statusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - AuthenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - BfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - ChangeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - Macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - StatusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - OperationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - Port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - ResourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
Status Code
- The Direct Link gateway was retrieved successfully. 
- A Direct Link gateway with the specified identifier could not be found. 
- { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "bfd_config": { "bfd_status": "up", "bfd_status_updated_at": "2020-08-20T06:58:41.909781Z", "interval": 2000, "multiplier": 3 }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "bgp_status_updated_at": "2020-08-20T06:58:41.909781Z", "carrier_name": "CarrierName", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "customer_name": "CustomerName", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "link_status_updated_at": "2020-08-20T06:58:41.909781Z", "location_display_name": "Dallas 03", "location_name": "dal03", "macsec": { "active": true, "security_policy": "must_secure", "status": "secured" }, "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" }
- { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "bfd_config": { "bfd_status": "up", "bfd_status_updated_at": "2020-08-20T06:58:41.909781Z", "interval": 2000, "multiplier": 3 }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "bgp_status_updated_at": "2020-08-20T06:58:41.909781Z", "carrier_name": "CarrierName", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "customer_name": "CustomerName", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "link_status_updated_at": "2020-08-20T06:58:41.909781Z", "location_display_name": "Dallas 03", "location_name": "dal03", "macsec": { "active": true, "security_policy": "must_secure", "status": "secured" }, "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Update gateway
Update a Direct Link gateway.
Update a Direct Link gateway.
Update a Direct Link gateway.
Update a Direct Link gateway.
Update a Direct Link gateway.
PATCH /gateways/{id}ServiceCall<Gateway> updateGateway(UpdateGatewayOptions updateGatewayOptions)updateGateway(params)
update_gateway(
        self,
        id: str,
        gateway_patch_template: 'GatewayPatchTemplate',
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) UpdateGateway(updateGatewayOptions *UpdateGatewayOptions) (result *Gateway, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) UpdateGatewayWithContext(ctx context.Context, updateGatewayOptions *UpdateGatewayOptions) (result *Gateway, response *core.DetailedResponse, err error)
Request
Use the UpdateGatewayOptions.Builder to create a UpdateGatewayOptions object that contains the parameter values for the updateGateway method.
Instantiate the UpdateGatewayOptions struct and set the fields to provide parameter values for the UpdateGateway method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The Direct Link gateway patch
- A reference to a key to use as the BGP MD5 authentication key. - Patch to - nullto disable BGP MD5 authentication.- authentication_key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - ^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@/]|%[0-9A-Z]{2})*){5}$- Example: - crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. 
- The autonomous system number (ASN) of Border Gateway Protocol (BGP) configuration for the IBM side of the DL 2.0 gateway. - Example: - 64999
- BGP customer edge router CIDR is the new CIDR (Classless Inter-Domain Routing) value to be updated on customer edge router for the DL 2.0 gateway. - Customer edge IP and IBM IP should be in the same network. Updating customer edge router CIDR should be accompanied with IBM CIDR in the request. Update customer edge router IP to a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. - Example: - 169.254.0.10/30
- BGP IBM CIDR is the new CIDR (Classless Inter-Domain Routing) value to be updated on IBM edge router for the DL 2.0 gateway. - IBM IP and customer edge IP should be in the same network. Updating IBM CIDR should be accompanied with customer edge router CIDR in the request. Update IBM CIDR to a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. - Example: - 169.254.0.9/30
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Example: - transit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Example: - permit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Example: - permit
- Gateways with global routing ( - true) can connect to networks outside of their associated region.- Example: - true
- Use this field during LOA rejection to provide the reason for the rejection. - Only allowed for type=dedicated gateways. - Example: - The port mentioned was incorrect
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - testGateway
- Gateway operational status. - For gateways pending LOA approval, patch operational_status to the appropriate value to approve or reject its LOA. When rejecting an LOA, provide reject reasoning in - loa_reject_reason.- Only allowed for type=dedicated gateways. - Allowable values: [ - loa_accepted,- loa_rejected]- Example: - loa_accepted
- Gateway patch panel complete notification from implementation team - Example: - patch panel configuration details
- Gateway speed in megabits per second - Example: - 1000
- The VLAN to configure for this gateway. - Specify - nullto remove an existing VLAN configuration.- The gateway must have a - typeof- dedicated.- Possible values: 2 ≤ value ≤ 3967 - Example: - 10
The updateGateway options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The Direct Link gateway patch. 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- authenticationKey
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfdConfig
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - To clear the BFD configuration patch its interval to 0. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- The autonomous system number (ASN) of Border Gateway Protocol (BGP) configuration for the IBM side of the DL 2.0 gateway. Examples:
- BGP customer edge router CIDR is the new CIDR (Classless Inter-Domain Routing) value to be updated on customer edge router for the DL 2.0 gateway. - Customer edge IP and IBM IP should be in the same network. Updating customer edge router CIDR should be accompanied with IBM CIDR in the request. Update customer edge router IP to a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:
- BGP IBM CIDR is the new CIDR (Classless Inter-Domain Routing) value to be updated on IBM edge router for the DL 2.0 gateway. - IBM IP and customer edge IP should be in the same network. Updating IBM CIDR should be accompanied with customer edge router CIDR in the request. Update IBM CIDR to a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]Examples:
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]Examples:
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]Examples:
- Gateways with global routing ( - true) can connect to networks outside of their associated region.Examples:
- Use this field during LOA rejection to provide the reason for the rejection. - Only allowed for type=dedicated gateways. Examples:
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:
- Gateway operational status. - For gateways pending LOA approval, patch operational_status to the appropriate value to approve or reject its LOA. When rejecting an LOA, provide reject reasoning in - loa_reject_reason.- Only allowed for type=dedicated gateways. - Allowable values: [ - loa_accepted,- loa_rejected]Examples:
- Gateway patch panel complete notification from implementation team. Examples:
- Gateway speed in megabits per second. Examples:
- The VLAN to configure for this gateway. - Specify - nullto remove an existing VLAN configuration.- The gateway must have a - typeof- dedicated.- Possible values: 2 ≤ value ≤ 3967 Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- patch gateway template. - gateway_patch_template
- authentication_key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - To clear the BFD configuration patch its interval to 0. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- The autonomous system number (ASN) of Border Gateway Protocol (BGP) configuration for the IBM side of the DL 2.0 gateway. Examples:- 64999
- BGP customer edge router CIDR is the new CIDR (Classless Inter-Domain Routing) value to be updated on customer edge router for the DL 2.0 gateway. - Customer edge IP and IBM IP should be in the same network. Updating customer edge router CIDR should be accompanied with IBM CIDR in the request. Update customer edge router IP to a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.10/30
- BGP IBM CIDR is the new CIDR (Classless Inter-Domain Routing) value to be updated on IBM edge router for the DL 2.0 gateway. - IBM IP and customer edge IP should be in the same network. Updating IBM CIDR should be accompanied with customer edge router CIDR in the request. Update IBM CIDR to a valid bgp_cer_cidr and bgp_ibm_cidr CIDR, the value must reside in one of "10.254.0.0/16", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16" or an owned public CIDR. bgp_cer_cidr and bgp_ibm_cidr must have matching network and subnet mask values. Examples:- 169.254.0.9/30
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]Examples:- transit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside of their associated region.Examples:- true
- Use this field during LOA rejection to provide the reason for the rejection. - Only allowed for type=dedicated gateways. Examples:- The port mentioned was incorrect 
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- testGateway 
- Gateway operational status. - For gateways pending LOA approval, patch operational_status to the appropriate value to approve or reject its LOA. When rejecting an LOA, provide reject reasoning in - loa_reject_reason.- Only allowed for type=dedicated gateways. - Allowable values: [ - loa_accepted,- loa_rejected]Examples:- loa_accepted 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Gateway speed in megabits per second. Examples:- 1000
- The VLAN to configure for this gateway. - Specify - nullto remove an existing VLAN configuration.- The gateway must have a - typeof- dedicated.- Possible values: 2 ≤ value ≤ 3967 Examples:- 10
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The UpdateGateway options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The Direct Link gateway patch. 
- curl -X PATCH https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN" -d '{ "name": "new_gateway_name" }'
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.updateGateway(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GatewayPatchTemplate gatewayPatchTemplateModel = new GatewayPatchTemplate.Builder() .build(); Map<String, Object> gatewayPatchTemplateModelAsPatch = gatewayPatchTemplateModel.asPatch(); UpdateGatewayOptions updateGatewayOptions = new UpdateGatewayOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .gatewayPatchTemplatePatch(gatewayPatchTemplateModelAsPatch) .build(); Response<Gateway> response = directLinkService.updateGateway(updateGatewayOptions).execute(); Gateway gateway = response.getResult(); System.out.println(gateway);
- gatewayPatchTemplateModel := &directlinkv1.GatewayPatchTemplate{ } gatewayPatchTemplateModelAsPatch, asPatchErr := gatewayPatchTemplateModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateGatewayOptions := directLinkService.NewUpdateGatewayOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", gatewayPatchTemplateModelAsPatch, ) gateway, response, err := directLinkService.UpdateGateway(updateGatewayOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gateway, "", " ") fmt.Println(string(b))
- gateway_patch_template_model = { } response = direct_link_service.update_gateway( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', gateway_patch_template=gateway_patch_template_model, ) gateway = response.get_result() print(json.dumps(gateway, indent=2))
Response
gateway
- Customer BGP ASN - Example: - 64999
- The date and time resource was created 
- The CRN (Cloud Resource Name) of this gateway - Example: - crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]- Example: - permit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]- Example: - permit
- Gateways with global routing ( - true) can connect to networks outside their associated region.- Example: - true
- The unique identifier of this gateway - Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway location long name - Example: - Dallas 03
- Gateway location - Example: - dal03
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - myGateway
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 
- Gateway speed in megabits per second - Example: - 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]- Example: - dedicated
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 
- BFD configuration information. 
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR - Example: - 10.254.30.78/30
- IBM BGP ASN - Example: - 13884
- BGP IBM CIDR - Example: - 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]- Example: - active
- Date and time bgp status was updated - Example: - 2020-08-20T06:58:41.909781Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - myCarrierName
- Changes pending approval for provider managed Direct Link Connect gateways. - change_request
- type of gateway change request - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. - Example: - The completion notice file was blank
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]- Example: - transit
- Cross connect router. Only included on type=dedicated gateways. - Example: - xcr01.dal03
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - newCustomerName
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]- Example: - up
- Date and time link status was updated - Example: - 2020-08-20T06:58:41.909781Z
- MACsec configuration information of a Direct Link gateway. 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Gateway patch panel complete notification from implementation team - Example: - patch panel configuration details
- Port information for type=connect gateways. 
- Indicates whether gateway changes must be made via a provider portal. 
- Resource group reference 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.- Example: - 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - changeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - statusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - AuthenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - BfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - ChangeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - Macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - StatusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - OperationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - Port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - ResourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
Status Code
- The Direct Link gateway was updated successfully. 
- The request was invalid. 
- A Direct Link gateway with the specified identifier could not be found. 
- { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "bfd_config": { "bfd_status": "up", "bfd_status_updated_at": "2020-08-20T06:58:41.909781Z", "interval": 2000, "multiplier": 3 }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "bgp_status_updated_at": "2020-08-20T06:58:41.909781Z", "carrier_name": "CarrierName", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "customer_name": "CustomerName", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "link_status_updated_at": "2020-08-20T06:58:41.909781Z", "location_display_name": "Dallas 03", "location_name": "dal03", "macsec": { "active": true, "security_policy": "must_secure", "status": "secured" }, "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" }
- { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "bfd_config": { "bfd_status": "up", "bfd_status_updated_at": "2020-08-20T06:58:41.909781Z", "interval": 2000, "multiplier": 3 }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "bgp_status_updated_at": "2020-08-20T06:58:41.909781Z", "carrier_name": "CarrierName", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "customer_name": "CustomerName", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "link_status_updated_at": "2020-08-20T06:58:41.909781Z", "location_display_name": "Dallas 03", "location_name": "dal03", "macsec": { "active": true, "security_policy": "must_secure", "status": "secured" }, "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" }
- { "errors": [ { "code": "validation_invalid_argument", "message": "Invalid Request", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "validation_invalid_argument", "message": "Invalid Request", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Approve or reject change requests
Approve or reject a gateway's current oustanding change request.
This API is only used for provider created Direct Link Connect gateways to approve or reject specific changes initiated from a provider portal.
Approve or reject a gateway's current oustanding change request.
This API is only used for provider created Direct Link Connect gateways to approve or reject specific changes initiated from a provider portal.
Approve or reject a gateway's current oustanding change request.
This API is only used for provider created Direct Link Connect gateways to approve or reject specific changes initiated from a provider portal.
Approve or reject a gateway's current oustanding change request.
This API is only used for provider created Direct Link Connect gateways to approve or reject specific changes initiated from a provider portal.
Approve or reject a gateway's current oustanding change request.
This API is only used for provider created Direct Link Connect gateways to approve or reject specific changes initiated from a provider portal.
POST /gateways/{id}/actionsServiceCall<Gateway> createGatewayAction(CreateGatewayActionOptions createGatewayActionOptions)createGatewayAction(params)
create_gateway_action(
        self,
        id: str,
        *,
        action: Optional[str] = None,
        as_prepends: Optional[List['AsPrependTemplate']] = None,
        authentication_key: Optional['AuthenticationKeyIdentity'] = None,
        bfd_config: Optional['GatewayBfdConfigActionTemplate'] = None,
        connection_mode: Optional[str] = None,
        default_export_route_filter: Optional[str] = None,
        default_import_route_filter: Optional[str] = None,
        export_route_filters: Optional[List['GatewayTemplateRouteFilter']] = None,
        global_: Optional[bool] = None,
        import_route_filters: Optional[List['GatewayTemplateRouteFilter']] = None,
        metered: Optional[bool] = None,
        resource_group: Optional['ResourceGroupIdentity'] = None,
        updates: Optional[List['GatewayActionTemplateUpdatesItem']] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) CreateGatewayAction(createGatewayActionOptions *CreateGatewayActionOptions) (result *Gateway, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) CreateGatewayActionWithContext(ctx context.Context, createGatewayActionOptions *CreateGatewayActionOptions) (result *Gateway, response *core.DetailedResponse, err error)
Request
Use the CreateGatewayActionOptions.Builder to create a CreateGatewayActionOptions object that contains the parameter values for the createGatewayAction method.
Instantiate the CreateGatewayActionOptions struct and set the fields to provide parameter values for the CreateGatewayAction method.
Path Parameters
- Direct Link Connect gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
Approve or reject a pending change request. Only used for provider created gateways to approve or reject changes initiated from a providers portal.
- Action request - Allowable values: [ - create_gateway_approve,- create_gateway_reject,- delete_gateway_approve,- delete_gateway_reject,- update_attributes_approve,- update_attributes_reject]
- Applicable for create_gateway_approve requests to create AS Prepends. Contains an array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 
- Applicable for create_gateway_approve requests to select the gateway's BFD configuration information. 
- Applicable for create_gateway_approve requests to select the type of services this gateway is attached to. Mode transit indicates this gateway will be attached to Transit Gateway Service and direct means this gateway will be attached to vpc or classic connection. If unspecified on create_gateway_approve, default value direct is used. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - direct- Example: - transit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permit- Example: - permit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permit- Example: - permit
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 
- Applicable for create_gateway_approve requests to select the gateway's routing option. Gateways with global routing ( - true) can connect to networks outside of their associated region.- Example: - true
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 
- Applicable for create_gateway_approve requests to select the gateway's metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
- Set for create_gateway_approve requests to select the gateway's resource group. If unspecified on create_gateway_approve, the account's default resource group is used. - resource_group
- Resource group identifier - Example: - 56969d6043e9465c883cb9f7363e78e8
 
- Specify attribute updates being approved or rejected, update_attributes_approve and update_attributes_reject actions must provide an updates field that matches the gateway's current pending changes. - updates
- gateway speed change - undefined
- New gateway speed in megabits per second. - Example: - 500
 
 
The createGatewayAction options.
- Direct Link Connect gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Action request. - Allowable values: [ - create_gateway_approve,- create_gateway_reject,- delete_gateway_approve,- delete_gateway_reject,- update_attributes_approve,- update_attributes_reject]
- Applicable for create_gateway_approve requests to create AS Prepends. Contains an array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- authenticationKey
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- Applicable for create_gateway_approve requests to select the gateway's BFD configuration information. - bfdConfig
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- Applicable for create_gateway_approve requests to select the type of services this gateway is attached to. Mode transit indicates this gateway will be attached to Transit Gateway Service and direct means this gateway will be attached to vpc or classic connection. If unspecified on create_gateway_approve, default value direct is used. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - directExamples:- transit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - exportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Applicable for create_gateway_approve requests to select the gateway's routing option. Gateways with global routing ( - true) can connect to networks outside of their associated region.Examples:- true
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - importRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Applicable for create_gateway_approve requests to select the gateway's metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- Set for create_gateway_approve requests to select the gateway's resource group. If unspecified on create_gateway_approve, the account's default resource group is used. - resourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Specify attribute updates being approved or rejected, update_attributes_approve and update_attributes_reject actions must provide an updates field that matches the gateway's current pending changes. - updates
- gateway speed change. - GatewayActionTemplateUpdatesItem
- New gateway speed in megabits per second. Examples:- 500
 
 
parameters
- Direct Link Connect gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Action request. - Allowable values: [ - create_gateway_approve,- create_gateway_reject,- delete_gateway_approve,- delete_gateway_reject,- update_attributes_approve,- update_attributes_reject]
- Applicable for create_gateway_approve requests to create AS Prepends. Contains an array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- authenticationKey
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- Applicable for create_gateway_approve requests to select the gateway's BFD configuration information. - bfdConfig
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- Applicable for create_gateway_approve requests to select the type of services this gateway is attached to. Mode transit indicates this gateway will be attached to Transit Gateway Service and direct means this gateway will be attached to vpc or classic connection. If unspecified on create_gateway_approve, default value direct is used. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - directExamples:
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - exportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Applicable for create_gateway_approve requests to select the gateway's routing option. Gateways with global routing ( - true) can connect to networks outside of their associated region.Examples:
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - importRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Applicable for create_gateway_approve requests to select the gateway's metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:
- Resource group for this resource. If unspecified, the account's default resource group is used. - resourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Specify attribute updates being approved or rejected, update_attributes_approve and update_attributes_reject actions must provide an updates field that matches the gateway's current pending changes. - updates
- gateway speed change. - GatewayActionTemplateUpdatesItem
- New gateway speed in megabits per second. Examples:- 500
 
 
parameters
- Direct Link Connect gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Action request. - Allowable values: [ - create_gateway_approve,- create_gateway_reject,- delete_gateway_approve,- delete_gateway_reject,- update_attributes_approve,- update_attributes_reject]
- Applicable for create_gateway_approve requests to create AS Prepends. Contains an array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- authentication_key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- Applicable for create_gateway_approve requests to select the gateway's BFD configuration information. - bfd_config
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- Applicable for create_gateway_approve requests to select the type of services this gateway is attached to. Mode transit indicates this gateway will be attached to Transit Gateway Service and direct means this gateway will be attached to vpc or classic connection. If unspecified on create_gateway_approve, default value direct is used. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - directExamples:
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - export_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Applicable for create_gateway_approve requests to select the gateway's routing option. Gateways with global routing ( - true) can connect to networks outside of their associated region.Examples:
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - import_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Applicable for create_gateway_approve requests to select the gateway's metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:
- Resource group for this resource. If unspecified, the account's default resource group is used. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Specify attribute updates being approved or rejected, update_attributes_approve and update_attributes_reject actions must provide an updates field that matches the gateway's current pending changes. - updates
- gateway speed change. - GatewayActionTemplateUpdatesItem
- New gateway speed in megabits per second. Examples:- 500
 
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The CreateGatewayAction options.
- Direct Link Connect gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Action request. - Allowable values: [ - create_gateway_approve,- create_gateway_reject,- delete_gateway_approve,- delete_gateway_reject,- update_attributes_approve,- update_attributes_reject]
- Applicable for create_gateway_approve requests to create AS Prepends. Contains an array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. Maximum of 10 prefixes. If not specified, this AS Prepend applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- AuthenticationKey
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- Applicable for create_gateway_approve requests to select the gateway's BFD configuration information. - BfdConfig
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 - Default: - 3Examples:- 10
 
- Applicable for create_gateway_approve requests to select the type of services this gateway is attached to. Mode transit indicates this gateway will be attached to Transit Gateway Service and direct means this gateway will be attached to vpc or classic connection. If unspecified on create_gateway_approve, default value direct is used. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Allowable values: [ - direct,- transit]- Default: - directExamples:- transit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Allowable values: [ - permit,- deny]- Default: - permitExamples:- permit 
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - ExportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Applicable for create_gateway_approve requests to select the gateway's routing option. Gateways with global routing ( - true) can connect to networks outside of their associated region.Examples:- true
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - ImportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- Applicable for create_gateway_approve requests to select the gateway's metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- Set for create_gateway_approve requests to select the gateway's resource group. If unspecified on create_gateway_approve, the account's default resource group is used. - ResourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Specify attribute updates being approved or rejected, update_attributes_approve and update_attributes_reject actions must provide an updates field that matches the gateway's current pending changes. - Updates
- gateway speed change. - GatewayActionTemplateUpdatesItem
- New gateway speed in megabits per second. Examples:- 500
 
 
- curl -X POST https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/actions?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN" -d '{ "action": "create_gateway_approve", "resource_group": { "id": "testid-123456" } }'
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.createGatewayAction(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- CreateGatewayActionOptions createGatewayActionOptions = new CreateGatewayActionOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Gateway> response = directLinkService.createGatewayAction(createGatewayActionOptions).execute(); Gateway gateway = response.getResult(); System.out.println(gateway);
- createGatewayActionOptions := directLinkService.NewCreateGatewayActionOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) gateway, response, err := directLinkService.CreateGatewayAction(createGatewayActionOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gateway, "", " ") fmt.Println(string(b))
- response = direct_link_service.create_gateway_action( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) gateway = response.get_result() print(json.dumps(gateway, indent=2))
Response
gateway
- Customer BGP ASN - Example: - 64999
- The date and time resource was created 
- The CRN (Cloud Resource Name) of this gateway - Example: - crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]- Example: - permit
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]- Example: - permit
- Gateways with global routing ( - true) can connect to networks outside their associated region.- Example: - true
- The unique identifier of this gateway - Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway location long name - Example: - Dallas 03
- Gateway location - Example: - dal03
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - myGateway
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 
- Gateway speed in megabits per second - Example: - 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]- Example: - dedicated
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 
- BFD configuration information. 
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR - Example: - 10.254.30.78/30
- IBM BGP ASN - Example: - 13884
- BGP IBM CIDR - Example: - 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]- Example: - active
- Date and time bgp status was updated - Example: - 2020-08-20T06:58:41.909781Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - myCarrierName
- Changes pending approval for provider managed Direct Link Connect gateways. - change_request
- type of gateway change request - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. - Example: - The completion notice file was blank
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]- Example: - transit
- Cross connect router. Only included on type=dedicated gateways. - Example: - xcr01.dal03
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 - Example: - newCustomerName
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]- Example: - up
- Date and time link status was updated - Example: - 2020-08-20T06:58:41.909781Z
- MACsec configuration information of a Direct Link gateway. 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Gateway patch panel complete notification from implementation team - Example: - patch panel configuration details
- Port information for type=connect gateways. 
- Indicates whether gateway changes must be made via a provider portal. 
- Resource group reference 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.- Example: - 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - changeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - statusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - authentication_key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - bfd_config
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - change_request
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - operational_status_reasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - resource_group
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
gateway.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Comma separated list of prefixes this AS Prepend applies to. If empty, this applies to all prefixes. Examples:- 172.17.0.0/16
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
- A reference to a Key Protect Standard Key. - AuthenticationKey
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:kms(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- BFD configuration information. - BfdConfig
- Gateway BFD status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - init,- up,- down]Examples:- up 
- Date and time bfd status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Minimum interval in milliseconds at which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session. - Possible values: 300 ≤ value ≤ 255000 Examples:- 2000
- The number of hello packets not received by a neighbor that causes the originating interface to be declared down. - Possible values: 1 ≤ value ≤ 255 Examples:- 10
 
- Customer BGP ASN. Examples:- 64999
- (DEPRECATED) BGP base CIDR is deprecated and no longer recognized by the Direct Link APIs. - See bgp_cer_cidr and bgp_ibm_cidr fields instead for IP related information. - Deprecated field bgp_base_cidr will be removed from the API specification after 15-MAR-2021. 
- BGP customer edge router CIDR. Examples:- 10.254.30.78/30
- IBM BGP ASN. Examples:- 13884
- BGP IBM CIDR. Examples:- 10.254.30.77/30
- Gateway BGP status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
- Date and time bgp status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Carrier name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- myCarrierName 
- gateway create. - ChangeRequest
- type of gateway change request. - Possible values: [ - create_gateway]
 
- Reason for completion notice rejection. Only included on type=dedicated gateways with a rejected completion notice. Examples:- The completion notice file was blank 
- Type of services this Gateway is attached to. Mode transit means this Gateway will be attached to Transit Gateway Service and direct means this Gateway will be attached to vpc or classic connection. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - direct,- transit]Examples:- transit 
- The date and time resource was created. 
- The CRN (Cloud Resource Name) of this gateway. Examples:- crn:v1:bluemix:public:directlink:dal03:a/4111d05f36894e3cb9b46a43556d9000::dedicated:ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Indicates whether this gateway is cross account gateway. Examples:- false
- Cross connect router. Only included on type=dedicated gateways. Examples:- xcr01.dal03 
- Customer name. Only set for type=dedicated gateways. - Possible values: 1 ≤ length ≤ 128 Examples:- newCustomerName 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- The default directional route filter action that applies to routes that do not match any directional route filters. - Possible values: [ - permit,- deny]Examples:- permit 
- Gateways with global routing ( - true) can connect to networks outside their associated region.Examples:- true
- The unique identifier of this gateway. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Gateway link status. Only included on type=dedicated gateways. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - down,- up]Examples:- up 
- Date and time link status was updated. Examples:- 2020-08-20T06:58:41.909Z
- Gateway location long name. Examples:- Dallas 03
- Gateway location. Examples:- dal03 
- MACsec configuration information of a Direct Link gateway. - Macsec
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - StatusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
 
- Indicates the direct link's MACsec capability. It must match one of the MACsec related - capabilitiesof the- cross_connect_router.- Only included on type=dedicated direct links. - non_macsec: The direct link does not support MACsec.
- macsec: The direct link supports MACsec. The MACsec feature must be enabled.
- macsec_optional: The direct link supports MACsec. The MACsec feature is not required and can be enabled after direct link creation.
 - Possible values: [ - non_macsec,- macsec,- macsec_optional]
- Metered billing option. When - truegateway usage is billed per gigabyte. When- falsethere is no per gigabyte usage charge, instead a flat rate is charged for the gateway.Examples:- false
- The unique user-defined name for this gateway. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- myGateway 
- Gateway operational status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - See - operational_status_reasons[]for possible remediation of the- failed- operational_status.- Possible values: [ - awaiting_completion_notice,- awaiting_loa,- configuring,- create_pending,- create_rejected,- completion_notice_approved,- completion_notice_received,- completion_notice_rejected,- delete_pending,- loa_accepted,- loa_created,- loa_rejected,- provisioned,- failed]
- Context for certain values of - operational_status.- Possible values: 0 ≤ number of items ≤ 10 - OperationalStatusReasons
- A reason code for the status: - authentication_key_failed:- authentication_keywas unable to be configured on the direct link gateway. To recover, first resolve any issues with your key, then patch the gateway with the same or new key.
 - Possible values: [ - authentication_key_failed]Examples:- authentication_key_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- Gateway patch panel complete notification from implementation team. Examples:- patch panel configuration details 
- Port information for type=connect gateways. - Port
- Port Identifier. Examples:- 54321b1a-fee4-41c7-9e11-9cd99e000aaa
 
- Indicates whether gateway changes must be made via a provider portal. Examples:- false
- Resource group reference. - ResourceGroup
- Resource group identifier. Examples:- 56969d6043e9465c883cb9f7363e78e8
 
- Gateway speed in megabits per second. Examples:- 1000
- Offering type. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - connect,- dedicated]Examples:- dedicated 
- VLAN configured for this gateway. If there is no vlan configured for the gateway, the vlan will be absent. This property will also be absent if this gateway's - crnis in another account.Examples:- 10
Status Code
- action successfully completed 
- action successfully completed 
- invalid request 
- request not authorized 
- resource not found 
- { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "bfd_config": { "bfd_status": "up", "bfd_status_updated_at": "2020-08-20T06:58:41.909781Z", "interval": 2000, "multiplier": 3 }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "bgp_status_updated_at": "2020-08-20T06:58:41.909781Z", "carrier_name": "CarrierName", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "customer_name": "CustomerName", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "link_status_updated_at": "2020-08-20T06:58:41.909781Z", "location_display_name": "Dallas 03", "location_name": "dal03", "macsec": { "active": true, "security_policy": "must_secure", "status": "secured" }, "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" }
- { "as_prepends": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c999", "length": 4, "policy": "import", "prefix": "172.17.0.0/16", "updated_at": "2020-11-02T20:40:29.622Z" } ], "authentication_key": { "crn": "crn:v1:bluemix:public:kms:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "bfd_config": { "bfd_status": "up", "bfd_status_updated_at": "2020-08-20T06:58:41.909781Z", "interval": 2000, "multiplier": 3 }, "bgp_asn": 64999, "bgp_cer_cidr": "10.254.30.78/30", "bgp_ibm_asn": 13884, "bgp_ibm_cidr": "10.254.30.77/30", "bgp_status": "active", "bgp_status_updated_at": "2020-08-20T06:58:41.909781Z", "carrier_name": "CarrierName", "connection_mode": "transit", "created_at": "2020-11-02T20:40:29.622Z", "crn": "crn:v1:bluemix:public:directlink:dal00:a/aaaaaaaa4a484f029d0fca5a11111111::connect:bbbbbbbb-f326-428f-a345-222222222222", "cross_account": false, "cross_connect_router": "xcr01.dal03", "customer_name": "CustomerName", "default_export_route_filter": "permit", "default_import_route_filter": "deny", "global": true, "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "link_status": "up", "link_status_updated_at": "2020-08-20T06:58:41.909781Z", "location_display_name": "Dallas 03", "location_name": "dal03", "macsec": { "active": true, "security_policy": "must_secure", "status": "secured" }, "metered": false, "name": "example-gateway", "operational_status": "provisioned", "operational_status_reasons": [], "resource_group": { "id": "54321b1a-fee4-41c7-9e11-9cd99e000aaa" }, "speed_mbps": 1000, "type": "dedicated" }
- { "errors": [ { "code": "validation_invalid_argument", "message": "The value of given argument is invalid", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "action", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "validation_invalid_argument", "message": "The value of given argument is invalid", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "action", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_authorized", "message": "request not authorized", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_authorized", "message": "request not authorized", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Get completion notice
Retrieve a Direct Link Dedicated gateway's completion notice.
Retrieve a Direct Link Dedicated gateway's completion notice.
Retrieve a Direct Link Dedicated gateway's completion notice.
Retrieve a Direct Link Dedicated gateway's completion notice.
Retrieve a Direct Link Dedicated gateway's completion notice.
GET /gateways/{id}/completion_noticeServiceCall<InputStream> listGatewayCompletionNotice(ListGatewayCompletionNoticeOptions listGatewayCompletionNoticeOptions)listGatewayCompletionNotice(params)
list_gateway_completion_notice(
        self,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGatewayCompletionNotice(listGatewayCompletionNoticeOptions *ListGatewayCompletionNoticeOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewayCompletionNoticeWithContext(ctx context.Context, listGatewayCompletionNoticeOptions *ListGatewayCompletionNoticeOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
Request
Use the ListGatewayCompletionNoticeOptions.Builder to create a ListGatewayCompletionNoticeOptions object that contains the parameter values for the listGatewayCompletionNotice method.
Instantiate the ListGatewayCompletionNoticeOptions struct and set the fields to provide parameter values for the ListGatewayCompletionNotice method.
Path Parameters
- Direct Link Dedicated gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listGatewayCompletionNotice options.
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListGatewayCompletionNotice options.
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/completion_notice?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.listGatewayCompletionNotice(params); // response is binary // fs.writeFileSync('result.out', res.result); } catch (err) { console.warn(err); }
- ListGatewayCompletionNoticeOptions listGatewayCompletionNoticeOptions = new ListGatewayCompletionNoticeOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<InputStream> response = directLinkService.listGatewayCompletionNotice(listGatewayCompletionNoticeOptions).execute(); try (InputStream inputStream = response.getResult();) { inputStream.transferTo(new java.io.FileOutputStream("result.out")); }
- listGatewayCompletionNoticeOptions := directLinkService.NewListGatewayCompletionNoticeOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) result, response, err := directLinkService.ListGatewayCompletionNotice(listGatewayCompletionNoticeOptions) if err != nil { panic(err) } if result != nil { defer result.Close() outFile, err := os.Create("result.out") if err != nil { panic(err) } defer outFile.Close() _, err = io.Copy(outFile, result) if err != nil { panic(err) } }
- response = direct_link_service.list_gateway_completion_notice( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) result = response.get_result() with open('/tmp/result.out', 'wb') as fp: fp.write(result)
Response
Response type: InputStream
Response type: NodeJS.ReadableStream
Response type: BinaryIO
Response type: io.ReadCloser
Completion Notice
Status Code
- Completion notice retrieved successfully. 
- The Direct Link completion notice for the specified gateway could not be found. 
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Create completion notice
Upload a Direct Link Dedicated gateway completion notice.
Upload a Direct Link Dedicated gateway completion notice.
Upload a Direct Link Dedicated gateway completion notice.
Upload a Direct Link Dedicated gateway completion notice.
Upload a Direct Link Dedicated gateway completion notice.
PUT /gateways/{id}/completion_noticeServiceCall<Void> createGatewayCompletionNotice(CreateGatewayCompletionNoticeOptions createGatewayCompletionNoticeOptions)createGatewayCompletionNotice(params)
create_gateway_completion_notice(
        self,
        id: str,
        *,
        upload: Optional[BinaryIO] = None,
        upload_content_type: Optional[str] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) CreateGatewayCompletionNotice(createGatewayCompletionNoticeOptions *CreateGatewayCompletionNoticeOptions) (response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) CreateGatewayCompletionNoticeWithContext(ctx context.Context, createGatewayCompletionNoticeOptions *CreateGatewayCompletionNoticeOptions) (response *core.DetailedResponse, err error)
Request
Use the CreateGatewayCompletionNoticeOptions.Builder to create a CreateGatewayCompletionNoticeOptions object that contains the parameter values for the createGatewayCompletionNotice method.
Instantiate the CreateGatewayCompletionNoticeOptions struct and set the fields to provide parameter values for the CreateGatewayCompletionNotice method.
Path Parameters
- Direct Link Dedicated gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
Form Parameters
- Completion notice PDF file 
The createGatewayCompletionNotice options.
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Completion notice PDF file. 
- The content type of upload. Values for this parameter can be obtained from the HttpMediaType class. 
parameters
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Completion notice PDF file. 
- The content type of upload. 
parameters
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Completion notice PDF file. 
- The content type of upload. 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The CreateGatewayCompletionNotice options.
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Completion notice PDF file. 
- The content type of upload. 
- curl -X PUT https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/completion_notice?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN" -F "upload=@completion_notice.pdf" -H "Content-Type: multipart/form-data"
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; try { await directLinkService.createGatewayCompletionNotice(params); } catch (err) { console.warn(err); }
- CreateGatewayCompletionNoticeOptions createGatewayCompletionNoticeOptions = new CreateGatewayCompletionNoticeOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Void> response = directLinkService.createGatewayCompletionNotice(createGatewayCompletionNoticeOptions).execute();
- createGatewayCompletionNoticeOptions := directLinkService.NewCreateGatewayCompletionNoticeOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) response, err := directLinkService.CreateGatewayCompletionNotice(createGatewayCompletionNoticeOptions) if err != nil { panic(err) } if response.StatusCode != 204 { fmt.Printf("\nUnexpected response status code received from CreateGatewayCompletionNotice(): %d\n", response.StatusCode) }
- response = direct_link_service.create_gateway_completion_notice( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', )
Response
Status Code
- Completion notice upload successful. 
- An invalid Direct Link completion notice request was provided. 
- The Direct Link completion notice for the specified gateway could not be found. 
- { "errors": [ { "code": "bad_request", "message": "Required parameter missing.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "Required parameter missing.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Get letter of authorization
Retrieve a Direct Link Dedicated gateway's Letter of Authorization.
Retrieve a Direct Link Dedicated gateway's Letter of Authorization.
Retrieve a Direct Link Dedicated gateway's Letter of Authorization.
Retrieve a Direct Link Dedicated gateway's Letter of Authorization.
Retrieve a Direct Link Dedicated gateway's Letter of Authorization.
GET /gateways/{id}/letter_of_authorizationServiceCall<InputStream> listGatewayLetterOfAuthorization(ListGatewayLetterOfAuthorizationOptions listGatewayLetterOfAuthorizationOptions)listGatewayLetterOfAuthorization(params)
list_gateway_letter_of_authorization(
        self,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGatewayLetterOfAuthorization(listGatewayLetterOfAuthorizationOptions *ListGatewayLetterOfAuthorizationOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewayLetterOfAuthorizationWithContext(ctx context.Context, listGatewayLetterOfAuthorizationOptions *ListGatewayLetterOfAuthorizationOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)
Request
Use the ListGatewayLetterOfAuthorizationOptions.Builder to create a ListGatewayLetterOfAuthorizationOptions object that contains the parameter values for the listGatewayLetterOfAuthorization method.
Instantiate the ListGatewayLetterOfAuthorizationOptions struct and set the fields to provide parameter values for the ListGatewayLetterOfAuthorization method.
Path Parameters
- Direct Link Dedicated gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listGatewayLetterOfAuthorization options.
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListGatewayLetterOfAuthorization options.
- Direct Link Dedicated gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/letter_of_authorization?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.listGatewayLetterOfAuthorization(params); // response is binary // fs.writeFileSync('result.out', res.result); } catch (err) { console.warn(err); }
- ListGatewayLetterOfAuthorizationOptions listGatewayLetterOfAuthorizationOptions = new ListGatewayLetterOfAuthorizationOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<InputStream> response = directLinkService.listGatewayLetterOfAuthorization(listGatewayLetterOfAuthorizationOptions).execute(); try (InputStream inputStream = response.getResult();) { inputStream.transferTo(new java.io.FileOutputStream("result.out")); }
- listGatewayLetterOfAuthorizationOptions := directLinkService.NewListGatewayLetterOfAuthorizationOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) result, response, err := directLinkService.ListGatewayLetterOfAuthorization(listGatewayLetterOfAuthorizationOptions) if err != nil { panic(err) } if result != nil { defer result.Close() outFile, err := os.Create("result.out") if err != nil { panic(err) } defer outFile.Close() _, err = io.Copy(outFile, result) if err != nil { panic(err) } }
- response = direct_link_service.list_gateway_letter_of_authorization( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) result = response.get_result() with open('/tmp/result.out', 'wb') as fp: fp.write(result)
Response
Response type: InputStream
Response type: NodeJS.ReadableStream
Response type: BinaryIO
Response type: io.ReadCloser
Letter of Authorization
Status Code
- Letter of Authorization retrieved successfully. 
- Letter of authorization not found. 
- { "errors": [ { "code": "not_found", "message": "Please check whether the resource you are requesting exists.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Please check whether the resource you are requesting exists.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Gateway statistics/debug information
Retrieve gateway statistics or debug information.  Specify statistic to retrieve using required type query parameter.
Retrieve gateway statistics or debug information.  Specify statistic to retrieve using required type query parameter.
Retrieve gateway statistics or debug information.  Specify statistic to retrieve using required type query parameter.
Retrieve gateway statistics or debug information.  Specify statistic to retrieve using required type query parameter.
Retrieve gateway statistics or debug information.  Specify statistic to retrieve using required type query parameter.
GET /gateways/{id}/statisticsServiceCall<GatewayStatisticCollection> getGatewayStatistics(GetGatewayStatisticsOptions getGatewayStatisticsOptions)getGatewayStatistics(params)
get_gateway_statistics(
        self,
        id: str,
        type: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGatewayStatistics(getGatewayStatisticsOptions *GetGatewayStatisticsOptions) (result *GatewayStatisticCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayStatisticsWithContext(ctx context.Context, getGatewayStatisticsOptions *GetGatewayStatisticsOptions) (result *GatewayStatisticCollection, response *core.DetailedResponse, err error)
Request
Use the GetGatewayStatisticsOptions.Builder to create a GetGatewayStatisticsOptions object that contains the parameter values for the getGatewayStatistics method.
Instantiate the GetGatewayStatisticsOptions struct and set the fields to provide parameter values for the GetGatewayStatistics method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Specify statistic to retrieve - Allowable values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getGatewayStatistics options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Specify statistic to retrieve. - Allowable values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Specify statistic to retrieve. - Allowable values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Specify statistic to retrieve. - Allowable values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGatewayStatistics options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Specify statistic to retrieve. - Allowable values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', type: 'macsec_mka_session', }; let res; try { res = await directLinkService.getGatewayStatistics(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayStatisticsOptions getGatewayStatisticsOptions = new GetGatewayStatisticsOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .type("macsec_mka_session") .build(); Response<GatewayStatisticCollection> response = directLinkService.getGatewayStatistics(getGatewayStatisticsOptions).execute(); GatewayStatisticCollection gatewayStatisticCollection = response.getResult(); System.out.println(gatewayStatisticCollection);
- getGatewayStatisticsOptions := directLinkService.NewGetGatewayStatisticsOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "macsec_mka_session", ) gatewayStatisticCollection, response, err := directLinkService.GetGatewayStatistics(getGatewayStatisticsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayStatisticCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway_statistics( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', type='macsec_mka_session', ) gateway_statistic_collection = response.get_result() print(json.dumps(gateway_statistic_collection, indent=2))
Response
gateway statistics
- Collection of gateway statistics 
gateway statistics.
- Collection of gateway statistics. - statistics
- Date and time data was collected. Examples:- 2020-08-20T06:58:41.909Z
- statistics output. Examples:- MKA statistics text... 
- statistic type. - Possible values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]Examples:- macsec_policy 
 
gateway statistics.
- Collection of gateway statistics. - statistics
- Date and time data was collected. Examples:- 2020-08-20T06:58:41.909Z
- statistics output. Examples:- MKA statistics text... 
- statistic type. - Possible values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]Examples:- macsec_policy 
 
gateway statistics.
- Collection of gateway statistics. - statistics
- Date and time data was collected. Examples:- 2020-08-20T06:58:41.909Z
- statistics output. Examples:- MKA statistics text... 
- statistic type. - Possible values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]Examples:- macsec_policy 
 
gateway statistics.
- Collection of gateway statistics. - Statistics
- Date and time data was collected. Examples:- 2020-08-20T06:58:41.909Z
- statistics output. Examples:- MKA statistics text... 
- statistic type. - Possible values: [ - macsec_mka_session,- macsec_policy,- macsec_mka_statistics,- bfd_session]Examples:- macsec_policy 
 
Status Code
- action successfully completed 
- request not authorized 
- resource not found 
- MACsec must be active to retrieve MACsec related data 
- { "statistics": [ { "created_at": "2020-08-20T06:58:41.909781Z", "data": "MKA session details", "type": "macsec_mka_session" } ] }
- { "statistics": [ { "created_at": "2020-08-20T06:58:41.909781Z", "data": "MKA session details", "type": "macsec_mka_session" } ] }
- { "errors": [ { "code": "not_authorized", "message": "request not authorized", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_authorized", "message": "request not authorized", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Request not valid for resource.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Request not valid for resource.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Gateway status information
Retrieve gateway status.  Specify status to retrieve using required type query parameter.
Retrieve gateway status.  Specify status to retrieve using required type query parameter.
Retrieve gateway status.  Specify status to retrieve using required type query parameter.
Retrieve gateway status.  Specify status to retrieve using required type query parameter.
Retrieve gateway status.  Specify status to retrieve using required type query parameter.
GET /gateways/{id}/statusServiceCall<GatewayStatusCollection> getGatewayStatus(GetGatewayStatusOptions getGatewayStatusOptions)getGatewayStatus(params)
get_gateway_status(
        self,
        id: str,
        *,
        type: Optional[str] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGatewayStatus(getGatewayStatusOptions *GetGatewayStatusOptions) (result *GatewayStatusCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayStatusWithContext(ctx context.Context, getGatewayStatusOptions *GetGatewayStatusOptions) (result *GatewayStatusCollection, response *core.DetailedResponse, err error)
Request
Use the GetGatewayStatusOptions.Builder to create a GetGatewayStatusOptions object that contains the parameter values for the getGatewayStatus method.
Instantiate the GetGatewayStatusOptions struct and set the fields to provide parameter values for the GetGatewayStatus method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
- Specify status to retrieve - Allowable values: [ - bgp,- bfd,- link]
The getGatewayStatus options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Specify status to retrieve. - Allowable values: [ - bgp,- bfd,- link]
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Specify status to retrieve. - Allowable values: [ - bgp,- bfd,- link]
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Specify status to retrieve. - Allowable values: [ - bgp,- bfd,- link]
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGatewayStatus options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Specify status to retrieve. - Allowable values: [ - bgp,- bfd,- link]
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.getGatewayStatus(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayStatusOptions getGatewayStatusOptions = new GetGatewayStatusOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<GatewayStatusCollection> response = directLinkService.getGatewayStatus(getGatewayStatusOptions).execute(); GatewayStatusCollection gatewayStatusCollection = response.getResult(); System.out.println(gatewayStatusCollection);
- getGatewayStatusOptions := directLinkService.NewGetGatewayStatusOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) gatewayStatusCollection, response, err := directLinkService.GetGatewayStatus(getGatewayStatusOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayStatusCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway_status( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) gateway_status_collection = response.get_result() print(json.dumps(gateway_status_collection, indent=2))
Response
gateway status
- array of status - status
 
gateway status.
- array of status. Examples:- { "type": "bgp", "updated_at": "2020-08-20T06:58:41.909781Z", "value": "active" }- status
- Gateway bgp status. - GatewayStatus
- Status type. - Possible values: [ - bgp]Examples:- bgp 
- Date and time status was collected. Examples:- 2020-08-20T06:58:41.909Z
- Status. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
 
 
gateway status.
- array of status. Examples:- { "type": "bgp", "updated_at": "2020-08-20T06:58:41.909781Z", "value": "active" }- status
- Gateway bgp status. - GatewayStatus
- Status type. - Possible values: [ - bgp]Examples:- bgp 
- Date and time status was collected. Examples:- 2020-08-20T06:58:41.909Z
- Status. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
 
 
gateway status.
- array of status. Examples:- { "type": "bgp", "updated_at": "2020-08-20T06:58:41.909781Z", "value": "active" }- status
- Gateway bgp status. - GatewayStatus
- Status type. - Possible values: [ - bgp]Examples:- bgp 
- Date and time status was collected. Examples:- 2020-08-20T06:58:41.909Z
- Status. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
 
 
gateway status.
- array of status. Examples:- { "type": "bgp", "updated_at": "2020-08-20T06:58:41.909781Z", "value": "active" }- Status
- Gateway bgp status. - GatewayStatus
- Status type. - Possible values: [ - bgp]Examples:- bgp 
- Date and time status was collected. Examples:- 2020-08-20T06:58:41.909Z
- Status. - Possible values: [ - active,- connect,- established,- idle]Examples:- active 
 
 
Status Code
- action successfully completed 
- request not authorized 
- resource not found 
- BFD must be active to retrieve BFD status 
- { "status": [ { "type": "bfd", "updated_at": "2020-08-20T06:58:41.909781Z", "value": "up" } ] }
- { "status": [ { "type": "bfd", "updated_at": "2020-08-20T06:58:41.909781Z", "value": "up" } ] }
- { "errors": [ { "code": "not_authorized", "message": "request not authorized", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_authorized", "message": "request not authorized", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Request not valid for resource.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Request not valid for resource.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List AS Prepends
Retrieve all AS Prepends for the specified Direct Link gateway.
Retrieve all AS Prepends for the specified Direct Link gateway.
Retrieve all AS Prepends for the specified Direct Link gateway.
Retrieve all AS Prepends for the specified Direct Link gateway.
Retrieve all AS Prepends for the specified Direct Link gateway.
GET /gateways/{gateway_id}/as_prependsServiceCall<AsPrependCollection> listGatewayAsPrepends(ListGatewayAsPrependsOptions listGatewayAsPrependsOptions)listGatewayAsPrepends(params)
list_gateway_as_prepends(
        self,
        gateway_id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGatewayAsPrepends(listGatewayAsPrependsOptions *ListGatewayAsPrependsOptions) (result *AsPrependCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewayAsPrependsWithContext(ctx context.Context, listGatewayAsPrependsOptions *ListGatewayAsPrependsOptions) (result *AsPrependCollection, response *core.DetailedResponse, err error)
Request
Use the ListGatewayAsPrependsOptions.Builder to create a ListGatewayAsPrependsOptions object that contains the parameter values for the listGatewayAsPrepends method.
Instantiate the ListGatewayAsPrependsOptions struct and set the fields to provide parameter values for the ListGatewayAsPrepends method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listGatewayAsPrepends options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListGatewayAsPrepends options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/as_prepends?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.listGatewayAsPrepends(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListGatewayAsPrependsOptions listGatewayAsPrependsOptions = new ListGatewayAsPrependsOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<AsPrependCollection> response = directLinkService.listGatewayAsPrepends(listGatewayAsPrependsOptions).execute(); AsPrependCollection asPrependCollection = response.getResult(); System.out.println(asPrependCollection);
- listGatewayAsPrependsOptions := directLinkService.NewListGatewayAsPrependsOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) asPrependCollection, response, err := directLinkService.ListGatewayAsPrepends(listGatewayAsPrependsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(asPrependCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_gateway_as_prepends( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) as_prepend_collection = response.get_result() print(json.dumps(as_prepend_collection, indent=2))
Response
array of AS Prepends
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 
array of AS Prepends.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
array of AS Prepends.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
array of AS Prepends.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
array of AS Prepends.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
Status Code
- AS Prepends retrieved successfully. 
- The specified Direct Link gateway could not be found. 
- { "as_prepends": [ { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "length": 3, "policy": "import", "specific_prefixes": [ "172.17.0.0/16", "172.24.10.0/24" ], "updated_at": "2020-11-02T23:05:52.724Z" } ] }
- { "as_prepends": [ { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "length": 3, "policy": "import", "specific_prefixes": [ "172.17.0.0/16", "172.24.10.0/24" ], "updated_at": "2020-11-02T23:05:52.724Z" } ] }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Replace existing AS Prepends
Replace the given set of AS prepends on the specified gateway. Existing resources may be reused when the individual AS Prepend item is unchanged.
Replace the given set of AS prepends on the specified gateway. Existing resources may be reused when the individual AS Prepend item is unchanged.
Replace the given set of AS prepends on the specified gateway. Existing resources may be reused when the individual AS Prepend item is unchanged.
Replace the given set of AS prepends on the specified gateway. Existing resources may be reused when the individual AS Prepend item is unchanged.
Replace the given set of AS prepends on the specified gateway. Existing resources may be reused when the individual AS Prepend item is unchanged.
PUT /gateways/{gateway_id}/as_prependsServiceCall<AsPrependCollection> replaceGatewayAsPrepends(ReplaceGatewayAsPrependsOptions replaceGatewayAsPrependsOptions)replaceGatewayAsPrepends(params)
replace_gateway_as_prepends(
        self,
        gateway_id: str,
        if_match: str,
        *,
        as_prepends: Optional[List['AsPrependPrefixArrayTemplate']] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ReplaceGatewayAsPrepends(replaceGatewayAsPrependsOptions *ReplaceGatewayAsPrependsOptions) (result *AsPrependCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ReplaceGatewayAsPrependsWithContext(ctx context.Context, replaceGatewayAsPrependsOptions *ReplaceGatewayAsPrependsOptions) (result *AsPrependCollection, response *core.DetailedResponse, err error)
Request
Use the ReplaceGatewayAsPrependsOptions.Builder to create a ReplaceGatewayAsPrependsOptions object that contains the parameter values for the replaceGatewayAsPrepends method.
Instantiate the ReplaceGatewayAsPrependsOptions struct and set the fields to provide parameter values for the ReplaceGatewayAsPrepends method.
Custom Headers
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - (?:W\/)?"(?:[ !#-\x7E\x80-\xFF]*|\r\n[\t ]|\\.)*"- Example: - W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The AS Prepend replace template
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 
The replaceGatewayAsPrepends options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:- W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ReplaceGatewayAsPrepends options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:- W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
- array of AS Prepend configuration information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- Number of times the ASN to be prepended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Allowable values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. If this property is absent, the AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
 
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', ifMatch: 'W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"', }; let res; try { res = await directLinkService.replaceGatewayAsPrepends(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ReplaceGatewayAsPrependsOptions replaceGatewayAsPrependsOptions = new ReplaceGatewayAsPrependsOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .ifMatch("W/\"96d225c4-56bd-43d9-98fc-d7148e5c5028\"") .build(); Response<AsPrependCollection> response = directLinkService.replaceGatewayAsPrepends(replaceGatewayAsPrependsOptions).execute(); AsPrependCollection asPrependCollection = response.getResult(); System.out.println(asPrependCollection);
- replaceGatewayAsPrependsOptions := directLinkService.NewReplaceGatewayAsPrependsOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "W/\"96d225c4-56bd-43d9-98fc-d7148e5c5028\"", ) asPrependCollection, response, err := directLinkService.ReplaceGatewayAsPrepends(replaceGatewayAsPrependsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(asPrependCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.replace_gateway_as_prepends( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', if_match='W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"', ) as_prepend_collection = response.get_result() print(json.dumps(as_prepend_collection, indent=2))
Response
array of AS Prepends
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 
array of AS Prepends.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - asPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
array of AS Prepends.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
array of AS Prepends.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - as_prepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
array of AS Prepends.
- array of AS Prepend information. - Possible values: 0 ≤ number of items ≤ 50 - AsPrepends
- The date and time resource was created. 
- The unique identifier for this AS Prepend. - Possible values: Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- Number of times the ASN to appended to the AS Path. - Possible values: 3 ≤ value ≤ 10 Examples:- 4
- Route type this AS Prepend applies to. - Possible values: [ - import,- export]Examples:- import 
- Array of prefixes this AS Prepend applies to. This parameter is not returned when AS Prepend applies to all prefixes. Note that ordering is not significant and may differ from request order. - Possible values: 1 ≤ number of items ≤ 10, 9 ≤ length ≤ 18, Value must match regular expression - /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(3[0-2]|[1-2][0-9]|[0-9]))$/
- The date and time resource was last updated. 
 
Status Code
- AS Prepends replaced successfully. 
- The information given was invalid, malformed, or missing a required field. 
- The specified Direct Link gateway could not be found. 
- The provided - If-Matchvalue does not match the current ETag value of the AS Prepends
- { "as_prepends": [ { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "length": 3, "policy": "import", "specific_prefixes": [ "172.17.0.0/16", "172.24.10.0/24" ], "updated_at": "2020-11-02T23:05:52.724Z" } ] }
- { "as_prepends": [ { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "length": 3, "policy": "import", "specific_prefixes": [ "172.17.0.0/16", "172.24.10.0/24" ], "updated_at": "2020-11-02T23:05:52.724Z" } ] }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List export route filters
List all export route filters that influence the export routes advertised to the on premises network and learned from attached virtual connections of the Direct Link gateway.
The first export route filter an export route matches will determine whether the route is permitted or denied to be advertised by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an export route does not match any of the export route filters, the route is subject to the default_export_route_filter of the direct link.
List all export route filters that influence the export routes advertised to the on premises network and learned from attached virtual connections of the Direct Link gateway.
The first export route filter an export route matches will determine whether the route is permitted or denied to be advertised by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an export route does not match any of the export route filters, the route is subject to the default_export_route_filter of the direct link.
List all export route filters that influence the export routes advertised to the on premises network and learned from attached virtual connections of the Direct Link gateway.
The first export route filter an export route matches will determine whether the route is permitted or denied to be advertised by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an export route does not match any of the export route filters, the route is subject to the default_export_route_filter of the direct link.
List all export route filters that influence the export routes advertised to the on premises network and learned from attached virtual connections of the Direct Link gateway.
The first export route filter an export route matches will determine whether the route is permitted or denied to be advertised by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an export route does not match any of the export route filters, the route is subject to the default_export_route_filter of the direct link.
List all export route filters that influence the export routes advertised to the on premises network and learned from attached virtual connections of the Direct Link gateway.
The first export route filter an export route matches will determine whether the route is permitted or denied to be advertised by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an export route does not match any of the export route filters, the route is subject to the default_export_route_filter of the direct link.
GET /gateways/{gateway_id}/export_route_filtersServiceCall<ExportRouteFilterCollection> listGatewayExportRouteFilters(ListGatewayExportRouteFiltersOptions listGatewayExportRouteFiltersOptions)listGatewayExportRouteFilters(params)
list_gateway_export_route_filters(
        self,
        gateway_id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGatewayExportRouteFilters(listGatewayExportRouteFiltersOptions *ListGatewayExportRouteFiltersOptions) (result *ExportRouteFilterCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewayExportRouteFiltersWithContext(ctx context.Context, listGatewayExportRouteFiltersOptions *ListGatewayExportRouteFiltersOptions) (result *ExportRouteFilterCollection, response *core.DetailedResponse, err error)
Request
Use the ListGatewayExportRouteFiltersOptions.Builder to create a ListGatewayExportRouteFiltersOptions object that contains the parameter values for the listGatewayExportRouteFilters method.
Instantiate the ListGatewayExportRouteFiltersOptions struct and set the fields to provide parameter values for the ListGatewayExportRouteFilters method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listGatewayExportRouteFilters options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListGatewayExportRouteFilters options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.listGatewayExportRouteFilters(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListGatewayExportRouteFiltersOptions listGatewayExportRouteFiltersOptions = new ListGatewayExportRouteFiltersOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<ExportRouteFilterCollection> response = directLinkService.listGatewayExportRouteFilters(listGatewayExportRouteFiltersOptions).execute(); ExportRouteFilterCollection exportRouteFilterCollection = response.getResult(); System.out.println(exportRouteFilterCollection);
- listGatewayExportRouteFiltersOptions := directLinkService.NewListGatewayExportRouteFiltersOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) exportRouteFilterCollection, response, err := directLinkService.ListGatewayExportRouteFilters(listGatewayExportRouteFiltersOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(exportRouteFilterCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_gateway_export_route_filters( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) export_route_filter_collection = response.get_result() print(json.dumps(export_route_filter_collection, indent=2))
Response
Collection of export route filters
- Array of export route filters - Possible values: 0 ≤ number of items ≤ 100 
Collection of export route filters.
- Array of export route filters. - Possible values: 0 ≤ number of items ≤ 100 - exportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of export route filters.
- Array of export route filters. - Possible values: 0 ≤ number of items ≤ 100 - export_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of export route filters.
- Array of export route filters. - Possible values: 0 ≤ number of items ≤ 100 - export_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of export route filters.
- Array of export route filters. - Possible values: 0 ≤ number of items ≤ 100 - ExportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Status Code
- Export route filters retrieved successfully. 
- The specified Direct Link gateway could not be found. 
- { "export_route_filters": [ { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" } ] }
- { "export_route_filters": [ { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" } ] }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Create an export route filter
Create a new export route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
Create a new export route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
Create a new export route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
Create a new export route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
Create a new export route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
POST /gateways/{gateway_id}/export_route_filtersServiceCall<RouteFilter> createGatewayExportRouteFilter(CreateGatewayExportRouteFilterOptions createGatewayExportRouteFilterOptions)createGatewayExportRouteFilter(params)
create_gateway_export_route_filter(
        self,
        gateway_id: str,
        action: str,
        prefix: str,
        *,
        before: Optional[str] = None,
        ge: Optional[int] = None,
        le: Optional[int] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) CreateGatewayExportRouteFilter(createGatewayExportRouteFilterOptions *CreateGatewayExportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) CreateGatewayExportRouteFilterWithContext(ctx context.Context, createGatewayExportRouteFilterOptions *CreateGatewayExportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
Request
Use the CreateGatewayExportRouteFilterOptions.Builder to create a CreateGatewayExportRouteFilterOptions object that contains the parameter values for the createGatewayExportRouteFilter method.
Instantiate the CreateGatewayExportRouteFilterOptions struct and set the fields to provide parameter values for the CreateGatewayExportRouteFilter method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The export route filter create template
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Allowable values: [ - permit,- deny]- Example: - permit
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 30
The createGatewayExportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The CreateGatewayExportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', action: 'permit', prefix: '192.168.100.0/24', }; let res; try { res = await directLinkService.createGatewayExportRouteFilter(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- CreateGatewayExportRouteFilterOptions createGatewayExportRouteFilterOptions = new CreateGatewayExportRouteFilterOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .action("permit") .prefix("192.168.100.0/24") .build(); Response<RouteFilter> response = directLinkService.createGatewayExportRouteFilter(createGatewayExportRouteFilterOptions).execute(); RouteFilter routeFilter = response.getResult(); System.out.println(routeFilter);
- createGatewayExportRouteFilterOptions := directLinkService.NewCreateGatewayExportRouteFilterOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "permit", "192.168.100.0/24", ) routeFilter, response, err := directLinkService.CreateGatewayExportRouteFilter(createGatewayExportRouteFilterOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeFilter, "", " ") fmt.Println(string(b))
- response = direct_link_service.create_gateway_export_route_filter( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', action='permit', prefix='192.168.100.0/24', ) route_filter = response.get_result() print(json.dumps(route_filter, indent=2))
Response
Route filter
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Possible values: [ - permit,- deny]- Example: - permit
- The date and time the route filter was created in ISO 8601 format - Example: - 2020-11-02T20:40:29.622Z
- The identifier of a route filter - Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
- The date and time the route filter was last updated - Example: - 2020-11-02T20:40:29.622Z
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 30
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- Direct Link gateway export route filter was created successfully. 
- The information given was invalid, malformed, or missing a required field. 
- The specified Direct Link gateway could not be found. 
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Replace existing export route filters
Replace all existing export route filters configured on the Direct Link gateway
Replace all existing export route filters configured on the Direct Link gateway.
Replace all existing export route filters configured on the Direct Link gateway.
Replace all existing export route filters configured on the Direct Link gateway.
Replace all existing export route filters configured on the Direct Link gateway.
PUT /gateways/{gateway_id}/export_route_filtersServiceCall<ExportRouteFilterCollection> replaceGatewayExportRouteFilters(ReplaceGatewayExportRouteFiltersOptions replaceGatewayExportRouteFiltersOptions)replaceGatewayExportRouteFilters(params)
replace_gateway_export_route_filters(
        self,
        gateway_id: str,
        if_match: str,
        *,
        export_route_filters: Optional[List['GatewayTemplateRouteFilter']] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ReplaceGatewayExportRouteFilters(replaceGatewayExportRouteFiltersOptions *ReplaceGatewayExportRouteFiltersOptions) (result *ExportRouteFilterCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ReplaceGatewayExportRouteFiltersWithContext(ctx context.Context, replaceGatewayExportRouteFiltersOptions *ReplaceGatewayExportRouteFiltersOptions) (result *ExportRouteFilterCollection, response *core.DetailedResponse, err error)
Request
Use the ReplaceGatewayExportRouteFiltersOptions.Builder to create a ReplaceGatewayExportRouteFiltersOptions object that contains the parameter values for the replaceGatewayExportRouteFilters method.
Instantiate the ReplaceGatewayExportRouteFiltersOptions struct and set the fields to provide parameter values for the ReplaceGatewayExportRouteFilters method.
Custom Headers
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - (?:W\/)?"(?:[ !#-\x7E\x80-\xFF]*|\r\n[\t ]|\\.)*"- Example: - W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
Template for replacing existing export route filters
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 
The replaceGatewayExportRouteFilters options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:- W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - exportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - exportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - export_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ReplaceGatewayExportRouteFilters options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:- W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - ExportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', ifMatch: 'W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"', }; let res; try { res = await directLinkService.replaceGatewayExportRouteFilters(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ReplaceGatewayExportRouteFiltersOptions replaceGatewayExportRouteFiltersOptions = new ReplaceGatewayExportRouteFiltersOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .ifMatch("W/\"96d225c4-56bd-43d9-98fc-d7148e5c5028\"") .build(); Response<ExportRouteFilterCollection> response = directLinkService.replaceGatewayExportRouteFilters(replaceGatewayExportRouteFiltersOptions).execute(); ExportRouteFilterCollection exportRouteFilterCollection = response.getResult(); System.out.println(exportRouteFilterCollection);
- replaceGatewayExportRouteFiltersOptions := directLinkService.NewReplaceGatewayExportRouteFiltersOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "W/\"96d225c4-56bd-43d9-98fc-d7148e5c5028\"", ) exportRouteFilterCollection, response, err := directLinkService.ReplaceGatewayExportRouteFilters(replaceGatewayExportRouteFiltersOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(exportRouteFilterCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.replace_gateway_export_route_filters( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', if_match='W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"', ) export_route_filter_collection = response.get_result() print(json.dumps(export_route_filter_collection, indent=2))
Response
Collection of export route filters
- Array of export route filters - Possible values: 0 ≤ number of items ≤ 100 
Collection of export route filters.
- Array of export route filters. - Possible values: 0 ≤ number of items ≤ 100 - exportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of export route filters.
- Array of export route filters. - Possible values: 0 ≤ number of items ≤ 100 - export_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of export route filters.
- Array of export route filters. - Possible values: 0 ≤ number of items ≤ 100 - export_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of export route filters.
- Array of export route filters. - Possible values: 0 ≤ number of items ≤ 100 - ExportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Status Code
- Export route filters replaced successfully. 
- The information given was invalid, malformed, or missing a required field. 
- The specified Direct Link gateway could not be found. 
- The provided - If-Matchvalue does not match the current ETag value of the export route filters
- { "export_route_filters": [ { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" } ] }
- { "export_route_filters": [ { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" } ] }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Remove export route filter from Direct Link gateway
Delete an export route filter.
Deleting an export route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
Delete an export route filter.
Deleting an export route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
Delete an export route filter.
Deleting an export route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
Delete an export route filter.
Deleting an export route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
Delete an export route filter.
Deleting an export route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
DELETE /gateways/{gateway_id}/export_route_filters/{id}ServiceCall<Void> deleteGatewayExportRouteFilter(DeleteGatewayExportRouteFilterOptions deleteGatewayExportRouteFilterOptions)deleteGatewayExportRouteFilter(params)
delete_gateway_export_route_filter(
        self,
        gateway_id: str,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) DeleteGatewayExportRouteFilter(deleteGatewayExportRouteFilterOptions *DeleteGatewayExportRouteFilterOptions) (response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) DeleteGatewayExportRouteFilterWithContext(ctx context.Context, deleteGatewayExportRouteFilterOptions *DeleteGatewayExportRouteFilterOptions) (response *core.DetailedResponse, err error)
Request
Use the DeleteGatewayExportRouteFilterOptions.Builder to create a DeleteGatewayExportRouteFilterOptions object that contains the parameter values for the deleteGatewayExportRouteFilter method.
Instantiate the DeleteGatewayExportRouteFilterOptions struct and set the fields to provide parameter values for the DeleteGatewayExportRouteFilter method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The deleteGatewayExportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The DeleteGatewayExportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; try { await directLinkService.deleteGatewayExportRouteFilter(params); } catch (err) { console.warn(err); }
- DeleteGatewayExportRouteFilterOptions deleteGatewayExportRouteFilterOptions = new DeleteGatewayExportRouteFilterOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Void> response = directLinkService.deleteGatewayExportRouteFilter(deleteGatewayExportRouteFilterOptions).execute();
- deleteGatewayExportRouteFilterOptions := directLinkService.NewDeleteGatewayExportRouteFilterOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) response, err := directLinkService.DeleteGatewayExportRouteFilter(deleteGatewayExportRouteFilterOptions) if err != nil { panic(err) } if response.StatusCode != 204 { fmt.Printf("\nUnexpected response status code received from DeleteGatewayExportRouteFilter(): %d\n", response.StatusCode) }
- response = direct_link_service.delete_gateway_export_route_filter( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', )
Response
Status Code
- The export route filter was deleted successfully. 
- An export route filter with the specified identifier could not be found. 
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Retrieves the specified Direct Link gateway export route filter
Retrieve an export route filter from the Direct Link gateway.
Retrieve an export route filter from the Direct Link gateway.
Retrieve an export route filter from the Direct Link gateway.
Retrieve an export route filter from the Direct Link gateway.
Retrieve an export route filter from the Direct Link gateway.
GET /gateways/{gateway_id}/export_route_filters/{id}ServiceCall<RouteFilter> getGatewayExportRouteFilter(GetGatewayExportRouteFilterOptions getGatewayExportRouteFilterOptions)getGatewayExportRouteFilter(params)
get_gateway_export_route_filter(
        self,
        gateway_id: str,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGatewayExportRouteFilter(getGatewayExportRouteFilterOptions *GetGatewayExportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayExportRouteFilterWithContext(ctx context.Context, getGatewayExportRouteFilterOptions *GetGatewayExportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
Request
Use the GetGatewayExportRouteFilterOptions.Builder to create a GetGatewayExportRouteFilterOptions object that contains the parameter values for the getGatewayExportRouteFilter method.
Instantiate the GetGatewayExportRouteFilterOptions struct and set the fields to provide parameter values for the GetGatewayExportRouteFilter method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getGatewayExportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGatewayExportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.getGatewayExportRouteFilter(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayExportRouteFilterOptions getGatewayExportRouteFilterOptions = new GetGatewayExportRouteFilterOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<RouteFilter> response = directLinkService.getGatewayExportRouteFilter(getGatewayExportRouteFilterOptions).execute(); RouteFilter routeFilter = response.getResult(); System.out.println(routeFilter);
- getGatewayExportRouteFilterOptions := directLinkService.NewGetGatewayExportRouteFilterOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) routeFilter, response, err := directLinkService.GetGatewayExportRouteFilter(getGatewayExportRouteFilterOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeFilter, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway_export_route_filter( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) route_filter = response.get_result() print(json.dumps(route_filter, indent=2))
Response
Route filter
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Possible values: [ - permit,- deny]- Example: - permit
- The date and time the route filter was created in ISO 8601 format - Example: - 2020-11-02T20:40:29.622Z
- The identifier of a route filter - Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
- The date and time the route filter was last updated - Example: - 2020-11-02T20:40:29.622Z
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 30
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- The export route filter was retrieved successfully. 
- An export route filter with the specified identifier could not be found. 
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Updates the specified Direct Link gateway export route filter
Update an export route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
Update an export route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
Update an export route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
Update an export route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
Update an export route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
PATCH /gateways/{gateway_id}/export_route_filters/{id}ServiceCall<RouteFilter> updateGatewayExportRouteFilter(UpdateGatewayExportRouteFilterOptions updateGatewayExportRouteFilterOptions)updateGatewayExportRouteFilter(params)
update_gateway_export_route_filter(
        self,
        gateway_id: str,
        id: str,
        update_route_filter_template: 'UpdateRouteFilterTemplate',
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) UpdateGatewayExportRouteFilter(updateGatewayExportRouteFilterOptions *UpdateGatewayExportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) UpdateGatewayExportRouteFilterWithContext(ctx context.Context, updateGatewayExportRouteFilterOptions *UpdateGatewayExportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
Request
Use the UpdateGatewayExportRouteFilterOptions.Builder to create a UpdateGatewayExportRouteFilterOptions object that contains the parameter values for the updateGatewayExportRouteFilter method.
Instantiate the UpdateGatewayExportRouteFilterOptions struct and set the fields to provide parameter values for the UpdateGatewayExportRouteFilter method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The export route filter update template
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Allowable values: [ - permit,- deny]- Example: - permit
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - To clear the minimum matching length of the filter, patch the value to - 0- Possible values: 0 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - To clear the maximum matching length of the filter, patch the value to - 0- Possible values: 0 ≤ value ≤ 32 - Example: - 30
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
The updateGatewayExportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The export route filter update template. 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - To clear the minimum matching length of the filter, patch the value to - 0.- Possible values: 0 ≤ value ≤ 32 Examples:
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - To clear the maximum matching length of the filter, patch the value to - 0.- Possible values: 0 ≤ value ≤ 32 Examples:
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The route filter update template. - update_route_filter_template
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - To clear the minimum matching length of the filter, patch the value to - 0.- Possible values: 0 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - To clear the maximum matching length of the filter, patch the value to - 0.- Possible values: 0 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The UpdateGatewayExportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The export route filter update template. 
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.updateGatewayExportRouteFilter(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- UpdateRouteFilterTemplate updateRouteFilterTemplateModel = new UpdateRouteFilterTemplate.Builder() .build(); Map<String, Object> updateRouteFilterTemplateModelAsPatch = updateRouteFilterTemplateModel.asPatch(); UpdateGatewayExportRouteFilterOptions updateGatewayExportRouteFilterOptions = new UpdateGatewayExportRouteFilterOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .updateRouteFilterTemplatePatch(updateRouteFilterTemplateModelAsPatch) .build(); Response<RouteFilter> response = directLinkService.updateGatewayExportRouteFilter(updateGatewayExportRouteFilterOptions).execute(); RouteFilter routeFilter = response.getResult(); System.out.println(routeFilter);
- updateRouteFilterTemplateModel := &directlinkv1.UpdateRouteFilterTemplate{ } updateRouteFilterTemplateModelAsPatch, asPatchErr := updateRouteFilterTemplateModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateGatewayExportRouteFilterOptions := directLinkService.NewUpdateGatewayExportRouteFilterOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", updateRouteFilterTemplateModelAsPatch, ) routeFilter, response, err := directLinkService.UpdateGatewayExportRouteFilter(updateGatewayExportRouteFilterOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeFilter, "", " ") fmt.Println(string(b))
- update_route_filter_template_model = { } response = direct_link_service.update_gateway_export_route_filter( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', update_route_filter_template=update_route_filter_template_model, ) route_filter = response.get_result() print(json.dumps(route_filter, indent=2))
Response
Route filter
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Possible values: [ - permit,- deny]- Example: - permit
- The date and time the route filter was created in ISO 8601 format - Example: - 2020-11-02T20:40:29.622Z
- The identifier of a route filter - Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
- The date and time the route filter was last updated - Example: - 2020-11-02T20:40:29.622Z
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 30
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- The export route filter was updated successfully. 
- The information given was invalid, malformed, or missing a required field. 
- An export route filter with the specified identifier could not be found. 
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List import route filters
List all import route filters that influence the import routes learned from the on premises network.
The first import route filter an import route matches will determine whether the route is permitted or denied to be learned by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an import route does not match any of the import route filters, the route is subject to the default_import_route_filter of the direct link.
List all import route filters that influence the import routes learned from the on premises network.
The first import route filter an import route matches will determine whether the route is permitted or denied to be learned by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an import route does not match any of the import route filters, the route is subject to the default_import_route_filter of the direct link.
List all import route filters that influence the import routes learned from the on premises network.
The first import route filter an import route matches will determine whether the route is permitted or denied to be learned by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an import route does not match any of the import route filters, the route is subject to the default_import_route_filter of the direct link.
List all import route filters that influence the import routes learned from the on premises network.
The first import route filter an import route matches will determine whether the route is permitted or denied to be learned by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an import route does not match any of the import route filters, the route is subject to the default_import_route_filter of the direct link.
List all import route filters that influence the import routes learned from the on premises network.
The first import route filter an import route matches will determine whether the route is permitted or denied to be learned by the Direct Link gateway. Route filter order is determined by the filter's before field.
If an import route does not match any of the import route filters, the route is subject to the default_import_route_filter of the direct link.
GET /gateways/{gateway_id}/import_route_filtersServiceCall<ImportRouteFilterCollection> listGatewayImportRouteFilters(ListGatewayImportRouteFiltersOptions listGatewayImportRouteFiltersOptions)listGatewayImportRouteFilters(params)
list_gateway_import_route_filters(
        self,
        gateway_id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGatewayImportRouteFilters(listGatewayImportRouteFiltersOptions *ListGatewayImportRouteFiltersOptions) (result *ImportRouteFilterCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewayImportRouteFiltersWithContext(ctx context.Context, listGatewayImportRouteFiltersOptions *ListGatewayImportRouteFiltersOptions) (result *ImportRouteFilterCollection, response *core.DetailedResponse, err error)
Request
Use the ListGatewayImportRouteFiltersOptions.Builder to create a ListGatewayImportRouteFiltersOptions object that contains the parameter values for the listGatewayImportRouteFilters method.
Instantiate the ListGatewayImportRouteFiltersOptions struct and set the fields to provide parameter values for the ListGatewayImportRouteFilters method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listGatewayImportRouteFilters options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListGatewayImportRouteFilters options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.listGatewayImportRouteFilters(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListGatewayImportRouteFiltersOptions listGatewayImportRouteFiltersOptions = new ListGatewayImportRouteFiltersOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<ImportRouteFilterCollection> response = directLinkService.listGatewayImportRouteFilters(listGatewayImportRouteFiltersOptions).execute(); ImportRouteFilterCollection importRouteFilterCollection = response.getResult(); System.out.println(importRouteFilterCollection);
- listGatewayImportRouteFiltersOptions := directLinkService.NewListGatewayImportRouteFiltersOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) importRouteFilterCollection, response, err := directLinkService.ListGatewayImportRouteFilters(listGatewayImportRouteFiltersOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(importRouteFilterCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_gateway_import_route_filters( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) import_route_filter_collection = response.get_result() print(json.dumps(import_route_filter_collection, indent=2))
Response
Collection of import route filters
- Array of import route filters - Possible values: 0 ≤ number of items ≤ 100 
Collection of import route filters.
- Array of import route filters. - Possible values: 0 ≤ number of items ≤ 100 - importRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of import route filters.
- Array of import route filters. - Possible values: 0 ≤ number of items ≤ 100 - import_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of import route filters.
- Array of import route filters. - Possible values: 0 ≤ number of items ≤ 100 - import_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of import route filters.
- Array of import route filters. - Possible values: 0 ≤ number of items ≤ 100 - ImportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Status Code
- Import route filters retrieved successfully. 
- The specified Direct Link gateway could not be found. 
- { "import_route_filters": [ { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" } ] }
- { "import_route_filters": [ { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" } ] }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Create an import route filter
Create a new import route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
Create a new import route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
Create a new import route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
Create a new import route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
Create a new import route filter to be configured on the Direct Link gateway.
This call can result in an implicit update to another route filter's before field.
If the request's route filter template does not contain a before field, the created filter will be added to the end of of the list. The filter previously at the end of the list will have it's before field set to the created route filter.
If the request's route filter template contains a before field, the created filter will be added directly before that specified route filter. If the specified route filter has a preceding route filter, that filter's before field is updated to the created route filter.
POST /gateways/{gateway_id}/import_route_filtersServiceCall<RouteFilter> createGatewayImportRouteFilter(CreateGatewayImportRouteFilterOptions createGatewayImportRouteFilterOptions)createGatewayImportRouteFilter(params)
create_gateway_import_route_filter(
        self,
        gateway_id: str,
        action: str,
        prefix: str,
        *,
        before: Optional[str] = None,
        ge: Optional[int] = None,
        le: Optional[int] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) CreateGatewayImportRouteFilter(createGatewayImportRouteFilterOptions *CreateGatewayImportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) CreateGatewayImportRouteFilterWithContext(ctx context.Context, createGatewayImportRouteFilterOptions *CreateGatewayImportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
Request
Use the CreateGatewayImportRouteFilterOptions.Builder to create a CreateGatewayImportRouteFilterOptions object that contains the parameter values for the createGatewayImportRouteFilter method.
Instantiate the CreateGatewayImportRouteFilterOptions struct and set the fields to provide parameter values for the CreateGatewayImportRouteFilter method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The import route filter create template
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Allowable values: [ - permit,- deny]- Example: - permit
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 30
The createGatewayImportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The CreateGatewayImportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', action: 'permit', prefix: '192.168.100.0/24', }; let res; try { res = await directLinkService.createGatewayImportRouteFilter(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- CreateGatewayImportRouteFilterOptions createGatewayImportRouteFilterOptions = new CreateGatewayImportRouteFilterOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .action("permit") .prefix("192.168.100.0/24") .build(); Response<RouteFilter> response = directLinkService.createGatewayImportRouteFilter(createGatewayImportRouteFilterOptions).execute(); RouteFilter routeFilter = response.getResult(); System.out.println(routeFilter);
- createGatewayImportRouteFilterOptions := directLinkService.NewCreateGatewayImportRouteFilterOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "permit", "192.168.100.0/24", ) routeFilter, response, err := directLinkService.CreateGatewayImportRouteFilter(createGatewayImportRouteFilterOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeFilter, "", " ") fmt.Println(string(b))
- response = direct_link_service.create_gateway_import_route_filter( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', action='permit', prefix='192.168.100.0/24', ) route_filter = response.get_result() print(json.dumps(route_filter, indent=2))
Response
Route filter
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Possible values: [ - permit,- deny]- Example: - permit
- The date and time the route filter was created in ISO 8601 format - Example: - 2020-11-02T20:40:29.622Z
- The identifier of a route filter - Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
- The date and time the route filter was last updated - Example: - 2020-11-02T20:40:29.622Z
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 30
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- Direct Link gateway import route filter was created successfully. 
- The information given was invalid, malformed, or missing a required field. 
- The specified Direct Link gateway could not be found. 
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Replace existing import route filters
Replace all existing import route filters configured on the Direct Link gateway
Replace all existing import route filters configured on the Direct Link gateway.
Replace all existing import route filters configured on the Direct Link gateway.
Replace all existing import route filters configured on the Direct Link gateway.
Replace all existing import route filters configured on the Direct Link gateway.
PUT /gateways/{gateway_id}/import_route_filtersServiceCall<ImportRouteFilterCollection> replaceGatewayImportRouteFilters(ReplaceGatewayImportRouteFiltersOptions replaceGatewayImportRouteFiltersOptions)replaceGatewayImportRouteFilters(params)
replace_gateway_import_route_filters(
        self,
        gateway_id: str,
        if_match: str,
        *,
        import_route_filters: Optional[List['GatewayTemplateRouteFilter']] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ReplaceGatewayImportRouteFilters(replaceGatewayImportRouteFiltersOptions *ReplaceGatewayImportRouteFiltersOptions) (result *ImportRouteFilterCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ReplaceGatewayImportRouteFiltersWithContext(ctx context.Context, replaceGatewayImportRouteFiltersOptions *ReplaceGatewayImportRouteFiltersOptions) (result *ImportRouteFilterCollection, response *core.DetailedResponse, err error)
Request
Use the ReplaceGatewayImportRouteFiltersOptions.Builder to create a ReplaceGatewayImportRouteFiltersOptions object that contains the parameter values for the replaceGatewayImportRouteFilters method.
Instantiate the ReplaceGatewayImportRouteFiltersOptions struct and set the fields to provide parameter values for the ReplaceGatewayImportRouteFilters method.
Custom Headers
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - (?:W\/)?"(?:[ !#-\x7E\x80-\xFF]*|\r\n[\t ]|\\.)*"- Example: - W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
Template for replacing existing import route filters
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 
The replaceGatewayImportRouteFilters options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:- W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - importRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - importRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - import_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ReplaceGatewayImportRouteFilters options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:- W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
- Array of directional route filters for a Direct Link gateway. When creating a gateway or replacing existing route filters, the order of the items in the array will set the ordering of the list of route filters. - Possible values: 0 ≤ number of items ≤ 100 - ImportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', ifMatch: 'W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"', }; let res; try { res = await directLinkService.replaceGatewayImportRouteFilters(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ReplaceGatewayImportRouteFiltersOptions replaceGatewayImportRouteFiltersOptions = new ReplaceGatewayImportRouteFiltersOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .ifMatch("W/\"96d225c4-56bd-43d9-98fc-d7148e5c5028\"") .build(); Response<ImportRouteFilterCollection> response = directLinkService.replaceGatewayImportRouteFilters(replaceGatewayImportRouteFiltersOptions).execute(); ImportRouteFilterCollection importRouteFilterCollection = response.getResult(); System.out.println(importRouteFilterCollection);
- replaceGatewayImportRouteFiltersOptions := directLinkService.NewReplaceGatewayImportRouteFiltersOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "W/\"96d225c4-56bd-43d9-98fc-d7148e5c5028\"", ) importRouteFilterCollection, response, err := directLinkService.ReplaceGatewayImportRouteFilters(replaceGatewayImportRouteFiltersOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(importRouteFilterCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.replace_gateway_import_route_filters( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', if_match='W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"', ) import_route_filter_collection = response.get_result() print(json.dumps(import_route_filter_collection, indent=2))
Response
Collection of import route filters
- Array of import route filters - Possible values: 0 ≤ number of items ≤ 100 
Collection of import route filters.
- Array of import route filters. - Possible values: 0 ≤ number of items ≤ 100 - importRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of import route filters.
- Array of import route filters. - Possible values: 0 ≤ number of items ≤ 100 - import_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of import route filters.
- Array of import route filters. - Possible values: 0 ≤ number of items ≤ 100 - import_route_filters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Collection of import route filters.
- Array of import route filters. - Possible values: 0 ≤ number of items ≤ 100 - ImportRouteFilters
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Status Code
- Import route filters replaced successfully. 
- The information given was invalid, malformed, or missing a required field. 
- The specified Direct Link gateway could not be found. 
- The provided - If-Matchvalue does not match the current ETag value of the export route filters
- { "import_route_filters": [ { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" } ] }
- { "import_route_filters": [ { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" } ] }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Remove import route filter from Direct Link gateway
Delete an import route filter.
Deleting an import route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
Delete an import route filter.
Deleting an import route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
Delete an import route filter.
Deleting an import route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
Delete an import route filter.
Deleting an import route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
Delete an import route filter.
Deleting an import route filter will implicitly update the preceding filter's before field to the filter that follows the deleted filter. The preceding filter will result with an empty before field if there is no filter following the deleted route filter.
DELETE /gateways/{gateway_id}/import_route_filters/{id}ServiceCall<Void> deleteGatewayImportRouteFilter(DeleteGatewayImportRouteFilterOptions deleteGatewayImportRouteFilterOptions)deleteGatewayImportRouteFilter(params)
delete_gateway_import_route_filter(
        self,
        gateway_id: str,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) DeleteGatewayImportRouteFilter(deleteGatewayImportRouteFilterOptions *DeleteGatewayImportRouteFilterOptions) (response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) DeleteGatewayImportRouteFilterWithContext(ctx context.Context, deleteGatewayImportRouteFilterOptions *DeleteGatewayImportRouteFilterOptions) (response *core.DetailedResponse, err error)
Request
Use the DeleteGatewayImportRouteFilterOptions.Builder to create a DeleteGatewayImportRouteFilterOptions object that contains the parameter values for the deleteGatewayImportRouteFilter method.
Instantiate the DeleteGatewayImportRouteFilterOptions struct and set the fields to provide parameter values for the DeleteGatewayImportRouteFilter method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The deleteGatewayImportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The DeleteGatewayImportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; try { await directLinkService.deleteGatewayImportRouteFilter(params); } catch (err) { console.warn(err); }
- DeleteGatewayImportRouteFilterOptions deleteGatewayImportRouteFilterOptions = new DeleteGatewayImportRouteFilterOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Void> response = directLinkService.deleteGatewayImportRouteFilter(deleteGatewayImportRouteFilterOptions).execute();
- deleteGatewayImportRouteFilterOptions := directLinkService.NewDeleteGatewayImportRouteFilterOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) response, err := directLinkService.DeleteGatewayImportRouteFilter(deleteGatewayImportRouteFilterOptions) if err != nil { panic(err) } if response.StatusCode != 204 { fmt.Printf("\nUnexpected response status code received from DeleteGatewayImportRouteFilter(): %d\n", response.StatusCode) }
- response = direct_link_service.delete_gateway_import_route_filter( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', )
Response
Status Code
- The import route filter was deleted successfully. 
- An export route filter with the specified identifier could not be found. 
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Retrieves the specified Direct Link gateway import route filter
Retrieve an import route filter from the Direct Link gateway.
Retrieve an import route filter from the Direct Link gateway.
Retrieve an import route filter from the Direct Link gateway.
Retrieve an import route filter from the Direct Link gateway.
Retrieve an import route filter from the Direct Link gateway.
GET /gateways/{gateway_id}/import_route_filters/{id}ServiceCall<RouteFilter> getGatewayImportRouteFilter(GetGatewayImportRouteFilterOptions getGatewayImportRouteFilterOptions)getGatewayImportRouteFilter(params)
get_gateway_import_route_filter(
        self,
        gateway_id: str,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGatewayImportRouteFilter(getGatewayImportRouteFilterOptions *GetGatewayImportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayImportRouteFilterWithContext(ctx context.Context, getGatewayImportRouteFilterOptions *GetGatewayImportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
Request
Use the GetGatewayImportRouteFilterOptions.Builder to create a GetGatewayImportRouteFilterOptions object that contains the parameter values for the getGatewayImportRouteFilter method.
Instantiate the GetGatewayImportRouteFilterOptions struct and set the fields to provide parameter values for the GetGatewayImportRouteFilter method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getGatewayImportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGatewayImportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.getGatewayImportRouteFilter(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayImportRouteFilterOptions getGatewayImportRouteFilterOptions = new GetGatewayImportRouteFilterOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<RouteFilter> response = directLinkService.getGatewayImportRouteFilter(getGatewayImportRouteFilterOptions).execute(); RouteFilter routeFilter = response.getResult(); System.out.println(routeFilter);
- getGatewayImportRouteFilterOptions := directLinkService.NewGetGatewayImportRouteFilterOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) routeFilter, response, err := directLinkService.GetGatewayImportRouteFilter(getGatewayImportRouteFilterOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeFilter, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway_import_route_filter( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) route_filter = response.get_result() print(json.dumps(route_filter, indent=2))
Response
Route filter
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Possible values: [ - permit,- deny]- Example: - permit
- The date and time the route filter was created in ISO 8601 format - Example: - 2020-11-02T20:40:29.622Z
- The identifier of a route filter - Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
- The date and time the route filter was last updated - Example: - 2020-11-02T20:40:29.622Z
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 30
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- The import route filter was retrieved successfully. 
- An import route filter with the specified identifier could not be found. 
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "errors": [ { "code": "not_found", "message": "Cannot find import route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find import route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Updates the specified Direct Link gateway import route filter
Update an import route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
Update an import route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
Update an import route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
Update an import route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
Update an import route filter from the Direct Link gateway.
Updating a route filter's before field will result in implicit updates to other route filters' before fields.
Considering the updated filter prior to the update, the preceding route filter's before field will be set to the filter following the updating route filter, if present. Otherwise it is set to empty.
Considering the updated filter after the update, if the new filter following the updated filter has an existing filter preceding it, that preceding filter's before field will be set to the updated filter.
PATCH /gateways/{gateway_id}/import_route_filters/{id}ServiceCall<RouteFilter> updateGatewayImportRouteFilter(UpdateGatewayImportRouteFilterOptions updateGatewayImportRouteFilterOptions)updateGatewayImportRouteFilter(params)
update_gateway_import_route_filter(
        self,
        gateway_id: str,
        id: str,
        update_route_filter_template: 'UpdateRouteFilterTemplate',
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) UpdateGatewayImportRouteFilter(updateGatewayImportRouteFilterOptions *UpdateGatewayImportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) UpdateGatewayImportRouteFilterWithContext(ctx context.Context, updateGatewayImportRouteFilterOptions *UpdateGatewayImportRouteFilterOptions) (result *RouteFilter, response *core.DetailedResponse, err error)
Request
Use the UpdateGatewayImportRouteFilterOptions.Builder to create a UpdateGatewayImportRouteFilterOptions object that contains the parameter values for the updateGatewayImportRouteFilter method.
Instantiate the UpdateGatewayImportRouteFilterOptions struct and set the fields to provide parameter values for the UpdateGatewayImportRouteFilter method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The import route filter update template
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Allowable values: [ - permit,- deny]- Example: - permit
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - To clear the minimum matching length of the filter, patch the value to - 0- Possible values: 0 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - To clear the maximum matching length of the filter, patch the value to - 0- Possible values: 0 ≤ value ≤ 32 - Example: - 30
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
The updateGatewayImportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The import route filter update template. 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - To clear the minimum matching length of the filter, patch the value to - 0.- Possible values: 0 ≤ value ≤ 32 Examples:
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - To clear the maximum matching length of the filter, patch the value to - 0.- Possible values: 0 ≤ value ≤ 32 Examples:
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The route filter update template. - update_route_filter_template
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Allowable values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - To clear the minimum matching length of the filter, patch the value to - 0.- Possible values: 0 ≤ value ≤ 32 Examples:- 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - To clear the maximum matching length of the filter, patch the value to - 0.- Possible values: 0 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The UpdateGatewayImportRouteFilter options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Identifier of an import route filter. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The import route filter update template. 
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.updateGatewayImportRouteFilter(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- UpdateRouteFilterTemplate updateRouteFilterTemplateModel = new UpdateRouteFilterTemplate.Builder() .build(); Map<String, Object> updateRouteFilterTemplateModelAsPatch = updateRouteFilterTemplateModel.asPatch(); UpdateGatewayImportRouteFilterOptions updateGatewayImportRouteFilterOptions = new UpdateGatewayImportRouteFilterOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .updateRouteFilterTemplatePatch(updateRouteFilterTemplateModelAsPatch) .build(); Response<RouteFilter> response = directLinkService.updateGatewayImportRouteFilter(updateGatewayImportRouteFilterOptions).execute(); RouteFilter routeFilter = response.getResult(); System.out.println(routeFilter);
- updateRouteFilterTemplateModel := &directlinkv1.UpdateRouteFilterTemplate{ } updateRouteFilterTemplateModelAsPatch, asPatchErr := updateRouteFilterTemplateModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateGatewayImportRouteFilterOptions := directLinkService.NewUpdateGatewayImportRouteFilterOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", updateRouteFilterTemplateModelAsPatch, ) routeFilter, response, err := directLinkService.UpdateGatewayImportRouteFilter(updateGatewayImportRouteFilterOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeFilter, "", " ") fmt.Println(string(b))
- update_route_filter_template_model = { } response = direct_link_service.update_gateway_import_route_filter( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', update_route_filter_template=update_route_filter_template_model, ) route_filter = response.get_result() print(json.dumps(route_filter, indent=2))
Response
Route filter
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter - Possible values: [ - permit,- deny]- Example: - permit
- The date and time the route filter was created in ISO 8601 format - Example: - 2020-11-02T20:40:29.622Z
- The identifier of a route filter - Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- IP prefix representing an address and mask length of the prefix-set - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - ^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$- Example: - 192.168.100.0/24
- The date and time the route filter was last updated - Example: - 2020-11-02T20:40:29.622Z
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 25
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 - Example: - 30
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Route filter.
- Determines whether routes that match the prefix-set will be allowed (permit) or rejected (deny) through the filter. - Possible values: [ - permit,- deny]Examples:- permit 
- Identifier of the next route filter considered if a route does not match the current filter. This property builds the ordering among route filters and follows semantics: - When before is an identifier of a route filter that exists and is in the same collection, a route will first attempt to match on the current filter before preceding to the filter referenced in this property.
- When a filter is created with before that matches another filter in the same collection, the existing filter will take precedence. The before of the existing filter will be updated to refer to the newly created filter. The newly created filter will refer to the route filter identified by the provided before.
- When a filter is created without a before, it takes the lowest precedence. The existing filter of lowest precedence will be updated to refer to the newly created filter.
 - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The date and time the route filter was created in ISO 8601 format. Examples:- 2020-11-02T20:40:29.622Z
- The minimum matching length of the prefix-set (mnemonic for greater than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 25
- The identifier of a route filter. Examples:- 1a15dcab-7e40-45e1-b7c5-bc690eaa9782
- The maximum matching length of the prefix-set (mnemonic for less than or equal to). - Possible values: 1 ≤ value ≤ 32 Examples:- 30
- IP prefix representing an address and mask length of the prefix-set. - Possible values: 7 ≤ length ≤ 18, Value must match regular expression - /^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/Examples:- 192.168.100.0/24
- The date and time the route filter was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- The import route filter was updated successfully. 
- The information given was invalid, malformed, or missing a required field. 
- An export route filter with the specified identifier could not be found. 
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "action": "permit", "before": "1a15dcab-7e40-45e1-b7c5-bc690eaa9782", "created_at": "2021-11-15T12:08:05.000Z", "ge": 25, "id": "1a15dcab-7e30-45e1-b7c5-bc690eaa9865", "le": 32, "prefix": "192.168.100.0/24", "updated_at": "2021-11-15T12:08:05.000Z" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find export route filter", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Unset MACsec configuration
Removes the MACsec configuration from a direct link, disabling the features.
Removes the MACsec configuration from a direct link, disabling the features.
Removes the MACsec configuration from a direct link, disabling the features.
Removes the MACsec configuration from a direct link, disabling the features.
Removes the MACsec configuration from a direct link, disabling the features.
DELETE /gateways/{id}/macsecServiceCall<Void> unsetGatewayMacsec(UnsetGatewayMacsecOptions unsetGatewayMacsecOptions)unsetGatewayMacsec(params)
unset_gateway_macsec(
        self,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) UnsetGatewayMacsec(unsetGatewayMacsecOptions *UnsetGatewayMacsecOptions) (response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) UnsetGatewayMacsecWithContext(ctx context.Context, unsetGatewayMacsecOptions *UnsetGatewayMacsecOptions) (response *core.DetailedResponse, err error)
Request
Use the UnsetGatewayMacsecOptions.Builder to create a UnsetGatewayMacsecOptions object that contains the parameter values for the unsetGatewayMacsec method.
Instantiate the UnsetGatewayMacsecOptions struct and set the fields to provide parameter values for the UnsetGatewayMacsec method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The unsetGatewayMacsec options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The UnsetGatewayMacsec options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; try { await directLinkService.unsetGatewayMacsec(params); } catch (err) { console.warn(err); }
- UnsetGatewayMacsecOptions unsetGatewayMacsecOptions = new UnsetGatewayMacsecOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Void> response = directLinkService.unsetGatewayMacsec(unsetGatewayMacsecOptions).execute();
- unsetGatewayMacsecOptions := directLinkService.NewUnsetGatewayMacsecOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) response, err := directLinkService.UnsetGatewayMacsec(unsetGatewayMacsecOptions) if err != nil { panic(err) } if response.StatusCode != 204 { fmt.Printf("\nUnexpected response status code received from UnsetGatewayMacsec(): %d\n", response.StatusCode) }
- response = direct_link_service.unset_gateway_macsec( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', )
Response
Status Code
- The MACsec configuration was unset successfully. 
- The direct link's - macsec_capabilitydoes not allow deletion of MACsec.
- No MACsec configuration set for the direct link. 
- { "errors": [ { "code": "invalid_request", "message": "Invalid Request", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "invalid_request", "message": "Invalid Request", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec configuration", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec configuration", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Get MACsec configuration
Retrieve the MACsec configuration of a direct link.
Retrieve the MACsec configuration of a direct link.
Retrieve the MACsec configuration of a direct link.
Retrieve the MACsec configuration of a direct link.
Retrieve the MACsec configuration of a direct link.
GET /gateways/{id}/macsecServiceCall<GatewayMacsec> getGatewayMacsec(GetGatewayMacsecOptions getGatewayMacsecOptions)getGatewayMacsec(params)
get_gateway_macsec(
        self,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGatewayMacsec(getGatewayMacsecOptions *GetGatewayMacsecOptions) (result *GatewayMacsec, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayMacsecWithContext(ctx context.Context, getGatewayMacsecOptions *GetGatewayMacsecOptions) (result *GatewayMacsec, response *core.DetailedResponse, err error)
Request
Use the GetGatewayMacsecOptions.Builder to create a GetGatewayMacsecOptions object that contains the parameter values for the getGatewayMacsec method.
Instantiate the GetGatewayMacsecOptions struct and set the fields to provide parameter values for the GetGatewayMacsec method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getGatewayMacsec options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGatewayMacsec options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.getGatewayMacsec(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayMacsecOptions getGatewayMacsecOptions = new GetGatewayMacsecOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<GatewayMacsec> response = directLinkService.getGatewayMacsec(getGatewayMacsecOptions).execute(); GatewayMacsec gatewayMacsec = response.getResult(); System.out.println(gatewayMacsec);
- getGatewayMacsecOptions := directLinkService.NewGetGatewayMacsecOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) gatewayMacsec, response, err := directLinkService.GetGatewayMacsec(getGatewayMacsecOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayMacsec, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway_macsec( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) gateway_macsec = response.get_result() print(json.dumps(gateway_macsec, indent=2))
Response
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. - Example: - true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]- Example: - gcm_aes_xpn_256
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]
- The date and time the resource was created - Example: - 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 - Example: - 255
- Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers. 
- 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.- Possible values: [ - must_secure,- should_secure]- Example: - must_secure
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]- Example: - secured
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 
- The date and time the resource was last updated - Example: - 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 - Example: - 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - statusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - SakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - StatusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
Status Code
- The MACsec configuration of the direct link was retrieved successfully. 
- A direct link with the specified identifier could not be found or no MACsec configuration set for the direct link. 
- { "active": true, "cipher_suite": "gcm_aes_xpn_256", "confidentiality_offset": 0, "created_at": "2020-11-02T20:40:29.622Z", "key_server_priority": 255, "sak_rekey": { "interval": 3600, "mode": "timer" }, "security_policy": "must_secure", "status": "secured", "status_reasons": [], "updated_at": "2020-11-02T20:40:29.622Z", "window_size": 512 }
- { "active": true, "cipher_suite": "gcm_aes_xpn_256", "confidentiality_offset": 0, "created_at": "2020-11-02T20:40:29.622Z", "key_server_priority": 255, "sak_rekey": { "interval": 3600, "mode": "timer" }, "security_policy": "must_secure", "status": "secured", "status_reasons": [], "updated_at": "2020-11-02T20:40:29.622Z", "window_size": 512 }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Update MACsec configuration
Updates the MACsec configuration on a direct link.
Updates the MACsec configuration on a direct link.
Updates the MACsec configuration on a direct link.
Updates the MACsec configuration on a direct link.
Updates the MACsec configuration on a direct link.
PATCH /gateways/{id}/macsecServiceCall<GatewayMacsec> updateGatewayMacsec(UpdateGatewayMacsecOptions updateGatewayMacsecOptions)updateGatewayMacsec(params)
update_gateway_macsec(
        self,
        id: str,
        gateway_macsec_patch: 'GatewayMacsecPatch',
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) UpdateGatewayMacsec(updateGatewayMacsecOptions *UpdateGatewayMacsecOptions) (result *GatewayMacsec, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) UpdateGatewayMacsecWithContext(ctx context.Context, updateGatewayMacsecOptions *UpdateGatewayMacsecOptions) (result *GatewayMacsec, response *core.DetailedResponse, err error)
Request
Use the UpdateGatewayMacsecOptions.Builder to create a UpdateGatewayMacsecOptions object that contains the parameter values for the updateGatewayMacsec method.
Instantiate the UpdateGatewayMacsecOptions struct and set the fields to provide parameter values for the UpdateGatewayMacsec method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The MACsec configuration patch.
- Sets the MACsec feature to be active (true) or inactive (false) for a gateway. - Example: - true
- Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers. 
- 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.- Allowable values: [ - must_secure,- should_secure]- Example: - must_secure
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512- Example: - 64
The updateGatewayMacsec options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The MACsec configuration patch. 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Sets the MACsec feature to be active (true) or inactive (false) for a gateway. Examples:
- SAK rekey mode based on length of time since last rekey. - sakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Patch fields for MACsec configuration of a Direct Link gateway. - gateway_macsec_patch
- Sets the MACsec feature to be active (true) or inactive (false) for a gateway. Examples:- true
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:- must_secure 
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:- 64
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The UpdateGatewayMacsec options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The MACsec configuration patch. 
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.updateGatewayMacsec(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GatewayMacsecPatch gatewayMacsecPatchModel = new GatewayMacsecPatch.Builder() .build(); Map<String, Object> gatewayMacsecPatchModelAsPatch = gatewayMacsecPatchModel.asPatch(); UpdateGatewayMacsecOptions updateGatewayMacsecOptions = new UpdateGatewayMacsecOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .gatewayMacsecPatch(gatewayMacsecPatchModelAsPatch) .build(); Response<GatewayMacsec> response = directLinkService.updateGatewayMacsec(updateGatewayMacsecOptions).execute(); GatewayMacsec gatewayMacsec = response.getResult(); System.out.println(gatewayMacsec);
- gatewayMacsecPatchModel := &directlinkv1.GatewayMacsecPatch{ } gatewayMacsecPatchModelAsPatch, asPatchErr := gatewayMacsecPatchModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateGatewayMacsecOptions := directLinkService.NewUpdateGatewayMacsecOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", gatewayMacsecPatchModelAsPatch, ) gatewayMacsec, response, err := directLinkService.UpdateGatewayMacsec(updateGatewayMacsecOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayMacsec, "", " ") fmt.Println(string(b))
- gateway_macsec_patch_model = { } response = direct_link_service.update_gateway_macsec( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', gateway_macsec_patch=gateway_macsec_patch_model, ) gateway_macsec = response.get_result() print(json.dumps(gateway_macsec, indent=2))
Response
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. - Example: - true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]- Example: - gcm_aes_xpn_256
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]
- The date and time the resource was created - Example: - 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 - Example: - 255
- Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers. 
- 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.- Possible values: [ - must_secure,- should_secure]- Example: - must_secure
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]- Example: - secured
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 
- The date and time the resource was last updated - Example: - 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 - Example: - 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - statusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - SakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - StatusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
Status Code
- The MACsec configuration of the direct link was updated successfully. 
- The request was invalid. 
- A direct link with the specified identifier could not be found or no MACsec configuration set for the direct link. 
- { "active": true, "cipher_suite": "gcm_aes_xpn_256", "confidentiality_offset": 0, "created_at": "2020-11-02T20:40:29.622Z", "key_server_priority": 255, "sak_rekey": { "interval": 3600, "mode": "timer" }, "security_policy": "must_secure", "status": "secured", "status_reasons": [], "updated_at": "2020-11-02T20:40:29.622Z", "window_size": 512 }
- { "active": true, "cipher_suite": "gcm_aes_xpn_256", "confidentiality_offset": 0, "created_at": "2020-11-02T20:40:29.622Z", "key_server_priority": 255, "sak_rekey": { "interval": 3600, "mode": "timer" }, "security_policy": "must_secure", "status": "secured", "status_reasons": [], "updated_at": "2020-11-02T20:40:29.622Z", "window_size": 512 }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Set MACsec configuration
Sets the MACsec configuration on a direct link, enabling the feature.
Sets the MACsec configuration on a direct link, enabling the feature.
Sets the MACsec configuration on a direct link, enabling the feature.
Sets the MACsec configuration on a direct link, enabling the feature.
Sets the MACsec configuration on a direct link, enabling the feature.
PUT /gateways/{id}/macsecServiceCall<GatewayMacsec> setGatewayMacsec(SetGatewayMacsecOptions setGatewayMacsecOptions)setGatewayMacsec(params)
set_gateway_macsec(
        self,
        id: str,
        active: bool,
        caks: List['GatewayMacsecCakPrototype'],
        sak_rekey: 'SakRekeyPrototype',
        security_policy: str,
        *,
        window_size: Optional[int] = None,
        if_match: Optional[str] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) SetGatewayMacsec(setGatewayMacsecOptions *SetGatewayMacsecOptions) (result *GatewayMacsec, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) SetGatewayMacsecWithContext(ctx context.Context, setGatewayMacsecOptions *SetGatewayMacsecOptions) (result *GatewayMacsec, response *core.DetailedResponse, err error)
Request
Use the SetGatewayMacsecOptions.Builder to create a SetGatewayMacsecOptions object that contains the parameter values for the setGatewayMacsec method.
Instantiate the SetGatewayMacsecOptions struct and set the fields to provide parameter values for the SetGatewayMacsec method.
Custom Headers
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - If-Matchis required when the resource exists and has an ETag value.- Possible values: 2 ≤ length ≤ 512, Value must match regular expression - (?:W\/)?"(?:[ !#-\x7E\x80-\xFF]*|\r\n[\t ]|\\.)*"- Example: - W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The MACsec configuration prototype.
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. - Example: - true
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 
- Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers. 
- 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.- Allowable values: [ - must_secure,- should_secure]- Example: - must_secure
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512- Example: - 64
The setGatewayMacsec options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. Examples:- true
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 - caks
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
 
- SAK rekey mode based on length of time since last rekey. - sakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:- must_secure 
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:- 64
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - If-Matchis required when the resource exists and has an ETag value.- Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:- W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. Examples:
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 - caks
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
 
- SAK rekey mode based on length of time since last rekey. - sakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - If-Matchis required when the resource exists and has an ETag value.- Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. Examples:
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 - caks
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
 
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - If-Matchis required when the resource exists and has an ETag value.- Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The SetGatewayMacsec options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Determines if the MACsec feature should initially be active (true) or inactive (false) for a gateway. Examples:- true
- List of all connectivity association keys (CAKs) to be associated associated with the MACsec feature on a direct link. - There must be at least one CAK with - session:- primary. There can be at most one CAK with- session:- fallback- All CAKs must reference a unique key. - Possible values: 1 ≤ number of items ≤ 4 - Caks
- Key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
 
- SAK rekey mode based on length of time since last rekey. - SakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Allowable values: [ - timer]Examples:- timer 
 
- 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.- Allowable values: [ - must_secure,- should_secure]Examples:- must_secure 
- 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. - Possible values: 0 ≤ value ≤ 65535 - Default: - 512Examples:- 64
- If present, the request will fail if the specified ETag value does not match the resource's current ETag value. - If-Matchis required when the resource exists and has an ETag value.- Possible values: 2 ≤ length ≤ 512, Value must match regular expression - /(?:W\/)?\"(?:[ !#-\\x7E\\x80-\\xFF]*|\\r\\n[\\t ]|\\\\.)*\"/Examples:- W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"
- // Request models needed by this operation. // HpcsKeyIdentity const hpcsKeyIdentityModel = { crn: 'crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222', }; // GatewayMacsecCakPrototype const gatewayMacsecCakPrototypeModel = { key: hpcsKeyIdentityModel, name: '1000', session: 'primary', }; // SakRekeyPrototypeSakRekeyTimerModePrototype const sakRekeyPrototypeModel = { interval: 3600, mode: 'timer', }; const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', active: true, caks: [gatewayMacsecCakPrototypeModel], sakRekey: sakRekeyPrototypeModel, securityPolicy: 'must_secure', ifMatch: 'W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"', }; let res; try { res = await directLinkService.setGatewayMacsec(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- HpcsKeyIdentity hpcsKeyIdentityModel = new HpcsKeyIdentity.Builder() .crn("crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222") .build(); GatewayMacsecCakPrototype gatewayMacsecCakPrototypeModel = new GatewayMacsecCakPrototype.Builder() .key(hpcsKeyIdentityModel) .name("1000") .session("primary") .build(); SakRekeyPrototypeSakRekeyTimerModePrototype sakRekeyPrototypeModel = new SakRekeyPrototypeSakRekeyTimerModePrototype.Builder() .interval(Long.valueOf("3600")) .mode("timer") .build(); SetGatewayMacsecOptions setGatewayMacsecOptions = new SetGatewayMacsecOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .active(true) .caks(java.util.Arrays.asList(gatewayMacsecCakPrototypeModel)) .sakRekey(sakRekeyPrototypeModel) .securityPolicy("must_secure") .ifMatch("W/\"96d225c4-56bd-43d9-98fc-d7148e5c5028\"") .build(); Response<GatewayMacsec> response = directLinkService.setGatewayMacsec(setGatewayMacsecOptions).execute(); GatewayMacsec gatewayMacsec = response.getResult(); System.out.println(gatewayMacsec);
- hpcsKeyIdentityModel := &directlinkv1.HpcsKeyIdentity{ Crn: core.StringPtr("crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222"), } gatewayMacsecCakPrototypeModel := &directlinkv1.GatewayMacsecCakPrototype{ Key: hpcsKeyIdentityModel, Name: core.StringPtr("1000"), Session: core.StringPtr("primary"), } sakRekeyPrototypeModel := &directlinkv1.SakRekeyPrototypeSakRekeyTimerModePrototype{ Interval: core.Int64Ptr(int64(3600)), Mode: core.StringPtr("timer"), } setGatewayMacsecOptions := directLinkService.NewSetGatewayMacsecOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", true, []directlinkv1.GatewayMacsecCakPrototype{*gatewayMacsecCakPrototypeModel}, sakRekeyPrototypeModel, "must_secure", ) setGatewayMacsecOptions.SetIfMatch("W/\"96d225c4-56bd-43d9-98fc-d7148e5c5028\"") gatewayMacsec, response, err := directLinkService.SetGatewayMacsec(setGatewayMacsecOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayMacsec, "", " ") fmt.Println(string(b))
- hpcs_key_identity_model = { 'crn': 'crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222', } gateway_macsec_cak_prototype_model = { 'key': hpcs_key_identity_model, 'name': '1000', 'session': 'primary', } sak_rekey_prototype_model = { 'interval': 3600, 'mode': 'timer', } response = direct_link_service.set_gateway_macsec( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', active=True, caks=[gateway_macsec_cak_prototype_model], sak_rekey=sak_rekey_prototype_model, security_policy='must_secure', if_match='W/"96d225c4-56bd-43d9-98fc-d7148e5c5028"', ) gateway_macsec = response.get_result() print(json.dumps(gateway_macsec, indent=2))
Response
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. - Example: - true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]- Example: - gcm_aes_xpn_256
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]
- The date and time the resource was created - Example: - 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 - Example: - 255
- Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers. 
- 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.- Possible values: [ - must_secure,- should_secure]- Example: - must_secure
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]- Example: - secured
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 
- The date and time the resource was last updated - Example: - 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 - Example: - 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - statusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - sak_rekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - status_reasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
MACsec configuration information of a Direct Link gateway.
- Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway. Examples:- true
- The cipher suite used in generating the security association key (SAK). - Possible values: [ - gcm_aes_xpn_256]Examples:- gcm_aes_xpn_256 
- The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted. - Possible values: [ - 0]Examples:- 0
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 255 Examples:- 255
- SAK rekey mode based on length of time since last rekey. - SakRekey
- The time, in seconds, to force a Secure Association Key (SAK) rekey. - Possible values: 60 ≤ value ≤ 65535 Examples:- 3600
- Determines that the SAK rekey occurs based on a timer. - Possible values: [ - timer]Examples:- timer 
 
- 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.- Possible values: [ - must_secure,- should_secure]Examples:- must_secure 
- Current status of MACsec on this direct link. - Status - offlineis returned when MACsec is inactive and during direct link creation.- Status - deletingis returned when MACsec during removal of MACsec from the direct link and during direct link deletion.- See - status_reasons[]for possible remediation of the- failed- status.- Possible values: [ - init,- pending,- offline,- secured,- failed,- deleting]Examples:- secured 
- Context for certain values of - status.- Possible values: 0 ≤ number of items ≤ 10 - StatusReasons
- 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- statusof the CAKs associated with the MACsec configuration to find the the source of this reason.
 - Possible values: [ - macsec_cak_failed]Examples:- macsec_cak_failed 
- An explanation of the status reason. - Possible values: 0 ≤ length ≤ 250 Examples:- The `authentication_key` failed configuration. 
- Link to documentation about this status reason. - Possible values: 10 ≤ length ≤ 8000, Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://cloud.ibm.com/docs/dl/TODO_ADD_DOCS_LINK
 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
- 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. - Possible values: 0 ≤ value ≤ 65535 Examples:- 512
Status Code
- The MACsec configuration of the direct link was already set. 
- The MACsec configuration of the direct link was set successfully. 
- The request was invalid. 
- A direct link with the specified identifier could not be found. 
- { "active": true, "cipher_suite": "gcm_aes_xpn_256", "confidentiality_offset": 0, "created_at": "2020-11-02T20:40:29.622Z", "key_server_priority": 255, "sak_rekey": { "interval": 3600, "mode": "timer" }, "security_policy": "must_secure", "status": "secured", "status_reasons": [], "updated_at": "2020-11-02T20:40:29.622Z", "window_size": 512 }
- { "active": true, "cipher_suite": "gcm_aes_xpn_256", "confidentiality_offset": 0, "created_at": "2020-11-02T20:40:29.622Z", "key_server_priority": 255, "sak_rekey": { "interval": 3600, "mode": "timer" }, "security_policy": "must_secure", "status": "secured", "status_reasons": [], "updated_at": "2020-11-02T20:40:29.622Z", "window_size": 512 }
- { "active": true, "cipher_suite": "gcm_aes_xpn_256", "confidentiality_offset": 0, "created_at": "2020-11-02T20:40:29.622Z", "key_server_priority": 255, "sak_rekey": { "interval": 3600, "mode": "timer" }, "security_policy": "must_secure", "status": "secured", "status_reasons": [], "updated_at": "2020-11-02T20:40:29.622Z", "window_size": 512 }
- { "active": true, "cipher_suite": "gcm_aes_xpn_256", "confidentiality_offset": 0, "created_at": "2020-11-02T20:40:29.622Z", "key_server_priority": 255, "sak_rekey": { "interval": 3600, "mode": "timer" }, "security_policy": "must_secure", "status": "secured", "status_reasons": [], "updated_at": "2020-11-02T20:40:29.622Z", "window_size": 512 }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List MACsec CAKs
List the CAKs associated with the MACsec configuration of a direct link.
List the CAKs associated with the MACsec configuration of a direct link.
List the CAKs associated with the MACsec configuration of a direct link.
List the CAKs associated with the MACsec configuration of a direct link.
List the CAKs associated with the MACsec configuration of a direct link.
GET /gateways/{id}/macsec/caksServiceCall<GatewayMacsecCakCollection> listGatewayMacsecCaks(ListGatewayMacsecCaksOptions listGatewayMacsecCaksOptions)listGatewayMacsecCaks(params)
list_gateway_macsec_caks(
        self,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGatewayMacsecCaks(listGatewayMacsecCaksOptions *ListGatewayMacsecCaksOptions) (result *GatewayMacsecCakCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewayMacsecCaksWithContext(ctx context.Context, listGatewayMacsecCaksOptions *ListGatewayMacsecCaksOptions) (result *GatewayMacsecCakCollection, response *core.DetailedResponse, err error)
Request
Use the ListGatewayMacsecCaksOptions.Builder to create a ListGatewayMacsecCaksOptions object that contains the parameter values for the listGatewayMacsecCaks method.
Instantiate the ListGatewayMacsecCaksOptions struct and set the fields to provide parameter values for the ListGatewayMacsecCaks method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listGatewayMacsecCaks options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListGatewayMacsecCaks options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.listGatewayMacsecCaks(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListGatewayMacsecCaksOptions listGatewayMacsecCaksOptions = new ListGatewayMacsecCaksOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<GatewayMacsecCakCollection> response = directLinkService.listGatewayMacsecCaks(listGatewayMacsecCaksOptions).execute(); GatewayMacsecCakCollection gatewayMacsecCakCollection = response.getResult(); System.out.println(gatewayMacsecCakCollection);
- listGatewayMacsecCaksOptions := directLinkService.NewListGatewayMacsecCaksOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) gatewayMacsecCakCollection, response, err := directLinkService.ListGatewayMacsecCaks(listGatewayMacsecCaksOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayMacsecCakCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_gateway_macsec_caks( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) gateway_macsec_cak_collection = response.get_result() print(json.dumps(gateway_macsec_cak_collection, indent=2))
Response
List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link.
- List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link. - Possible values: 1 ≤ number of items ≤ 4 
List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link.
- List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link. - Possible values: 1 ≤ number of items ≤ 4 - caks
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - activeDelta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link.
- List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link. - Possible values: 1 ≤ number of items ≤ 4 - caks
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - active_delta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link.
- List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link. - Possible values: 1 ≤ number of items ≤ 4 - caks
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - active_delta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link.
- List of all connectivity association keys (CAKs) associated with the MACsec feature on a direct link. - Possible values: 1 ≤ number of items ≤ 4 - Caks
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - ActiveDelta
- A reference to a Hyper Protect Crypto Service Standard Key. - Key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - Key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
 
Status Code
- The list of CAKs was retrieved successfully. 
- A direct link with the specified identifier could not be found or no MACsec configuration set for the direct link. 
- { "caks": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "00000000-fee4-41c7-9e11-aaaaaaaaaaaa", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "1000", "session": "primary", "status": "operational", "updated_at": "2020-11-02T20:40:29.622Z" }, { "created_at": "2020-11-02T20:40:29.622Z", "id": "11111111-fee4-41c7-9e11-cccccccccccc", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "AF00", "session": "fallback", "status": "failed", "updated_at": "2020-11-02T20:40:29.622Z" } ] }
- { "caks": [ { "created_at": "2020-11-02T20:40:29.622Z", "id": "00000000-fee4-41c7-9e11-aaaaaaaaaaaa", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "1000", "session": "primary", "status": "operational", "updated_at": "2020-11-02T20:40:29.622Z" }, { "created_at": "2020-11-02T20:40:29.622Z", "id": "11111111-fee4-41c7-9e11-cccccccccccc", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "AF00", "session": "fallback", "status": "failed", "updated_at": "2020-11-02T20:40:29.622Z" } ] }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Create MACsec CAK
Creates a CAK associated with the MACsec configuration of a direct link.
Creates a CAK associated with the MACsec configuration of a direct link.
Creates a CAK associated with the MACsec configuration of a direct link.
Creates a CAK associated with the MACsec configuration of a direct link.
Creates a CAK associated with the MACsec configuration of a direct link.
POST /gateways/{id}/macsec/caksServiceCall<GatewayMacsecCak> createGatewayMacsecCak(CreateGatewayMacsecCakOptions createGatewayMacsecCakOptions)createGatewayMacsecCak(params)
create_gateway_macsec_cak(
        self,
        id: str,
        key: 'HpcsKeyIdentity',
        name: str,
        session: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) CreateGatewayMacsecCak(createGatewayMacsecCakOptions *CreateGatewayMacsecCakOptions) (result *GatewayMacsecCak, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) CreateGatewayMacsecCakWithContext(ctx context.Context, createGatewayMacsecCakOptions *CreateGatewayMacsecCakOptions) (result *GatewayMacsecCak, response *core.DetailedResponse, err error)
Request
Use the CreateGatewayMacsecCakOptions.Builder to create a CreateGatewayMacsecCakOptions object that contains the parameter values for the createGatewayMacsecCak method.
Instantiate the CreateGatewayMacsecCakOptions struct and set the fields to provide parameter values for the CreateGatewayMacsecCak method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The MACsec CAK prototype.
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - ^([0-9a-fA-F]{2}){1,32}$- Example: - 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
The createGatewayMacsecCak options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The CreateGatewayMacsecCak options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Allowable values: [ - primary,- fallback]
- // Request models needed by this operation. // HpcsKeyIdentity const hpcsKeyIdentityModel = { crn: 'crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222', }; const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', key: hpcsKeyIdentityModel, name: '1000', session: 'primary', }; let res; try { res = await directLinkService.createGatewayMacsecCak(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- HpcsKeyIdentity hpcsKeyIdentityModel = new HpcsKeyIdentity.Builder() .crn("crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222") .build(); CreateGatewayMacsecCakOptions createGatewayMacsecCakOptions = new CreateGatewayMacsecCakOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .key(hpcsKeyIdentityModel) .name("1000") .session("primary") .build(); Response<GatewayMacsecCak> response = directLinkService.createGatewayMacsecCak(createGatewayMacsecCakOptions).execute(); GatewayMacsecCak gatewayMacsecCak = response.getResult(); System.out.println(gatewayMacsecCak);
- hpcsKeyIdentityModel := &directlinkv1.HpcsKeyIdentity{ Crn: core.StringPtr("crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222"), } createGatewayMacsecCakOptions := directLinkService.NewCreateGatewayMacsecCakOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", hpcsKeyIdentityModel, "1000", "primary", ) gatewayMacsecCak, response, err := directLinkService.CreateGatewayMacsecCak(createGatewayMacsecCakOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayMacsecCak, "", " ") fmt.Println(string(b))
- hpcs_key_identity_model = { 'crn': 'crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222', } response = direct_link_service.create_gateway_macsec_cak( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', key=hpcs_key_identity_model, name='1000', session='primary', ) gateway_macsec_cak = response.get_result() print(json.dumps(gateway_macsec_cak, indent=2))
Response
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.
- The date and time the resource was created - Example: - 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - ^[-0-9a-z]+$- Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - ^([0-9a-fA-F]{2}){1,32}$- Example: - 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]- Example: - active
- The date and time the resource was last updated - Example: - 2020-11-02T20:40:29.622Z
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. 
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - activeDelta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - active_delta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - active_delta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - ActiveDelta
- A reference to a Hyper Protect Crypto Service Standard Key. - Key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - Key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- MACsec CAK successfully created. 
- The request was invalid. 
- A direct link with the specified identifier could not be found or no MACsec configuration set for the direct link. 
- { "created_at": "2020-11-02T20:40:29.622Z", "id": "00000000-fee4-41c7-9e11-aaaaaaaaaaaa", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "1000", "session": "primary", "status": "operational", "updated_at": "2020-11-02T20:40:29.622Z" }
- { "created_at": "2020-11-02T20:40:29.622Z", "id": "00000000-fee4-41c7-9e11-aaaaaaaaaaaa", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "1000", "session": "primary", "status": "operational", "updated_at": "2020-11-02T20:40:29.622Z" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Delete MACsec CAK
Deletes the CAK from the MACsec configuration of a direct link.
Deletes the CAK from the MACsec configuration of a direct link.
Deletes the CAK from the MACsec configuration of a direct link.
Deletes the CAK from the MACsec configuration of a direct link.
Deletes the CAK from the MACsec configuration of a direct link.
DELETE /gateways/{id}/macsec/caks/{cak_id}ServiceCall<Void> deleteGatewayMacsecCak(DeleteGatewayMacsecCakOptions deleteGatewayMacsecCakOptions)deleteGatewayMacsecCak(params)
delete_gateway_macsec_cak(
        self,
        id: str,
        cak_id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) DeleteGatewayMacsecCak(deleteGatewayMacsecCakOptions *DeleteGatewayMacsecCakOptions) (response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) DeleteGatewayMacsecCakWithContext(ctx context.Context, deleteGatewayMacsecCakOptions *DeleteGatewayMacsecCakOptions) (response *core.DetailedResponse, err error)
Request
Use the DeleteGatewayMacsecCakOptions.Builder to create a DeleteGatewayMacsecCakOptions object that contains the parameter values for the deleteGatewayMacsecCak method.
Instantiate the DeleteGatewayMacsecCakOptions struct and set the fields to provide parameter values for the DeleteGatewayMacsecCak method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier - Possible values: length ≤ 128, Value must match regular expression - ^[-0-9a-z]+$- Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The deleteGatewayMacsecCak options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The DeleteGatewayMacsecCak options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', cakId: 'ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4', }; try { await directLinkService.deleteGatewayMacsecCak(params); } catch (err) { console.warn(err); }
- DeleteGatewayMacsecCakOptions deleteGatewayMacsecCakOptions = new DeleteGatewayMacsecCakOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .cakId("ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4") .build(); Response<Void> response = directLinkService.deleteGatewayMacsecCak(deleteGatewayMacsecCakOptions).execute();
- deleteGatewayMacsecCakOptions := directLinkService.NewDeleteGatewayMacsecCakOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", ) response, err := directLinkService.DeleteGatewayMacsecCak(deleteGatewayMacsecCakOptions) if err != nil { panic(err) } if response.StatusCode != 204 { fmt.Printf("\nUnexpected response status code received from DeleteGatewayMacsecCak(): %d\n", response.StatusCode) }
- response = direct_link_service.delete_gateway_macsec_cak( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', cak_id='ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4', )
Response
Status Code
- The MACsec CAK was deleted successfully. 
- Cannot delete primary CAK, MACsec configuration must have a valid primary CAK 
- A direct link with the specified identifier could not be found or no MACsec configuration set for the direct link or a MACsec CAK with the specified identifier could not be found. 
- { "errors": [ { "code": "invalid_request", "message": "Cannot delete primary CAK, MACsec configuration must have a valid primary CAK", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "invalid_request", "message": "Cannot delete primary CAK, MACsec configuration must have a valid primary CAK", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec CAK", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec CAK", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Get MACsec CAK
Get a MACsec CAK by its identifier.
Get a MACsec CAK by its identifier.
Get a MACsec CAK by its identifier.
Get a MACsec CAK by its identifier.
Get a MACsec CAK by its identifier.
GET /gateways/{id}/macsec/caks/{cak_id}ServiceCall<GatewayMacsecCak> getGatewayMacsecCak(GetGatewayMacsecCakOptions getGatewayMacsecCakOptions)getGatewayMacsecCak(params)
get_gateway_macsec_cak(
        self,
        id: str,
        cak_id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGatewayMacsecCak(getGatewayMacsecCakOptions *GetGatewayMacsecCakOptions) (result *GatewayMacsecCak, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayMacsecCakWithContext(ctx context.Context, getGatewayMacsecCakOptions *GetGatewayMacsecCakOptions) (result *GatewayMacsecCak, response *core.DetailedResponse, err error)
Request
Use the GetGatewayMacsecCakOptions.Builder to create a GetGatewayMacsecCakOptions object that contains the parameter values for the getGatewayMacsecCak method.
Instantiate the GetGatewayMacsecCakOptions struct and set the fields to provide parameter values for the GetGatewayMacsecCak method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier - Possible values: length ≤ 128, Value must match regular expression - ^[-0-9a-z]+$- Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getGatewayMacsecCak options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGatewayMacsecCak options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', cakId: 'ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4', }; let res; try { res = await directLinkService.getGatewayMacsecCak(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayMacsecCakOptions getGatewayMacsecCakOptions = new GetGatewayMacsecCakOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .cakId("ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4") .build(); Response<GatewayMacsecCak> response = directLinkService.getGatewayMacsecCak(getGatewayMacsecCakOptions).execute(); GatewayMacsecCak gatewayMacsecCak = response.getResult(); System.out.println(gatewayMacsecCak);
- getGatewayMacsecCakOptions := directLinkService.NewGetGatewayMacsecCakOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", ) gatewayMacsecCak, response, err := directLinkService.GetGatewayMacsecCak(getGatewayMacsecCakOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayMacsecCak, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway_macsec_cak( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', cak_id='ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4', ) gateway_macsec_cak = response.get_result() print(json.dumps(gateway_macsec_cak, indent=2))
Response
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.
- The date and time the resource was created - Example: - 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - ^[-0-9a-z]+$- Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - ^([0-9a-fA-F]{2}){1,32}$- Example: - 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]- Example: - active
- The date and time the resource was last updated - Example: - 2020-11-02T20:40:29.622Z
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. 
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - activeDelta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - active_delta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - active_delta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - ActiveDelta
- A reference to a Hyper Protect Crypto Service Standard Key. - Key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - Key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- The MACsec CAK was retrieved successfully. 
- A direct link with the specified identifier could not be found or no MACsec configuration set for the direct link or a MACsec CAK with the specified identifier could not be found. 
- { "created_at": "2020-11-02T20:40:29.622Z", "id": "00000000-fee4-41c7-9e11-aaaaaaaaaaaa", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "1000", "session": "primary", "status": "operational", "updated_at": "2020-11-02T20:40:29.622Z" }
- { "created_at": "2020-11-02T20:40:29.622Z", "id": "00000000-fee4-41c7-9e11-aaaaaaaaaaaa", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "1000", "session": "primary", "status": "operational", "updated_at": "2020-11-02T20:40:29.622Z" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec CAK", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec CAK", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Update MACsec CAK
Updates the CAK on the MACsec configuration of a direct link.
Updates the CAK on the MACsec configuration of a direct link.
Updates the CAK on the MACsec configuration of a direct link.
Updates the CAK on the MACsec configuration of a direct link.
Updates the CAK on the MACsec configuration of a direct link.
PATCH /gateways/{id}/macsec/caks/{cak_id}ServiceCall<GatewayMacsecCak> updateGatewayMacsecCak(UpdateGatewayMacsecCakOptions updateGatewayMacsecCakOptions)updateGatewayMacsecCak(params)
update_gateway_macsec_cak(
        self,
        id: str,
        cak_id: str,
        gateway_macsec_cak_patch: 'GatewayMacsecCakPatch',
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) UpdateGatewayMacsecCak(updateGatewayMacsecCakOptions *UpdateGatewayMacsecCakOptions) (result *GatewayMacsecCak, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) UpdateGatewayMacsecCakWithContext(ctx context.Context, updateGatewayMacsecCakOptions *UpdateGatewayMacsecCakOptions) (result *GatewayMacsecCak, response *core.DetailedResponse, err error)
Request
Use the UpdateGatewayMacsecCakOptions.Builder to create a UpdateGatewayMacsecCakOptions object that contains the parameter values for the updateGatewayMacsecCak method.
Instantiate the UpdateGatewayMacsecCakOptions struct and set the fields to provide parameter values for the UpdateGatewayMacsecCak method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier - Possible values: length ≤ 128, Value must match regular expression - ^[-0-9a-z]+$- Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The MACsec CAK patch.
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - ^([0-9a-fA-F]{2}){1,32}$- Example: - 1000
The updateGatewayMacsecCak options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The MACsec CAK patch. 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:
- Patch fields for CAK of MACsec configuration on a direct link. - When rotating a CAK, patch both the - nameand- keyfields simultaneously. Both must have new values and cannot match with another CAK. Neither- namenor- keyis allowed to be patched on its own.- gateway_macsec_cak_patch
- key
- The CRN of the key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The UpdateGatewayMacsecCak options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- MACsec CAK identifier. - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The MACsec CAK patch. 
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', cakId: 'ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4', }; let res; try { res = await directLinkService.updateGatewayMacsecCak(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GatewayMacsecCakPatch gatewayMacsecCakPatchModel = new GatewayMacsecCakPatch.Builder() .build(); Map<String, Object> gatewayMacsecCakPatchModelAsPatch = gatewayMacsecCakPatchModel.asPatch(); UpdateGatewayMacsecCakOptions updateGatewayMacsecCakOptions = new UpdateGatewayMacsecCakOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .cakId("ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4") .gatewayMacsecCakPatch(gatewayMacsecCakPatchModelAsPatch) .build(); Response<GatewayMacsecCak> response = directLinkService.updateGatewayMacsecCak(updateGatewayMacsecCakOptions).execute(); GatewayMacsecCak gatewayMacsecCak = response.getResult(); System.out.println(gatewayMacsecCak);
- gatewayMacsecCakPatchModel := &directlinkv1.GatewayMacsecCakPatch{ } gatewayMacsecCakPatchModelAsPatch, asPatchErr := gatewayMacsecCakPatchModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateGatewayMacsecCakOptions := directLinkService.NewUpdateGatewayMacsecCakOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", gatewayMacsecCakPatchModelAsPatch, ) gatewayMacsecCak, response, err := directLinkService.UpdateGatewayMacsecCak(updateGatewayMacsecCakOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayMacsecCak, "", " ") fmt.Println(string(b))
- gateway_macsec_cak_patch_model = { } response = direct_link_service.update_gateway_macsec_cak( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', cak_id='ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4', gateway_macsec_cak_patch=gateway_macsec_cak_patch_model, ) gateway_macsec_cak = response.get_result() print(json.dumps(gateway_macsec_cak, indent=2))
Response
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.
- The date and time the resource was created - Example: - 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - ^[-0-9a-z]+$- Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - ^([0-9a-fA-F]{2}){1,32}$- Example: - 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]- Example: - active
- The date and time the resource was last updated - Example: - 2020-11-02T20:40:29.622Z
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. 
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - activeDelta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - active_delta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - active_delta
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
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.
- This field will be present when the - statusof the MACsec CAK is- rotatingor- inactive. It may be present when the CAK- statusis- failed.- This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. - This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use. - ActiveDelta
- A reference to a Hyper Protect Crypto Service Standard Key. - Key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
 
- The date and time the resource was created. Examples:- 2020-11-02T20:40:29.622Z
- The unique identifier for this connectivity association key (CAK). - Possible values: length ≤ 128, Value must match regular expression - /^[-0-9a-z]+$/Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- A reference to a Hyper Protect Crypto Service Standard Key. - Key
- The CRN of the referenced key. - Possible values: 9 ≤ length ≤ 512, Value must match regular expression - /^crn:v[0-9](:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){2}:hs-crypto(:([A-Za-z0-9-._~!$&'()*+,;=@\/]|%[0-9A-Z]{2})*){5}$/Examples:- crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222
 
- The name identifies the connectivity association key (CAK) within the MACsec key chain. - The CAK's - namemust be a hexadecimal string of even lengths between 2 to 64 inclusive.- This value, along with the material of the - key, must match on the MACsec peers.- Possible values: 2 ≤ length ≤ 64, Value must match regular expression - /^([0-9a-fA-F]{2}){1,32}$/Examples:- 1000
- The intended session the key will be used to secure. - If the - primaryMACsec session fails due to a key/key name mismatch on the peers, the- fallbacksession can take over.- There must be a - primarysession CAK. A- fallbackCAK is optional.- Possible values: [ - primary,- fallback]
- Current status of the CAK. - Status - operationalis returned when the CAK is configured successfully.- Status - rotatingis returned during a key rotation. The CAK defined by- active_deltais still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be- rotatingfor a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter- activeor- inactivestatus.- Status - activeis returned when the CAK is configured successfully and is currently used to secure the MACsec session.- Status - inactiveis returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter- rotatingstatus, and ultimately the- activestatus, 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 - failedis 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 the- fallbacksession.- Possible values: [ - operational,- rotating,- active,- inactive,- failed]Examples:- active 
- The date and time the resource was last updated. Examples:- 2020-11-02T20:40:29.622Z
Status Code
- The MACsec CAK was updated successfully. 
- The request was invalid. 
- A direct link with the specified identifier could not be found or no MACsec configuration set for the direct link or a MACsec CAK with the specified identifier could not be found. 
- { "created_at": "2020-11-02T20:40:29.622Z", "id": "00000000-fee4-41c7-9e11-aaaaaaaaaaaa", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "1000", "session": "primary", "status": "operational", "updated_at": "2020-11-02T20:40:29.622Z" }
- { "created_at": "2020-11-02T20:40:29.622Z", "id": "00000000-fee4-41c7-9e11-aaaaaaaaaaaa", "key": { "crn": "crn:v1:bluemix:public:hs-crypto:us-south:a/4111d05f36894e3cb9b46a43556d9000:abc111b8-37aa-4034-9def-f2607c87aaaa:key:bbb222bc-430a-4de9-9aad-84e5bb022222" }, "name": "1000", "session": "primary", "status": "operational", "updated_at": "2020-11-02T20:40:29.622Z" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec CAK", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find MACsec CAK", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List route reports
Retrieve all route reports for the specified Direct Link gateway.
Retrieve all route reports for the specified Direct Link gateway.
Retrieve all route reports for the specified Direct Link gateway.
Retrieve all route reports for the specified Direct Link gateway.
Retrieve all route reports for the specified Direct Link gateway.
GET /gateways/{gateway_id}/route_reportsServiceCall<RouteReportCollection> listGatewayRouteReports(ListGatewayRouteReportsOptions listGatewayRouteReportsOptions)listGatewayRouteReports(params)
list_gateway_route_reports(
        self,
        gateway_id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGatewayRouteReports(listGatewayRouteReportsOptions *ListGatewayRouteReportsOptions) (result *RouteReportCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewayRouteReportsWithContext(ctx context.Context, listGatewayRouteReportsOptions *ListGatewayRouteReportsOptions) (result *RouteReportCollection, response *core.DetailedResponse, err error)
Request
Use the ListGatewayRouteReportsOptions.Builder to create a ListGatewayRouteReportsOptions object that contains the parameter values for the listGatewayRouteReports method.
Instantiate the ListGatewayRouteReportsOptions struct and set the fields to provide parameter values for the ListGatewayRouteReports method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listGatewayRouteReports options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListGatewayRouteReports options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/route_reports?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.listGatewayRouteReports(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListGatewayRouteReportsOptions listGatewayRouteReportsOptions = new ListGatewayRouteReportsOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<RouteReportCollection> response = directLinkService.listGatewayRouteReports(listGatewayRouteReportsOptions).execute(); RouteReportCollection routeReportCollection = response.getResult(); System.out.println(routeReportCollection);
- listGatewayRouteReportsOptions := directLinkService.NewListGatewayRouteReportsOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) routeReportCollection, response, err := directLinkService.ListGatewayRouteReports(listGatewayRouteReportsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeReportCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_gateway_route_reports( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) route_report_collection = response.get_result() print(json.dumps(route_report_collection, indent=2))
Response
route reports
- Array of route reports 
route reports.
- Array of route reports. - routeReports
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertisedRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gatewayRoutes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - onPremRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlappingRoutes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtualConnectionRoutes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
 
route reports.
- Array of route reports. - route_reports
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertised_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gateway_routes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - on_prem_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlapping_routes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtual_connection_routes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
 
route reports.
- Array of route reports. - route_reports
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertised_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gateway_routes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - on_prem_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlapping_routes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtual_connection_routes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
 
route reports.
- Array of route reports. - RouteReports
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - AdvertisedRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - GatewayRoutes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - OnPremRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - OverlappingRoutes
- Array of overlapping connection/prefix pairs. - Routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - VirtualConnectionRoutes
- Array of virtual connection's routes. - Routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
 
Status Code
- Reports retrieved successfully. 
- The specified Direct Link gateway could not be found. 
- { "route_reports": [ { "advertised_routes": [ { "as_path": "64999 64999 64998 I", "prefix": "10.10.0.0/16" } ], "created_at": "2020-11-02T23:05:52.724Z", "gateway_routes": [ { "prefix": "172.17.0.0/16" } ], "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "on_prem_routes": [ { "as_path": "64999 64999 64998 I", "next_hop": "10.10.0.0/16", "prefix": "172.17.0.0/16" } ], "overlapping_routes": [ { "routes": [ { "prefix": "172.17.0.0/16", "type": "virtual_connection", "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff" } ] } ], "status": "complete", "updated_at": "2020-11-02T23:05:52.724Z", "virtual_connection_routes": [ { "routes": [ { "active": false, "local_preference": "200", "prefix": "172.17.0.0/16" }, { "active": true, "local_preference": "200", "prefix": "10.10.0.0/16" } ], "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff", "virtual_connection_name": "vpc1", "virtual_connection_type": "vpc" } ] } ] }
- { "route_reports": [ { "advertised_routes": [ { "as_path": "64999 64999 64998 I", "prefix": "10.10.0.0/16" } ], "created_at": "2020-11-02T23:05:52.724Z", "gateway_routes": [ { "prefix": "172.17.0.0/16" } ], "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "on_prem_routes": [ { "as_path": "64999 64999 64998 I", "next_hop": "10.10.0.0/16", "prefix": "172.17.0.0/16" } ], "overlapping_routes": [ { "routes": [ { "prefix": "172.17.0.0/16", "type": "virtual_connection", "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff" } ] } ], "status": "complete", "updated_at": "2020-11-02T23:05:52.724Z", "virtual_connection_routes": [ { "routes": [ { "active": false, "local_preference": "200", "prefix": "172.17.0.0/16" }, { "active": true, "local_preference": "200", "prefix": "10.10.0.0/16" } ], "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff", "virtual_connection_name": "vpc1", "virtual_connection_type": "vpc" } ] } ] }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Request a route report
Request route report generation.  While report generation is in progress, additional requests to generate a report are ignored and return the current pending report.
While status is pending, gateway_routes, on_prem_routes, virtual_connection_routes, and overlapping_routes will be empty arrays. These fields will be filled when the status enters the complete status.
Call get_gateway_route_report with the pending route report's id to check on the current status of the report.
Request route report generation.  While report generation is in progress, additional requests to generate a report are ignored and return the current pending report. While status is pending, gateway_routes, on_prem_routes, virtual_connection_routes, and overlapping_routes will be empty arrays. These fields will be filled when the status enters the complete status.  Call get_gateway_route_report with the pending route report's id to check on the current status of the report.
Request route report generation.  While report generation is in progress, additional requests to generate a report are ignored and return the current pending report. While status is pending, gateway_routes, on_prem_routes, virtual_connection_routes, and overlapping_routes will be empty arrays. These fields will be filled when the status enters the complete status.  Call get_gateway_route_report with the pending route report's id to check on the current status of the report.
Request route report generation.  While report generation is in progress, additional requests to generate a report are ignored and return the current pending report. While status is pending, gateway_routes, on_prem_routes, virtual_connection_routes, and overlapping_routes will be empty arrays. These fields will be filled when the status enters the complete status.  Call get_gateway_route_report with the pending route report's id to check on the current status of the report.
Request route report generation.  While report generation is in progress, additional requests to generate a report are ignored and return the current pending report. While status is pending, gateway_routes, on_prem_routes, virtual_connection_routes, and overlapping_routes will be empty arrays. These fields will be filled when the status enters the complete status.  Call get_gateway_route_report with the pending route report's id to check on the current status of the report.
POST /gateways/{gateway_id}/route_reportsServiceCall<RouteReport> createGatewayRouteReport(CreateGatewayRouteReportOptions createGatewayRouteReportOptions)createGatewayRouteReport(params)
create_gateway_route_report(
        self,
        gateway_id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) CreateGatewayRouteReport(createGatewayRouteReportOptions *CreateGatewayRouteReportOptions) (result *RouteReport, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) CreateGatewayRouteReportWithContext(ctx context.Context, createGatewayRouteReportOptions *CreateGatewayRouteReportOptions) (result *RouteReport, response *core.DetailedResponse, err error)
Request
Use the CreateGatewayRouteReportOptions.Builder to create a CreateGatewayRouteReportOptions object that contains the parameter values for the createGatewayRouteReport method.
Instantiate the CreateGatewayRouteReportOptions struct and set the fields to provide parameter values for the CreateGatewayRouteReport method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The createGatewayRouteReport options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The CreateGatewayRouteReport options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X POST https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/route_reports?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.createGatewayRouteReport(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- CreateGatewayRouteReportOptions createGatewayRouteReportOptions = new CreateGatewayRouteReportOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<RouteReport> response = directLinkService.createGatewayRouteReport(createGatewayRouteReportOptions).execute(); RouteReport routeReport = response.getResult(); System.out.println(routeReport);
- createGatewayRouteReportOptions := directLinkService.NewCreateGatewayRouteReportOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) routeReport, response, err := directLinkService.CreateGatewayRouteReport(createGatewayRouteReportOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeReport, "", " ") fmt.Println(string(b))
- response = direct_link_service.create_gateway_route_report( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) route_report = response.get_result() print(json.dumps(route_report, indent=2))
Response
route report
- Date and time route report was requested 
- Array of local/direct routes 
- Report identifier - Example: - 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes 
- Array of overlapping routes 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]- Example: - complete
- Array of routes on virtual connections 
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. 
- Date and time route report was last modified 
route report.
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertisedRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gatewayRoutes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - onPremRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlappingRoutes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtualConnectionRoutes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
route report.
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertised_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gateway_routes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - on_prem_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlapping_routes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtual_connection_routes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
route report.
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertised_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gateway_routes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - on_prem_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlapping_routes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtual_connection_routes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
route report.
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - AdvertisedRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - GatewayRoutes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - OnPremRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - OverlappingRoutes
- Array of overlapping connection/prefix pairs. - Routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - VirtualConnectionRoutes
- Array of virtual connection's routes. - Routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
Status Code
- Route report request successful. If not already in progress, report generation has begun. 
- The specified Direct Link gateway could not be found. 
- { "advertised_routes": [ { "as_path": "64999 64999 64998 I", "prefix": "10.10.0.0/16" } ], "created_at": "2020-11-02T23:05:52.724Z", "gateway_routes": [ { "prefix": "172.17.0.0/16" } ], "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "on_prem_routes": [ { "as_path": "64999 64999 64998 I", "next_hop": "10.10.0.0/16", "prefix": "172.17.0.0/16" } ], "overlapping_routes": [ { "routes": [ { "prefix": "172.17.0.0/16", "type": "virtual_connection", "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff" } ] } ], "status": "complete", "updated_at": "2020-11-02T23:05:52.724Z", "virtual_connection_routes": [ { "routes": [ { "active": false, "local_preference": "200", "prefix": "172.17.0.0/16" }, { "active": true, "local_preference": "200", "prefix": "10.10.0.0/16" } ], "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff", "virtual_connection_name": "vpc1", "virtual_connection_type": "vpc" } ] }
- { "advertised_routes": [ { "as_path": "64999 64999 64998 I", "prefix": "10.10.0.0/16" } ], "created_at": "2020-11-02T23:05:52.724Z", "gateway_routes": [ { "prefix": "172.17.0.0/16" } ], "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "on_prem_routes": [ { "as_path": "64999 64999 64998 I", "next_hop": "10.10.0.0/16", "prefix": "172.17.0.0/16" } ], "overlapping_routes": [ { "routes": [ { "prefix": "172.17.0.0/16", "type": "virtual_connection", "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff" } ] } ], "status": "complete", "updated_at": "2020-11-02T23:05:52.724Z", "virtual_connection_routes": [ { "routes": [ { "active": false, "local_preference": "200", "prefix": "172.17.0.0/16" }, { "active": true, "local_preference": "200", "prefix": "10.10.0.0/16" } ], "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff", "virtual_connection_name": "vpc1", "virtual_connection_type": "vpc" } ] }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Delete route report
Delete a route report.
Delete a route report.
Delete a route report.
Delete a route report.
Delete a route report.
DELETE /gateways/{gateway_id}/route_reports/{id}ServiceCall<Void> deleteGatewayRouteReport(DeleteGatewayRouteReportOptions deleteGatewayRouteReportOptions)deleteGatewayRouteReport(params)
delete_gateway_route_report(
        self,
        gateway_id: str,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) DeleteGatewayRouteReport(deleteGatewayRouteReportOptions *DeleteGatewayRouteReportOptions) (response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) DeleteGatewayRouteReportWithContext(ctx context.Context, deleteGatewayRouteReportOptions *DeleteGatewayRouteReportOptions) (response *core.DetailedResponse, err error)
Request
Use the DeleteGatewayRouteReportOptions.Builder to create a DeleteGatewayRouteReportOptions object that contains the parameter values for the deleteGatewayRouteReport method.
Instantiate the DeleteGatewayRouteReportOptions struct and set the fields to provide parameter values for the DeleteGatewayRouteReport method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Route report identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The deleteGatewayRouteReport options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Route report identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Route report identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Route report identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The DeleteGatewayRouteReport options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Route report identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X DELETE https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/route_reports/$REPORT_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; try { await directLinkService.deleteGatewayRouteReport(params); } catch (err) { console.warn(err); }
- DeleteGatewayRouteReportOptions deleteGatewayRouteReportOptions = new DeleteGatewayRouteReportOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Void> response = directLinkService.deleteGatewayRouteReport(deleteGatewayRouteReportOptions).execute();
- deleteGatewayRouteReportOptions := directLinkService.NewDeleteGatewayRouteReportOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) response, err := directLinkService.DeleteGatewayRouteReport(deleteGatewayRouteReportOptions) if err != nil { panic(err) } if response.StatusCode != 204 { fmt.Printf("\nUnexpected response status code received from DeleteGatewayRouteReport(): %d\n", response.StatusCode) }
- response = direct_link_service.delete_gateway_route_report( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', )
Response
Status Code
- Route report deleted successfully. 
- A Direct Link gateway or route report with the specified identifier could not be found. 
- { "errors": [ { "code": "not_found", "message": "Route report not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Route report not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Retrieve route report
Retrieve a route report.
Retrieve a route report.
Retrieve a route report.
Retrieve a route report.
Retrieve a route report.
GET /gateways/{gateway_id}/route_reports/{id}ServiceCall<RouteReport> getGatewayRouteReport(GetGatewayRouteReportOptions getGatewayRouteReportOptions)getGatewayRouteReport(params)
get_gateway_route_report(
        self,
        gateway_id: str,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGatewayRouteReport(getGatewayRouteReportOptions *GetGatewayRouteReportOptions) (result *RouteReport, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayRouteReportWithContext(ctx context.Context, getGatewayRouteReportOptions *GetGatewayRouteReportOptions) (result *RouteReport, response *core.DetailedResponse, err error)
Request
Use the GetGatewayRouteReportOptions.Builder to create a GetGatewayRouteReportOptions object that contains the parameter values for the getGatewayRouteReport method.
Instantiate the GetGatewayRouteReportOptions struct and set the fields to provide parameter values for the GetGatewayRouteReport method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Route report identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getGatewayRouteReport options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Route report identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Route report identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Route report identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGatewayRouteReport options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- Route report identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/route_reports/$REPORT_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.getGatewayRouteReport(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayRouteReportOptions getGatewayRouteReportOptions = new GetGatewayRouteReportOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<RouteReport> response = directLinkService.getGatewayRouteReport(getGatewayRouteReportOptions).execute(); RouteReport routeReport = response.getResult(); System.out.println(routeReport);
- getGatewayRouteReportOptions := directLinkService.NewGetGatewayRouteReportOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) routeReport, response, err := directLinkService.GetGatewayRouteReport(getGatewayRouteReportOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(routeReport, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway_route_report( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) route_report = response.get_result() print(json.dumps(route_report, indent=2))
Response
route report
- Date and time route report was requested 
- Array of local/direct routes 
- Report identifier - Example: - 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes 
- Array of overlapping routes 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]- Example: - complete
- Array of routes on virtual connections 
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. 
- Date and time route report was last modified 
route report.
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertisedRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gatewayRoutes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - onPremRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlappingRoutes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtualConnectionRoutes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
route report.
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertised_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gateway_routes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - on_prem_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlapping_routes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtual_connection_routes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
route report.
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - advertised_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - gateway_routes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - on_prem_routes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - overlapping_routes
- Array of overlapping connection/prefix pairs. - routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - virtual_connection_routes
- Array of virtual connection's routes. - routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
route report.
- Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the route report was generated prior to inclusion of this parameter. - AdvertisedRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- prefix. Examples:- 172.17.0.0/16
 
- Date and time route report was requested. 
- Array of local/direct routes. - GatewayRoutes
- prefix. Examples:- 172.17.0.0/16
 
- Report identifier. Examples:- 1a15dcab-7e26-45e1-b7c5-bc690eaa9724
- Array of on premises routes. - OnPremRoutes
- The BGP AS path of the route. Examples:- 64999 64999 64998 I
- Next hop address. Examples:- 172.17.0.0
- prefix. Examples:- 172.17.0.0/16
 
- Array of overlapping routes. - OverlappingRoutes
- Array of overlapping connection/prefix pairs. - Routes
- overlapping route details. - RouteReportOverlappingRoute
- overlapping prefix. Examples:- 172.17.0.0/16
- type of the route. - Possible values: [ - virtual_connection]
- virtual connection ID. Examples:- d2d985d8-1d8e-4e8b-96cd-cee2290ecaff
 
 
 
- Route report status. The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - complete,- pending]Examples:- complete 
- Date and time route report was last modified. 
- Array of routes on virtual connections. - VirtualConnectionRoutes
- Array of virtual connection's routes. - Routes
- Indicates whether the route is the preferred path of the prefix. Examples:- true
- The local preference of the route. This attribute can manipulate the chosen path on routes. - Possible values: 0 ≤ length ≤ 50 Examples:- 200
- prefix. Examples:- 172.17.0.0/16
 
- ID of virtual connection. Examples:- 3c265a62-91da-4261-a950-950b6af0eb58
- name of virtual connection. Examples:- vpc1 
- type of virtual connection. Examples:- vpc 
 
Status Code
- Route report retrieved successfully. 
- A route report or gateway with the specified identifier(s) could not be found. 
- { "advertised_routes": [ { "as_path": "64999 64999 64998 I", "prefix": "10.10.0.0/16" } ], "created_at": "2020-11-02T23:05:52.724Z", "gateway_routes": [ { "prefix": "172.17.0.0/16" } ], "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "on_prem_routes": [ { "as_path": "64999 64999 64998 I", "next_hop": "10.10.0.0/16", "prefix": "172.17.0.0/16" } ], "overlapping_routes": [ { "routes": [ { "prefix": "172.17.0.0/16", "type": "virtual_connection", "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff" } ] } ], "status": "complete", "updated_at": "2020-11-02T23:05:52.724Z", "virtual_connection_routes": [ { "routes": [ { "active": false, "local_preference": "200", "prefix": "172.17.0.0/16" }, { "active": true, "local_preference": "200", "prefix": "10.10.0.0/16" } ], "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff", "virtual_connection_name": "vpc1", "virtual_connection_type": "vpc" } ] }
- { "advertised_routes": [ { "as_path": "64999 64999 64998 I", "prefix": "10.10.0.0/16" } ], "created_at": "2020-11-02T23:05:52.724Z", "gateway_routes": [ { "prefix": "172.17.0.0/16" } ], "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "on_prem_routes": [ { "as_path": "64999 64999 64998 I", "next_hop": "10.10.0.0/16", "prefix": "172.17.0.0/16" } ], "overlapping_routes": [ { "routes": [ { "prefix": "172.17.0.0/16", "type": "virtual_connection", "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff" } ] } ], "status": "complete", "updated_at": "2020-11-02T23:05:52.724Z", "virtual_connection_routes": [ { "routes": [ { "active": false, "local_preference": "200", "prefix": "172.17.0.0/16" }, { "active": true, "local_preference": "200", "prefix": "10.10.0.0/16" } ], "virtual_connection_id": "d2d985d8-1d8e-4e8b-96cd-cee2290ecaff", "virtual_connection_name": "vpc1", "virtual_connection_type": "vpc" } ] }
- { "errors": [ { "code": "not_found", "message": "Route report not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Route report not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List virtual connections
List a gateway's virtual connections.
For gateway in other account with virtual connections that connect to network in this account.  Only virtual connections that connect to this account are returned.
List a gateway's virtual connections. For gateway in other account with virtual connections that connect to network in this account. Only virtual connections that connect to this account are returned.
List a gateway's virtual connections. For gateway in other account with virtual connections that connect to network in this account. Only virtual connections that connect to this account are returned.
List a gateway's virtual connections. For gateway in other account with virtual connections that connect to network in this account. Only virtual connections that connect to this account are returned.
List a gateway's virtual connections. For gateway in other account with virtual connections that connect to network in this account. Only virtual connections that connect to this account are returned.
GET /gateways/{gateway_id}/virtual_connectionsServiceCall<GatewayVirtualConnectionCollection> listGatewayVirtualConnections(ListGatewayVirtualConnectionsOptions listGatewayVirtualConnectionsOptions)listGatewayVirtualConnections(params)
list_gateway_virtual_connections(
        self,
        gateway_id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListGatewayVirtualConnections(listGatewayVirtualConnectionsOptions *ListGatewayVirtualConnectionsOptions) (result *GatewayVirtualConnectionCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListGatewayVirtualConnectionsWithContext(ctx context.Context, listGatewayVirtualConnectionsOptions *ListGatewayVirtualConnectionsOptions) (result *GatewayVirtualConnectionCollection, response *core.DetailedResponse, err error)
Request
Use the ListGatewayVirtualConnectionsOptions.Builder to create a ListGatewayVirtualConnectionsOptions object that contains the parameter values for the listGatewayVirtualConnections method.
Instantiate the ListGatewayVirtualConnectionsOptions struct and set the fields to provide parameter values for the ListGatewayVirtualConnections method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listGatewayVirtualConnections options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListGatewayVirtualConnections options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/virtual_connections?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.listGatewayVirtualConnections(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListGatewayVirtualConnectionsOptions listGatewayVirtualConnectionsOptions = new ListGatewayVirtualConnectionsOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<GatewayVirtualConnectionCollection> response = directLinkService.listGatewayVirtualConnections(listGatewayVirtualConnectionsOptions).execute(); GatewayVirtualConnectionCollection gatewayVirtualConnectionCollection = response.getResult(); System.out.println(gatewayVirtualConnectionCollection);
- listGatewayVirtualConnectionsOptions := directLinkService.NewListGatewayVirtualConnectionsOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) gatewayVirtualConnectionCollection, response, err := directLinkService.ListGatewayVirtualConnections(listGatewayVirtualConnectionsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayVirtualConnectionCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_gateway_virtual_connections( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) gateway_virtual_connection_collection = response.get_result() print(json.dumps(gateway_virtual_connection_collection, indent=2))
Response
Virtual connection collection
- virtual connection array 
Virtual connection collection.
- virtual connection array. - virtualConnections
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
 
Virtual connection collection.
- virtual connection array. - virtual_connections
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
 
Virtual connection collection.
- virtual connection array. - virtual_connections
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
 
Virtual connection collection.
- virtual connection array. - VirtualConnections
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
 
Status Code
- The virtual connections were retrieved successfully. 
- The specified virtual connection could not be found. 
- { "virtual_connections": [ { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "name": "newVC", "network_account": "00aa14a2e0fb102c8995ebefff865555", "network_id": "crn:[...]", "status": "attached", "type": "vpc" } ] }
- { "virtual_connections": [ { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "name": "newVC", "network_account": "00aa14a2e0fb102c8995ebefff865555", "network_id": "crn:[...]", "status": "attached", "type": "vpc" } ] }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Create virtual connection
Create a virtual connection to the specified network.
Create a virtual connection to the specified network.
Create a virtual connection to the specified network.
Create a virtual connection to the specified network.
Create a virtual connection to the specified network.
POST /gateways/{gateway_id}/virtual_connectionsServiceCall<GatewayVirtualConnection> createGatewayVirtualConnection(CreateGatewayVirtualConnectionOptions createGatewayVirtualConnectionOptions)createGatewayVirtualConnection(params)
create_gateway_virtual_connection(
        self,
        gateway_id: str,
        name: str,
        type: str,
        *,
        network_id: Optional[str] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) CreateGatewayVirtualConnection(createGatewayVirtualConnectionOptions *CreateGatewayVirtualConnectionOptions) (result *GatewayVirtualConnection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) CreateGatewayVirtualConnectionWithContext(ctx context.Context, createGatewayVirtualConnectionOptions *CreateGatewayVirtualConnectionOptions) (result *GatewayVirtualConnection, response *core.DetailedResponse, err error)
Request
Use the CreateGatewayVirtualConnectionOptions.Builder to create a CreateGatewayVirtualConnectionOptions object that contains the parameter values for the createGatewayVirtualConnection method.
Instantiate the CreateGatewayVirtualConnectionOptions struct and set the fields to provide parameter values for the CreateGatewayVirtualConnection method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The virtual connection template
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - newVC
- The type of virtual connection - Allowable values: [ - classic,- vpc]- Example: - vpc
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. - Example: - crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
The createGatewayVirtualConnection options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- The type of virtual connection. - Allowable values: [ - classic,- vpc]Examples:- vpc 
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:
- The type of virtual connection. - Allowable values: [ - classic,- vpc]Examples:
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:
- The type of virtual connection. - Allowable values: [ - classic,- vpc]Examples:
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The CreateGatewayVirtualConnection options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- The type of virtual connection. - Allowable values: [ - classic,- vpc]Examples:- vpc 
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- curl -X POST https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/virtual_connections?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN" -d '{ "type": "vpc", "name": "my-example-connection", "network_id": "$VPC_CRN" }'
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', name: 'newVC', type: 'vpc', }; let res; try { res = await directLinkService.createGatewayVirtualConnection(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- CreateGatewayVirtualConnectionOptions createGatewayVirtualConnectionOptions = new CreateGatewayVirtualConnectionOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .name("newVC") .type("vpc") .build(); Response<GatewayVirtualConnection> response = directLinkService.createGatewayVirtualConnection(createGatewayVirtualConnectionOptions).execute(); GatewayVirtualConnection gatewayVirtualConnection = response.getResult(); System.out.println(gatewayVirtualConnection);
- createGatewayVirtualConnectionOptions := directLinkService.NewCreateGatewayVirtualConnectionOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "newVC", "vpc", ) gatewayVirtualConnection, response, err := directLinkService.CreateGatewayVirtualConnection(createGatewayVirtualConnectionOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayVirtualConnection, "", " ") fmt.Println(string(b))
- response = direct_link_service.create_gateway_virtual_connection( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', name='newVC', type='vpc', ) gateway_virtual_connection = response.get_result() print(json.dumps(gateway_virtual_connection, indent=2))
Response
Virtual connection
- The date and time resource was created 
- The unique identifier for this virtual connection - Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - newVC
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]- Example: - attached
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]- Example: - vpc
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. - Example: - 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. - Example: - crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Status Code
- The virtual connection was created successfully. 
- An invalid template was provided. 
- The specified gateway could not be found. 
- { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "name": "newVC", "network_account": "00aa14a2e0fb102c8995ebefff865555", "network_id": "crn:[...]", "status": "attached", "type": "vpc" }
- { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "name": "newVC", "network_account": "00aa14a2e0fb102c8995ebefff865555", "network_id": "crn:[...]", "status": "attached", "type": "vpc" }
- { "errors": [ { "code": "validation_required_field_missing", "message": "Mandatory field is missing.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "type", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "validation_required_field_missing", "message": "Mandatory field is missing.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "type", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find Gateway", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Delete virtual connection
Delete the virtual connection.
Delete the virtual connection.
Delete the virtual connection.
Delete the virtual connection.
Delete the virtual connection.
DELETE /gateways/{gateway_id}/virtual_connections/{id}ServiceCall<Void> deleteGatewayVirtualConnection(DeleteGatewayVirtualConnectionOptions deleteGatewayVirtualConnectionOptions)deleteGatewayVirtualConnection(params)
delete_gateway_virtual_connection(
        self,
        gateway_id: str,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) DeleteGatewayVirtualConnection(deleteGatewayVirtualConnectionOptions *DeleteGatewayVirtualConnectionOptions) (response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) DeleteGatewayVirtualConnectionWithContext(ctx context.Context, deleteGatewayVirtualConnectionOptions *DeleteGatewayVirtualConnectionOptions) (response *core.DetailedResponse, err error)
Request
Use the DeleteGatewayVirtualConnectionOptions.Builder to create a DeleteGatewayVirtualConnectionOptions object that contains the parameter values for the deleteGatewayVirtualConnection method.
Instantiate the DeleteGatewayVirtualConnectionOptions struct and set the fields to provide parameter values for the DeleteGatewayVirtualConnection method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The deleteGatewayVirtualConnection options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The DeleteGatewayVirtualConnection options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X DELETE https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/virtual_connections/$VIRTUAL_CONNECTION_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; try { await directLinkService.deleteGatewayVirtualConnection(params); } catch (err) { console.warn(err); }
- DeleteGatewayVirtualConnectionOptions deleteGatewayVirtualConnectionOptions = new DeleteGatewayVirtualConnectionOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Void> response = directLinkService.deleteGatewayVirtualConnection(deleteGatewayVirtualConnectionOptions).execute();
- deleteGatewayVirtualConnectionOptions := directLinkService.NewDeleteGatewayVirtualConnectionOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) response, err := directLinkService.DeleteGatewayVirtualConnection(deleteGatewayVirtualConnectionOptions) if err != nil { panic(err) } if response.StatusCode != 204 { fmt.Printf("\nUnexpected response status code received from DeleteGatewayVirtualConnection(): %d\n", response.StatusCode) }
- response = direct_link_service.delete_gateway_virtual_connection( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', )
Response
Status Code
- The virtual connection was removed successfully. 
- A virtual connection with the specified identifier could not be found. 
- { "errors": [ { "code": "not_found", "message": "Cannot find a VirtualConnection", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find a VirtualConnection", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Get virtual connection
Retrieve a virtual connection.
Retrieve a virtual connection.
Retrieve a virtual connection.
Retrieve a virtual connection.
Retrieve a virtual connection.
GET /gateways/{gateway_id}/virtual_connections/{id}ServiceCall<GatewayVirtualConnection> getGatewayVirtualConnection(GetGatewayVirtualConnectionOptions getGatewayVirtualConnectionOptions)getGatewayVirtualConnection(params)
get_gateway_virtual_connection(
        self,
        gateway_id: str,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetGatewayVirtualConnection(getGatewayVirtualConnectionOptions *GetGatewayVirtualConnectionOptions) (result *GatewayVirtualConnection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetGatewayVirtualConnectionWithContext(ctx context.Context, getGatewayVirtualConnectionOptions *GetGatewayVirtualConnectionOptions) (result *GatewayVirtualConnection, response *core.DetailedResponse, err error)
Request
Use the GetGatewayVirtualConnectionOptions.Builder to create a GetGatewayVirtualConnectionOptions object that contains the parameter values for the getGatewayVirtualConnection method.
Instantiate the GetGatewayVirtualConnectionOptions struct and set the fields to provide parameter values for the GetGatewayVirtualConnection method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getGatewayVirtualConnection options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetGatewayVirtualConnection options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/virtual_connections/$VIRTUAL_CONNECTION_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.getGatewayVirtualConnection(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetGatewayVirtualConnectionOptions getGatewayVirtualConnectionOptions = new GetGatewayVirtualConnectionOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<GatewayVirtualConnection> response = directLinkService.getGatewayVirtualConnection(getGatewayVirtualConnectionOptions).execute(); GatewayVirtualConnection gatewayVirtualConnection = response.getResult(); System.out.println(gatewayVirtualConnection);
- getGatewayVirtualConnectionOptions := directLinkService.NewGetGatewayVirtualConnectionOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) gatewayVirtualConnection, response, err := directLinkService.GetGatewayVirtualConnection(getGatewayVirtualConnectionOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayVirtualConnection, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_gateway_virtual_connection( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) gateway_virtual_connection = response.get_result() print(json.dumps(gateway_virtual_connection, indent=2))
Response
Virtual connection
- The date and time resource was created 
- The unique identifier for this virtual connection - Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - newVC
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]- Example: - attached
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]- Example: - vpc
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. - Example: - 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. - Example: - crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Status Code
- The virtual connection was retrieved successfully. 
- A virtual connection with the specified identifier could not be found. 
- { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "name": "newVC", "network_account": "00aa14a2e0fb102c8995ebefff865555", "network_id": "crn:[...]", "status": "attached", "type": "vpc" }
- { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "name": "newVC", "network_account": "00aa14a2e0fb102c8995ebefff865555", "network_id": "crn:[...]", "status": "attached", "type": "vpc" }
- { "errors": [ { "code": "not_found", "message": "Cannot find a VirtualConnection", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find a VirtualConnection", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Update virtual connection
Update a virtual connection.
Update a virtual connection.
Update a virtual connection.
Update a virtual connection.
Update a virtual connection.
PATCH /gateways/{gateway_id}/virtual_connections/{id}ServiceCall<GatewayVirtualConnection> updateGatewayVirtualConnection(UpdateGatewayVirtualConnectionOptions updateGatewayVirtualConnectionOptions)updateGatewayVirtualConnection(params)
update_gateway_virtual_connection(
        self,
        gateway_id: str,
        id: str,
        gateway_virtual_connection_patch_template: 'GatewayVirtualConnectionPatchTemplate',
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) UpdateGatewayVirtualConnection(updateGatewayVirtualConnectionOptions *UpdateGatewayVirtualConnectionOptions) (result *GatewayVirtualConnection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) UpdateGatewayVirtualConnectionWithContext(ctx context.Context, updateGatewayVirtualConnectionOptions *UpdateGatewayVirtualConnectionOptions) (result *GatewayVirtualConnection, response *core.DetailedResponse, err error)
Request
Use the UpdateGatewayVirtualConnectionOptions.Builder to create a UpdateGatewayVirtualConnectionOptions object that contains the parameter values for the updateGatewayVirtualConnection method.
Instantiate the UpdateGatewayVirtualConnectionOptions struct and set the fields to provide parameter values for the UpdateGatewayVirtualConnection method.
Path Parameters
- Direct Link gateway identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The virtual connection patch template
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - newConnectionName
- Status of the virtual connection. Virtual connections that span IBM Cloud Accounts are created in approval_pending status. The owner of the target network can accept or reject connection requests by patching status to attached or rejected respectively. - Allowable values: [ - attached,- rejected]- Example: - attached
The updateGatewayVirtualConnection options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection patch template. 
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:
- Status of the virtual connection. Virtual connections that span IBM Cloud Accounts are created in approval_pending status. The owner of the target network can accept or reject connection requests by patching status to attached or rejected respectively. - Allowable values: [ - attached,- rejected]Examples:
parameters
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
- Patch virtual connection template. - gateway_virtual_connection_patch_template
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newConnectionName 
- Status of the virtual connection. Virtual connections that span IBM Cloud Accounts are created in approval_pending status. The owner of the target network can accept or reject connection requests by patching status to attached or rejected respectively. - Allowable values: [ - attached,- rejected]Examples:- attached 
 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The UpdateGatewayVirtualConnection options.
- Direct Link gateway identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- The virtual connection patch template. 
- curl -X PATCH https://$DL_ENDPOINT/v1/gateways/$GATEWAY_ID/virtual_connections/$VIRTUAL_CONNECTION_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN" -d '{ "name": "new-name" }'
- const params = { gatewayId: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.updateGatewayVirtualConnection(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GatewayVirtualConnectionPatchTemplate gatewayVirtualConnectionPatchTemplateModel = new GatewayVirtualConnectionPatchTemplate.Builder() .build(); Map<String, Object> gatewayVirtualConnectionPatchTemplateModelAsPatch = gatewayVirtualConnectionPatchTemplateModel.asPatch(); UpdateGatewayVirtualConnectionOptions updateGatewayVirtualConnectionOptions = new UpdateGatewayVirtualConnectionOptions.Builder() .gatewayId("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .gatewayVirtualConnectionPatchTemplatePatch(gatewayVirtualConnectionPatchTemplateModelAsPatch) .build(); Response<GatewayVirtualConnection> response = directLinkService.updateGatewayVirtualConnection(updateGatewayVirtualConnectionOptions).execute(); GatewayVirtualConnection gatewayVirtualConnection = response.getResult(); System.out.println(gatewayVirtualConnection);
- gatewayVirtualConnectionPatchTemplateModel := &directlinkv1.GatewayVirtualConnectionPatchTemplate{ } gatewayVirtualConnectionPatchTemplateModelAsPatch, asPatchErr := gatewayVirtualConnectionPatchTemplateModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateGatewayVirtualConnectionOptions := directLinkService.NewUpdateGatewayVirtualConnectionOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", "0a06fb9b-820f-4c44-8a31-77f1f0806d28", gatewayVirtualConnectionPatchTemplateModelAsPatch, ) gatewayVirtualConnection, response, err := directLinkService.UpdateGatewayVirtualConnection(updateGatewayVirtualConnectionOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(gatewayVirtualConnection, "", " ") fmt.Println(string(b))
- gateway_virtual_connection_patch_template_model = { } response = direct_link_service.update_gateway_virtual_connection( gateway_id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', gateway_virtual_connection_patch_template=gateway_virtual_connection_patch_template_model, ) gateway_virtual_connection = response.get_result() print(json.dumps(gateway_virtual_connection, indent=2))
Response
Virtual connection
- The date and time resource was created 
- The unique identifier for this virtual connection - Example: - ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - ^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$- Example: - newVC
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]- Example: - attached
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]- Example: - vpc
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. - Example: - 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. - Example: - crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Virtual connection.
- The date and time resource was created. 
- The unique identifier for this virtual connection. Examples:- ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4
- The user-defined name for this virtual connection. Virtual connection names are unique within a gateway. This is the name of the virtual connection itself, the network being connected may have its own name attribute. - Possible values: 1 ≤ length ≤ 63, Value must match regular expression - /^([a-zA-Z]|[a-zA-Z][-_a-zA-Z0-9]*[a-zA-Z0-9])$/Examples:- newVC 
- For virtual connections across two different IBM Cloud Accounts network_account indicates the account that owns the target network. Examples:- 00aa14a2e0fb102c8995ebefff865555
- Unique identifier of the target network. For type=vpc virtual connections this is the CRN of the target VPC. This field does not apply to type=classic connections. Examples:- crn:v1:bluemix:public:is:us-east:a/28e4d90ac7504be69447111122223333::vpc:aaa81ac8-5e96-42a0-a4b7-6c2e2d1bbbbb
- Status of the virtual connection. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - pending,- attached,- approval_pending,- rejected,- expired,- deleting,- detached_by_network_pending,- detached_by_network]Examples:- attached 
- Virtual connection type. - The list of enumerated values for this property may expand in the future. Code and processes using this field must tolerate unexpected values. - Possible values: [ - classic,- vpc,- transit]Examples:- vpc 
Status Code
- The virtual connection was updated successfully. 
- The request was invalid. 
- A virtual connection with the specified identifier could not be found. 
- { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "name": "newVC", "network_account": "00aa14a2e0fb102c8995ebefff865555", "network_id": "crn:[...]", "status": "attached", "type": "vpc" }
- { "created_at": "2020-11-02T23:05:52.724Z", "id": "ef4dcb1a-fee4-41c7-9e11-9cd99e65c1f4", "name": "newVC", "network_account": "00aa14a2e0fb102c8995ebefff865555", "network_id": "crn:[...]", "status": "attached", "type": "vpc" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "The information given was invalid, malformed, or missing a required field.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find a VirtualConnection", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find a VirtualConnection", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List available locations
Retrieve the list of valid locations for the specified Direct Link offering.
Retrieve the list of valid locations for the specified Direct Link offering.
Retrieve the list of valid locations for the specified Direct Link offering.
Retrieve the list of valid locations for the specified Direct Link offering.
Retrieve the list of valid locations for the specified Direct Link offering.
GET /offering_types/{offering_type}/locationsServiceCall<LocationCollection> listOfferingTypeLocations(ListOfferingTypeLocationsOptions listOfferingTypeLocationsOptions)listOfferingTypeLocations(params)
list_offering_type_locations(
        self,
        offering_type: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListOfferingTypeLocations(listOfferingTypeLocationsOptions *ListOfferingTypeLocationsOptions) (result *LocationCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListOfferingTypeLocationsWithContext(ctx context.Context, listOfferingTypeLocationsOptions *ListOfferingTypeLocationsOptions) (result *LocationCollection, response *core.DetailedResponse, err error)
Request
Use the ListOfferingTypeLocationsOptions.Builder to create a ListOfferingTypeLocationsOptions object that contains the parameter values for the listOfferingTypeLocations method.
Instantiate the ListOfferingTypeLocationsOptions struct and set the fields to provide parameter values for the ListOfferingTypeLocations method.
Path Parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]- Example: - dedicated
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listOfferingTypeLocations options.
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:- dedicated 
parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:
parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListOfferingTypeLocations options.
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:- dedicated 
- curl -X GET https://$DL_ENDPOINT/v1/offering_types/dedicated/locations?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { offeringType: 'dedicated', }; let res; try { res = await directLinkService.listOfferingTypeLocations(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListOfferingTypeLocationsOptions listOfferingTypeLocationsOptions = new ListOfferingTypeLocationsOptions.Builder() .offeringType("dedicated") .build(); Response<LocationCollection> response = directLinkService.listOfferingTypeLocations(listOfferingTypeLocationsOptions).execute(); LocationCollection locationCollection = response.getResult(); System.out.println(locationCollection);
- listOfferingTypeLocationsOptions := directLinkService.NewListOfferingTypeLocationsOptions( "dedicated", ) locationCollection, response, err := directLinkService.ListOfferingTypeLocations(listOfferingTypeLocationsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(locationCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_offering_type_locations( offering_type='dedicated', ) location_collection = response.get_result() print(json.dumps(location_collection, indent=2))
Response
location collection
- Collection of Direct Link locations 
location collection.
- Collection of Direct Link locations. - locations
- Billing location. Only present for locations where provisioning is enabled. Examples:- us 
- Building colocation owner. Only present for offering_type=dedicated locations where provisioning is enabled. Examples:- MyProvider 
- Location long name. Examples:- Dallas 9
- Location type. Examples:- PoP 
- Indicate whether location supports MACsec. Only returned for gateway type=dedicated locations. Examples:- false
- Location market. Examples:- Dallas 
- Location geography. Only present for locations where provisioning is enabled. Examples:- N/S America 
- Is location a multi-zone region (MZR). Only present for locations where provisioning is enabled. Examples:- true
- Location short name. Examples:- dal03 
- Location offering type. Examples:- dedicated 
- Indicates for the specific offering_type whether this location supports gateway provisioning. Examples:- true
- Location's VPC region. Only present for locations where provisioning is enabled. Examples:- us-south 
 
location collection.
- Collection of Direct Link locations. - locations
- Billing location. Only present for locations where provisioning is enabled. Examples:- us 
- Building colocation owner. Only present for offering_type=dedicated locations where provisioning is enabled. Examples:- MyProvider 
- Location long name. Examples:- Dallas 9
- Location type. Examples:- PoP 
- Indicate whether location supports MACsec. Only returned for gateway type=dedicated locations. Examples:- false
- Location market. Examples:- Dallas 
- Location geography. Only present for locations where provisioning is enabled. Examples:- N/S America 
- Is location a multi-zone region (MZR). Only present for locations where provisioning is enabled. Examples:- true
- Location short name. Examples:- dal03 
- Location offering type. Examples:- dedicated 
- Indicates for the specific offering_type whether this location supports gateway provisioning. Examples:- true
- Location's VPC region. Only present for locations where provisioning is enabled. Examples:- us-south 
 
location collection.
- Collection of Direct Link locations. - locations
- Billing location. Only present for locations where provisioning is enabled. Examples:- us 
- Building colocation owner. Only present for offering_type=dedicated locations where provisioning is enabled. Examples:- MyProvider 
- Location long name. Examples:- Dallas 9
- Location type. Examples:- PoP 
- Indicate whether location supports MACsec. Only returned for gateway type=dedicated locations. Examples:- false
- Location market. Examples:- Dallas 
- Location geography. Only present for locations where provisioning is enabled. Examples:- N/S America 
- Is location a multi-zone region (MZR). Only present for locations where provisioning is enabled. Examples:- true
- Location short name. Examples:- dal03 
- Location offering type. Examples:- dedicated 
- Indicates for the specific offering_type whether this location supports gateway provisioning. Examples:- true
- Location's VPC region. Only present for locations where provisioning is enabled. Examples:- us-south 
 
location collection.
- Collection of Direct Link locations. - Locations
- Billing location. Only present for locations where provisioning is enabled. Examples:- us 
- Building colocation owner. Only present for offering_type=dedicated locations where provisioning is enabled. Examples:- MyProvider 
- Location long name. Examples:- Dallas 9
- Location type. Examples:- PoP 
- Indicate whether location supports MACsec. Only returned for gateway type=dedicated locations. Examples:- false
- Location market. Examples:- Dallas 
- Location geography. Only present for locations where provisioning is enabled. Examples:- N/S America 
- Is location a multi-zone region (MZR). Only present for locations where provisioning is enabled. Examples:- true
- Location short name. Examples:- dal03 
- Location offering type. Examples:- dedicated 
- Indicates for the specific offering_type whether this location supports gateway provisioning. Examples:- true
- Location's VPC region. Only present for locations where provisioning is enabled. Examples:- us-south 
 
Status Code
- The Direct Link locations for offering type were retrieved successfully. 
- The Direct Link locations offering type could not be retrieved. 
- A Direct Link locations for the specified offering type could not be found. 
- { "locations": [ { "billing_location": "us", "building_colocation_owner": "MyProvider", "display_name": "Dallas 9", "location_type": "PoP", "macsec_enabled": false, "market": "Dallas", "market_geography": "N/S America", "mzr": true, "name": "dal03", "offering_type": "dedicated", "provision_enabled": true, "vpc_region": "us-south" } ] }
- { "locations": [ { "billing_location": "us", "building_colocation_owner": "MyProvider", "display_name": "Dallas 9", "location_type": "PoP", "macsec_enabled": false, "market": "Dallas", "market_geography": "N/S America", "mzr": true, "name": "dal03", "offering_type": "dedicated", "provision_enabled": true, "vpc_region": "us-south" } ] }
- { "errors": [ { "code": "bad_request", "message": "Required parameter missing.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "Required parameter missing.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "request_body", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Location not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Location not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List routers
Retrieve location specific cross connect router information. Only valid for offering_type=dedicated locations.
Retrieve location specific cross connect router information. Only valid for offering_type=dedicated locations.
Retrieve location specific cross connect router information. Only valid for offering_type=dedicated locations.
Retrieve location specific cross connect router information. Only valid for offering_type=dedicated locations.
Retrieve location specific cross connect router information. Only valid for offering_type=dedicated locations.
GET /offering_types/{offering_type}/locations/{location_name}/cross_connect_routersServiceCall<LocationCrossConnectRouterCollection> listOfferingTypeLocationCrossConnectRouters(ListOfferingTypeLocationCrossConnectRoutersOptions listOfferingTypeLocationCrossConnectRoutersOptions)listOfferingTypeLocationCrossConnectRouters(params)
list_offering_type_location_cross_connect_routers(
        self,
        offering_type: str,
        location_name: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListOfferingTypeLocationCrossConnectRouters(listOfferingTypeLocationCrossConnectRoutersOptions *ListOfferingTypeLocationCrossConnectRoutersOptions) (result *LocationCrossConnectRouterCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListOfferingTypeLocationCrossConnectRoutersWithContext(ctx context.Context, listOfferingTypeLocationCrossConnectRoutersOptions *ListOfferingTypeLocationCrossConnectRoutersOptions) (result *LocationCrossConnectRouterCollection, response *core.DetailedResponse, err error)
Request
Use the ListOfferingTypeLocationCrossConnectRoutersOptions.Builder to create a ListOfferingTypeLocationCrossConnectRoutersOptions object that contains the parameter values for the listOfferingTypeLocationCrossConnectRouters method.
Instantiate the ListOfferingTypeLocationCrossConnectRoutersOptions struct and set the fields to provide parameter values for the ListOfferingTypeLocationCrossConnectRouters method.
Path Parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]- Example: - dedicated
- The name of the Direct Link location 
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listOfferingTypeLocationCrossConnectRouters options.
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:- dedicated 
- The name of the Direct Link location. 
parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:
- The name of the Direct Link location. 
parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:
- The name of the Direct Link location. 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListOfferingTypeLocationCrossConnectRouters options.
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:- dedicated 
- The name of the Direct Link location. 
- curl -X GET https://$DL_ENDPOINT/v1/offering_types/dedicated/locations/dal03/cross_connect_routers?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { offeringType: 'dedicated', locationName: 'testString', }; let res; try { res = await directLinkService.listOfferingTypeLocationCrossConnectRouters(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListOfferingTypeLocationCrossConnectRoutersOptions listOfferingTypeLocationCrossConnectRoutersOptions = new ListOfferingTypeLocationCrossConnectRoutersOptions.Builder() .offeringType("dedicated") .locationName("testString") .build(); Response<LocationCrossConnectRouterCollection> response = directLinkService.listOfferingTypeLocationCrossConnectRouters(listOfferingTypeLocationCrossConnectRoutersOptions).execute(); LocationCrossConnectRouterCollection locationCrossConnectRouterCollection = response.getResult(); System.out.println(locationCrossConnectRouterCollection);
- listOfferingTypeLocationCrossConnectRoutersOptions := directLinkService.NewListOfferingTypeLocationCrossConnectRoutersOptions( "dedicated", "testString", ) locationCrossConnectRouterCollection, response, err := directLinkService.ListOfferingTypeLocationCrossConnectRouters(listOfferingTypeLocationCrossConnectRoutersOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(locationCrossConnectRouterCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_offering_type_location_cross_connect_routers( offering_type='dedicated', location_name='testString', ) location_cross_connect_router_collection = response.get_result() print(json.dumps(location_cross_connect_router_collection, indent=2))
Response
List of cross connect router details
- Array of Routers for this location 
List of cross connect router details.
- Array of Routers for this location. - crossConnectRouters
- List of capabilities for this router. - Listed - MacsecCapabilityvalues indicate the router is associated with switch ports with that capability, and is able to provision direct links with that capability. Multiple- MacsecCapabilityvalues may be listed.- Possible values: number of items ≥ 1 
- The name of the Router. Examples:- xcr01.dal03 
- Count of existing Direct Link Dedicated gateways on this router for this account. Examples:- 1
 
List of cross connect router details.
- Array of Routers for this location. - cross_connect_routers
- List of capabilities for this router. - Listed - MacsecCapabilityvalues indicate the router is associated with switch ports with that capability, and is able to provision direct links with that capability. Multiple- MacsecCapabilityvalues may be listed.- Possible values: number of items ≥ 1 
- The name of the Router. Examples:- xcr01.dal03 
- Count of existing Direct Link Dedicated gateways on this router for this account. Examples:- 1
 
List of cross connect router details.
- Array of Routers for this location. - cross_connect_routers
- List of capabilities for this router. - Listed - MacsecCapabilityvalues indicate the router is associated with switch ports with that capability, and is able to provision direct links with that capability. Multiple- MacsecCapabilityvalues may be listed.- Possible values: number of items ≥ 1 
- The name of the Router. Examples:- xcr01.dal03 
- Count of existing Direct Link Dedicated gateways on this router for this account. Examples:- 1
 
List of cross connect router details.
- Array of Routers for this location. - CrossConnectRouters
- List of capabilities for this router. - Listed - MacsecCapabilityvalues indicate the router is associated with switch ports with that capability, and is able to provision direct links with that capability. Multiple- MacsecCapabilityvalues may be listed.- Possible values: number of items ≥ 1 
- The name of the Router. Examples:- xcr01.dal03 
- Count of existing Direct Link Dedicated gateways on this router for this account. Examples:- 1
 
Status Code
- The location information was retrieved successfully. 
- A location information with the specified identifier could not be found. 
- { "cross_connect_routers": [ { "capbilities": [ "macsec", "non-macsec" ], "router_name": "xcr01.dal03", "total_connections": 1 } ] }
- { "cross_connect_routers": [ { "capbilities": [ "macsec", "non-macsec" ], "router_name": "xcr01.dal03", "total_connections": 1 } ] }
- { "errors": [ { "code": "not_found", "message": "Location not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Location not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List speed options
List the available Direct Link speeds.
List the available Direct Link speeds.
List the available Direct Link speeds.
List the available Direct Link speeds.
List the available Direct Link speeds.
GET /offering_types/{offering_type}/speedsServiceCall<OfferingSpeedCollection> listOfferingTypeSpeeds(ListOfferingTypeSpeedsOptions listOfferingTypeSpeedsOptions)listOfferingTypeSpeeds(params)
list_offering_type_speeds(
        self,
        offering_type: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListOfferingTypeSpeeds(listOfferingTypeSpeedsOptions *ListOfferingTypeSpeedsOptions) (result *OfferingSpeedCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListOfferingTypeSpeedsWithContext(ctx context.Context, listOfferingTypeSpeedsOptions *ListOfferingTypeSpeedsOptions) (result *OfferingSpeedCollection, response *core.DetailedResponse, err error)
Request
Use the ListOfferingTypeSpeedsOptions.Builder to create a ListOfferingTypeSpeedsOptions object that contains the parameter values for the listOfferingTypeSpeeds method.
Instantiate the ListOfferingTypeSpeedsOptions struct and set the fields to provide parameter values for the ListOfferingTypeSpeeds method.
Path Parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]- Example: - dedicated
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The listOfferingTypeSpeeds options.
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:- dedicated 
parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:
parameters
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListOfferingTypeSpeeds options.
- The Direct Link offering type. Current supported values are - "dedicated"and- "connect".- Allowable values: [ - dedicated,- connect]Examples:- dedicated 
- curl -X GET https://$DL_ENDPOINT/v1/offering_types/dedicated/speeds?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { offeringType: 'dedicated', }; let res; try { res = await directLinkService.listOfferingTypeSpeeds(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- ListOfferingTypeSpeedsOptions listOfferingTypeSpeedsOptions = new ListOfferingTypeSpeedsOptions.Builder() .offeringType("dedicated") .build(); Response<OfferingSpeedCollection> response = directLinkService.listOfferingTypeSpeeds(listOfferingTypeSpeedsOptions).execute(); OfferingSpeedCollection offeringSpeedCollection = response.getResult(); System.out.println(offeringSpeedCollection);
- listOfferingTypeSpeedsOptions := directLinkService.NewListOfferingTypeSpeedsOptions( "dedicated", ) offeringSpeedCollection, response, err := directLinkService.ListOfferingTypeSpeeds(listOfferingTypeSpeedsOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(offeringSpeedCollection, "", " ") fmt.Println(string(b))
- response = direct_link_service.list_offering_type_speeds( offering_type='dedicated', ) offering_speed_collection = response.get_result() print(json.dumps(offering_speed_collection, indent=2))
Response
List of speeds
- speed list 
List of speeds.
- speed list. - speeds
- Array of capabilities for billing option. Examples:- [ "metered", "unmetered" ]
- Link speed in megabits per second. Examples:- 2000
- Indicate whether speed supports MACsec. Only returned for gateway type=dedicated speeds. Examples:- false
 
List of speeds.
- speed list. - speeds
- Array of capabilities for billing option. Examples:- [ "metered", "unmetered" ]
- Link speed in megabits per second. Examples:- 2000
- Indicate whether speed supports MACsec. Only returned for gateway type=dedicated speeds. Examples:- false
 
List of speeds.
- speed list. - speeds
- Array of capabilities for billing option. Examples:- [ "metered", "unmetered" ]
- Link speed in megabits per second. Examples:- 2000
- Indicate whether speed supports MACsec. Only returned for gateway type=dedicated speeds. Examples:- false
 
List of speeds.
- speed list. - Speeds
- Array of capabilities for billing option. Examples:- [ "metered", "unmetered" ]
- Link speed in megabits per second. Examples:- 2000
- Indicate whether speed supports MACsec. Only returned for gateway type=dedicated speeds. Examples:- false
 
Status Code
- The Direct Link offering speeds were retrieved successfully. 
- The Direct Link offering speeds could not be retrieved for the offering type. 
- A Direct Link offering speed with the specified offering type could not be found. 
- { "speeds": [ { "capabilities": [ "metered", "non-metered" ], "link_speed": 2000, "macsec_enabled": false } ] }
- { "speeds": [ { "capabilities": [ "metered", "non-metered" ], "link_speed": 2000, "macsec_enabled": false } ] }
- { "errors": [ { "code": "bad_request", "message": "Required Parameter missing", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "bad_request", "message": "Required Parameter missing", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling", "target": { "name": "name", "type": "field" } } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find OfferingType", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Cannot find OfferingType", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
List ports
Retrieve list of available Direct Link connect ports. These ports can be used to create Direct Link connect gateways.
Retrieve list of available Direct Link connect ports. These ports can be used to create Direct Link connect gateways.
Retrieve list of available Direct Link connect ports. These ports can be used to create Direct Link connect gateways.
Retrieve list of available Direct Link connect ports. These ports can be used to create Direct Link connect gateways.
Retrieve list of available Direct Link connect ports. These ports can be used to create Direct Link connect gateways.
GET /ports
ServiceCall<PortCollection> listPorts(ListPortsOptions listPortsOptions)listPorts(params)
list_ports(
        self,
        *,
        start: Optional[str] = None,
        limit: Optional[int] = None,
        location_name: Optional[str] = None,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) ListPorts(listPortsOptions *ListPortsOptions) (result *PortCollection, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) ListPortsWithContext(ctx context.Context, listPortsOptions *ListPortsOptions) (result *PortCollection, response *core.DetailedResponse, err error)
Request
Use the ListPortsOptions.Builder to create a ListPortsOptions object that contains the parameter values for the listPorts method.
Instantiate the ListPortsOptions struct and set the fields to provide parameter values for the ListPorts method.
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
- A server-supplied token determining which resource to start the page on - Possible values: 1 ≤ length ≤ 512, Value must match regular expression - ^[ -~]+$
- The number of resources to return on a page - Possible values: 1 ≤ value ≤ 100 - Default: - 50
- Direct Link location short name 
The listPorts options.
- A server-supplied token determining which resource to start the page on. - Possible values: 1 ≤ length ≤ 512, Value must match regular expression - /^[ -~]+$/
- The number of resources to return on a page. - Possible values: 1 ≤ value ≤ 100 - Default: - 50Examples:- 10
- Direct Link location short name. 
parameters
- A server-supplied token determining which resource to start the page on. - Possible values: 1 ≤ length ≤ 512, Value must match regular expression - /^[ -~]+$/
- The number of resources to return on a page. - Possible values: 1 ≤ value ≤ 100 - Default: - 50
- Direct Link location short name. 
parameters
- A server-supplied token determining which resource to start the page on. - Possible values: 1 ≤ length ≤ 512, Value must match regular expression - /^[ -~]+$/
- The number of resources to return on a page. - Possible values: 1 ≤ value ≤ 100 - Default: - 50
- Direct Link location short name. 
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The ListPorts options.
- A server-supplied token determining which resource to start the page on. - Possible values: 1 ≤ length ≤ 512, Value must match regular expression - /^[ -~]+$/
- The number of resources to return on a page. - Possible values: 1 ≤ value ≤ 100 - Default: - 50Examples:- 10
- Direct Link location short name. 
- curl -X GET https://$DL_ENDPOINT/v1/ports?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { limit: 10, locationName: 'testString', }; const allResults = []; try { const pager = new DirectLinkV1.PortsPager(directLinkService, params); while (pager.hasNext()) { const nextPage = await pager.getNext(); expect(nextPage).not.toBeNull(); allResults.push(...nextPage); } console.log(JSON.stringify(allResults, null, 2)); } catch (err) { console.warn(err); }
- ListPortsOptions listPortsOptions = new ListPortsOptions.Builder() .limit(Long.valueOf("10")) .locationName("testString") .build(); PortsPager pager = new PortsPager(directLinkService, listPortsOptions); List<Port> allResults = new ArrayList<>(); while (pager.hasNext()) { List<Port> nextPage = pager.getNext(); allResults.addAll(nextPage); } System.out.println(GsonSingleton.getGson().toJson(allResults));
- listPortsOptions := &directlinkv1.ListPortsOptions{ Limit: core.Int64Ptr(int64(10)), LocationName: core.StringPtr("testString"), } pager, err := directLinkService.NewPortsPager(listPortsOptions) if err != nil { panic(err) } var allResults []directlinkv1.Port for pager.HasNext() { nextPage, err := pager.GetNext() if err != nil { panic(err) } allResults = append(allResults, nextPage...) } b, _ := json.MarshalIndent(allResults, "", " ") fmt.Println(string(b))
- all_results = [] pager = PortsPager( client=direct_link_service, limit=10, location_name='testString', ) while pager.has_next(): next_page = pager.get_next() assert next_page is not None all_results.extend(next_page) print(json.dumps(all_results, indent=2))
Response
List of port label details
- A reference to the first page of resources - first
- The URL for the first page of resources - Possible values: Value must match regular expression - ^http(s)?:\/\/([^\/?#]*)([^?#]*)(\?([^#]*))?(#(.*))?$- Example: - https://directlink.cloud.ibm.com/v1/ports?limit=100
 
- The maximum number of resources can be returned by the request - Possible values: 1 ≤ value ≤ 200 - Example: - 100
- The total number of resources across all pages - Possible values: value ≥ 0 - Example: - 132
- A reference to the next page of resources; this reference is included for all pages except the last page - next
- URL for the next page of resources - Possible values: Value must match regular expression - ^http(s)?:\/\/([^\/?#]*)([^?#]*)(\?([^#]*))?(#(.*))?$- Example: - https://directlink.cloud.ibm.com/v1/ports?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=100
- start token for the next page of resources - Example: - 9d5a91a3e2cbd233b5a5b33436855ed1
 
- Array of ports 
List of port label details.
- A reference to the first page of resources. - first
- The URL for the first page of resources. - Possible values: Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://directlink.cloud.ibm.com/v1/ports?limit=100
 
- The maximum number of resources can be returned by the request. - Possible values: 1 ≤ value ≤ 200 Examples:- 100
- A reference to the next page of resources; this reference is included for all pages except the last page. - next
- URL for the next page of resources. - Possible values: Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://directlink.cloud.ibm.com/v1/ports?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=100
- start token for the next page of resources. Examples:- 9d5a91a3e2cbd233b5a5b33436855ed1
 
- The total number of resources across all pages. - Possible values: value ≥ 0 Examples:- 132
- Array of ports. - ports
- Count of existing Direct Link gateways in this account on this port. Examples:- 1
- Port identifier. Examples:- 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label. Examples:- XCR-FRK-CS-SEC-01
- Port location long name. Examples:- Dallas 03
- Port location name identifier. Examples:- dal03 
- Port's provider name. - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - /^([_a-z0-9]+)$/Examples:- provider_1 
- Port's supported speeds in megabits per second. Examples:- [ 1000, 2000, 5000, 10000 ]
 
List of port label details.
- A reference to the first page of resources. - first
- The URL for the first page of resources. - Possible values: Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://directlink.cloud.ibm.com/v1/ports?limit=100
 
- The maximum number of resources can be returned by the request. - Possible values: 1 ≤ value ≤ 200 Examples:- 100
- A reference to the next page of resources; this reference is included for all pages except the last page. - next
- URL for the next page of resources. - Possible values: Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://directlink.cloud.ibm.com/v1/ports?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=100
- start token for the next page of resources. Examples:- 9d5a91a3e2cbd233b5a5b33436855ed1
 
- The total number of resources across all pages. - Possible values: value ≥ 0 Examples:- 132
- Array of ports. - ports
- Count of existing Direct Link gateways in this account on this port. Examples:- 1
- Port identifier. Examples:- 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label. Examples:- XCR-FRK-CS-SEC-01
- Port location long name. Examples:- Dallas 03
- Port location name identifier. Examples:- dal03 
- Port's provider name. - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - /^([_a-z0-9]+)$/Examples:- provider_1 
- Port's supported speeds in megabits per second. Examples:- [ 1000, 2000, 5000, 10000 ]
 
List of port label details.
- A reference to the first page of resources. - first
- The URL for the first page of resources. - Possible values: Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://directlink.cloud.ibm.com/v1/ports?limit=100
 
- The maximum number of resources can be returned by the request. - Possible values: 1 ≤ value ≤ 200 Examples:- 100
- A reference to the next page of resources; this reference is included for all pages except the last page. - next
- URL for the next page of resources. - Possible values: Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://directlink.cloud.ibm.com/v1/ports?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=100
- start token for the next page of resources. Examples:- 9d5a91a3e2cbd233b5a5b33436855ed1
 
- The total number of resources across all pages. - Possible values: value ≥ 0 Examples:- 132
- Array of ports. - ports
- Count of existing Direct Link gateways in this account on this port. Examples:- 1
- Port identifier. Examples:- 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label. Examples:- XCR-FRK-CS-SEC-01
- Port location long name. Examples:- Dallas 03
- Port location name identifier. Examples:- dal03 
- Port's provider name. - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - /^([_a-z0-9]+)$/Examples:- provider_1 
- Port's supported speeds in megabits per second. Examples:- [ 1000, 2000, 5000, 10000 ]
 
List of port label details.
- A reference to the first page of resources. - First
- The URL for the first page of resources. - Possible values: Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://directlink.cloud.ibm.com/v1/ports?limit=100
 
- The maximum number of resources can be returned by the request. - Possible values: 1 ≤ value ≤ 200 Examples:- 100
- A reference to the next page of resources; this reference is included for all pages except the last page. - Next
- URL for the next page of resources. - Possible values: Value must match regular expression - /^http(s)?:\/\/([^\/?#]*)([^?#]*)(\\?([^#]*))?(#(.*))?$/Examples:- https://directlink.cloud.ibm.com/v1/ports?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=100
- start token for the next page of resources. Examples:- 9d5a91a3e2cbd233b5a5b33436855ed1
 
- The total number of resources across all pages. - Possible values: value ≥ 0 Examples:- 132
- Array of ports. - Ports
- Count of existing Direct Link gateways in this account on this port. Examples:- 1
- Port identifier. Examples:- 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label. Examples:- XCR-FRK-CS-SEC-01
- Port location long name. Examples:- Dallas 03
- Port location name identifier. Examples:- dal03 
- Port's provider name. - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - /^([_a-z0-9]+)$/Examples:- provider_1 
- Port's supported speeds in megabits per second. Examples:- [ 1000, 2000, 5000, 10000 ]
 
Status Code
- Ports retrieved successfully. 
- Port information could not be found. 
- { "first": { "href": "https://directlink.cloud.ibm.com/v1/ports?limit=100" }, "limit": 100, "ports": [ { "direct_link_count": 1, "id": "01122b9b-820f-4c44-8a31-77f1f0806765", "label": "XCR-FRK-CS-SEC-01", "location_display_name": "Dallas 03", "location_name": "dal03", "provider_name": "provider_1", "supported_link_speeds": [ 1000, 2000, 5000, 10000 ] } ], "total_count": 1 }
- { "first": { "href": "https://directlink.cloud.ibm.com/v1/ports?limit=100" }, "limit": 100, "ports": [ { "direct_link_count": 1, "id": "01122b9b-820f-4c44-8a31-77f1f0806765", "label": "XCR-FRK-CS-SEC-01", "location_display_name": "Dallas 03", "location_name": "dal03", "provider_name": "provider_1", "supported_link_speeds": [ 1000, 2000, 5000, 10000 ] } ], "total_count": 1 }
- { "errors": [ { "code": "not_found", "message": "Resource not found.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Resource not found.", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
Get port
Retrieve Direct Link Connect provider port.
Retrieve Direct Link Connect provider port.
Retrieve Direct Link Connect provider port.
Retrieve Direct Link Connect provider port.
Retrieve Direct Link Connect provider port.
GET /ports/{id}ServiceCall<Port> getPort(GetPortOptions getPortOptions)getPort(params)
get_port(
        self,
        id: str,
        **kwargs,
    ) -> DetailedResponse(directLink *DirectLinkV1) GetPort(getPortOptions *GetPortOptions) (result *Port, response *core.DetailedResponse, err error)
(directLink *DirectLinkV1) GetPortWithContext(ctx context.Context, getPortOptions *GetPortOptions) (result *Port, response *core.DetailedResponse, err error)
Request
Use the GetPortOptions.Builder to create a GetPortOptions object that contains the parameter values for the getPort method.
Instantiate the GetPortOptions struct and set the fields to provide parameter values for the GetPort method.
Path Parameters
- The port identifier - Possible values: length = 36, Value must match regular expression - ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$- Example: - 0a06fb9b-820f-4c44-8a31-77f1f0806d28
Query Parameters
- Requests the version of the API as a date in the format - YYYY-MM-DD. Any date from 2019-12-13 up to the current date may be provided. Specify the current date to request the latest version.- Possible values: length = 10, Value must match regular expression - ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
The getPort options.
- The port identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
parameters
- The port identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
parameters
- The port identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:
WithContext method only
- A context.Context instance that you can use to specify a timeout for the operation or to cancel an in-flight request. 
The GetPort options.
- The port identifier. - Possible values: length = 36, Value must match regular expression - /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/Examples:- 0a06fb9b-820f-4c44-8a31-77f1f0806d28
- curl -X GET https://$DL_ENDPOINT/v1/ports/$PORT_ID?version=2019-12-13 -H "authorization: Bearer $IAM_TOKEN"
- const params = { id: '0a06fb9b-820f-4c44-8a31-77f1f0806d28', }; let res; try { res = await directLinkService.getPort(params); console.log(JSON.stringify(res.result, null, 2)); } catch (err) { console.warn(err); }
- GetPortOptions getPortOptions = new GetPortOptions.Builder() .id("0a06fb9b-820f-4c44-8a31-77f1f0806d28") .build(); Response<Port> response = directLinkService.getPort(getPortOptions).execute(); Port port = response.getResult(); System.out.println(port);
- getPortOptions := directLinkService.NewGetPortOptions( "0a06fb9b-820f-4c44-8a31-77f1f0806d28", ) port, response, err := directLinkService.GetPort(getPortOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(port, "", " ") fmt.Println(string(b))
- response = direct_link_service.get_port( id='0a06fb9b-820f-4c44-8a31-77f1f0806d28', ) port = response.get_result() print(json.dumps(port, indent=2))
Response
Provider port details
- Count of existing Direct Link gateways in this account on this port. - Example: - 1
- Port identifier - Example: - 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label - Example: - XCR-FRK-CS-SEC-01
- Port location long name - Example: - Dallas 03
- Port location name identifier - Example: - dal03
- Port's provider name - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - ^([_a-z0-9]+)$- Example: - provider_1
- Port's supported speeds in megabits per second Examples:- [ 1000, 2000, 5000, 10000 ]
Provider port details.
- Count of existing Direct Link gateways in this account on this port. Examples:- 1
- Port identifier. Examples:- 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label. Examples:- XCR-FRK-CS-SEC-01
- Port location long name. Examples:- Dallas 03
- Port location name identifier. Examples:- dal03 
- Port's provider name. - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - /^([_a-z0-9]+)$/Examples:- provider_1 
- Port's supported speeds in megabits per second. Examples:- [ 1000, 2000, 5000, 10000 ]
Provider port details.
- Count of existing Direct Link gateways in this account on this port. Examples:- 1
- Port identifier. Examples:- 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label. Examples:- XCR-FRK-CS-SEC-01
- Port location long name. Examples:- Dallas 03
- Port location name identifier. Examples:- dal03 
- Port's provider name. - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - /^([_a-z0-9]+)$/Examples:- provider_1 
- Port's supported speeds in megabits per second. Examples:- [ 1000, 2000, 5000, 10000 ]
Provider port details.
- Count of existing Direct Link gateways in this account on this port. Examples:- 1
- Port identifier. Examples:- 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label. Examples:- XCR-FRK-CS-SEC-01
- Port location long name. Examples:- Dallas 03
- Port location name identifier. Examples:- dal03 
- Port's provider name. - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - /^([_a-z0-9]+)$/Examples:- provider_1 
- Port's supported speeds in megabits per second. Examples:- [ 1000, 2000, 5000, 10000 ]
Provider port details.
- Count of existing Direct Link gateways in this account on this port. Examples:- 1
- Port identifier. Examples:- 01122b9b-820f-4c44-8a31-77f1f0806765
- Port Label. Examples:- XCR-FRK-CS-SEC-01
- Port location long name. Examples:- Dallas 03
- Port location name identifier. Examples:- dal03 
- Port's provider name. - Possible values: 1 ≤ length ≤ 24, Value must match regular expression - /^([_a-z0-9]+)$/Examples:- provider_1 
- Port's supported speeds in megabits per second. Examples:- [ 1000, 2000, 5000, 10000 ]
Status Code
- Port retrieved successfully. 
- Port not be found. 
- { "direct_link_count": 1, "id": "01122b9b-820f-4c44-8a31-77f1f0806765", "label": "XCR-FRK-CS-SEC-01", "location_display_name": "Dallas 03", "location_name": "dal03", "provider_name": "provider_1", "supported_link_speeds": [ 1000, 2000, 5000, 10000 ] }
- { "direct_link_count": 1, "id": "01122b9b-820f-4c44-8a31-77f1f0806765", "label": "XCR-FRK-CS-SEC-01", "location_display_name": "Dallas 03", "location_name": "dal03", "provider_name": "provider_1", "supported_link_speeds": [ 1000, 2000, 5000, 10000 ] }
- { "errors": [ { "code": "not_found", "message": "Resource not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }
- { "errors": [ { "code": "not_found", "message": "Resource not found", "more_info": "https://cloud.ibm.com/apidocs/direct_link#error-handling" } ], "trace": "03391bce-b650-475a-96b8-e47e70d93e54" }