Skip to content

Gets information about any operation that returns an operation ID in the response, such as a CreateHttpNamespace request

Description

Gets information about any operation that returns an operation ID in the response, such as a create_http_namespace request.

To get a list of operations that match specified criteria, see list_operations.

Usage

servicediscovery_get_operation(OperationId, OwnerAccount)

Arguments

  • OperationId

    [required] The ID of the operation that you want to get more information about.

  • OwnerAccount

    The ID of the Amazon Web Services account that owns the namespace associated with the operation, as specified in the namespace ResourceOwner field. For operations associated with namespaces that are shared with your account, you must specify an OwnerAccount.

Value

A list with the following syntax:

list(
  Operation = list(
    Id = "string",
    OwnerAccount = "string",
    Type = "CREATE_NAMESPACE"|"DELETE_NAMESPACE"|"UPDATE_NAMESPACE"|"UPDATE_SERVICE"|"REGISTER_INSTANCE"|"DEREGISTER_INSTANCE",
    Status = "SUBMITTED"|"PENDING"|"SUCCESS"|"FAIL",
    ErrorMessage = "string",
    ErrorCode = "string",
    CreateDate = as.POSIXct(
      "2015-01-01"
    ),
    UpdateDate = as.POSIXct(
      "2015-01-01"
    ),
    Targets = list(
      "string"
    )
  )
)

Request syntax

svc$get_operation(
  OperationId = "string",
  OwnerAccount = "string"
)

Examples

# Example: Get operation result
svc$get_operation(
  OperationId = "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd"
)