operations
Creates, updates, deletes, gets or lists an operations resource.
Overview
| Name | operations |
| Type | Resource |
| Id | aws.servicediscovery.operations |
Fields
The following fields are returned by SELECT queries:
- get_operation
- list_operations
| Name | Datatype | Description |
|---|---|---|
create_date | string (date-time) | The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. |
error_code | string | The code associated with ErrorMessage. Values for ErrorCode include the following: ACCESS_DENIED CANNOT_CREATE_HOSTED_ZONE EXPIRED_TOKEN HOSTED_ZONE_NOT_FOUND INTERNAL_FAILURE INVALID_CHANGE_BATCH THROTTLED_REQUEST |
error_message | string | If the value of Status is FAIL, the reason that the operation failed. |
id | string | The ID of the operation that you want to get information about. |
owner_account | string | The ID of the Amazon Web Services account that owns the namespace associated with the operation. |
status | string | The status of the operation. Values include the following: SUBMITTED This is the initial state that occurs immediately after you submit a request. PENDING Cloud Map is performing the operation. SUCCESS The operation succeeded. FAIL The operation failed. For the failure reason, see ErrorMessage. (SUBMITTED, PENDING, SUCCESS, FAIL) |
targets | object | The name of the target entity that's associated with the operation: NAMESPACE The namespace ID is returned in the ResourceId property. SERVICE The service ID is returned in the ResourceId property. INSTANCE The instance ID is returned in the ResourceId property. |
type | string | The name of the operation that's associated with the specified ID. (CREATE_NAMESPACE, DELETE_NAMESPACE, UPDATE_NAMESPACE, UPDATE_SERVICE, REGISTER_INSTANCE, DEREGISTER_INSTANCE) |
update_date | string (date-time) | The date and time that the value of Status changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of UpdateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. |
| Name | Datatype | Description |
|---|---|---|
id | string | The ID for an operation. |
status | string | The status of the operation. Values include the following: SUBMITTED: This is the initial state immediately after you submit a request. PENDING: Cloud Map is performing the operation. SUCCESS: The operation succeeded. FAIL: The operation failed. For the failure reason, see ErrorMessage. (SUBMITTED, PENDING, SUCCESS, FAIL) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_operation | select | region | Gets information about any operation that returns an operation ID in the response, such as a CreateHttpNamespace request. To get a list of operations that match specified criteria, see ListOperations. | |
list_operations | select | region | Lists operations that match the criteria that you specify. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_operation
- list_operations
Gets information about any operation that returns an operation ID in the response, such as a CreateHttpNamespace request. To get a list of operations that match specified criteria, see ListOperations.
SELECT
create_date,
error_code,
error_message,
id,
owner_account,
status,
targets,
type,
update_date
FROM aws.servicediscovery.operations
WHERE region = '{{ region }}' -- required
;
Lists operations that match the criteria that you specify.
SELECT
id,
status
FROM aws.servicediscovery.operations
WHERE region = '{{ region }}' -- required
;