PARTNERS

configureAmazonEC2IntegrationUsingCrossAccountRole

This method configures the Amazon EC2 integration using the provided Amazon Resource Name of a valid AWS Cross-Account Role.

For details regarding the integration steps, refer to this KB article.

Parameters

Parameter

Type

Optional

Description

crossAccountRoleArn

String

No

The Amazon Resource Name of a valid AWS Cross-Account Role

companyId

String

Yes

The ID of the target company. The default value is the ID of the company linked to the user who generated the API key.

Return value

This method does not return any value.

Example

Request:

  {
       "params": {
           "companyId"           : "55115935b1a43dcc4a7b23c6",
           "crossAccountRoleArn" :
                       "arn:aws:iam::111222345123:role/test"
       },
       "jsonrpc": "2.0",
       "method":
           "configureAmazonEC2IntegrationUsingCrossAccountRole",
       "id": "5c6df60c-786a-4ea3-8ff3-b6e52b42aa46"
  }  

Response:

  {
      "id": "5c6df60c-786a-4ea3-8ff3-b6e52b42aa46",
      "jsonrpc":"2.0",
      "result": null
  }