Quicksight API for Refreshing a dataset

0

Is there a quicksight api (REST or any other) available to refresh a dataset? I looked at the API reference guide and did not find on to refresh a dataset. There are API's available to create/update/delete datasets, but none to refresh it:

https://docs.aws.amazon.com/quicksight/latest/APIReference/qs-data.html#qs-datasets

Any help would be appreciated.

질문됨 2년 전4431회 조회
2개 답변
2

It isn't listed in the API guide link above but try -

$ aws quicksight create-ingestion help

NAME create-ingestion -

DESCRIPTION Creates and starts a new SPICE ingestion on a dataset

This blog - https://aws.amazon.com/blogs/big-data/event-driven-refresh-of-spice-datasets-in-amazon-quicksight/, has the following snippet in the Cloud Formation Template .

      def create_ingestion(account_id, data_set_ids):
          logger.info('Creating the SPICE ingestions')

          for data_set_id in data_set_ids:
              dt_string = datetime.now().strftime("%Y%m%d-%H%M%S")
              ingestion_id = dt_string + '-' + data_set_id

              try:
                  response = quicksight.create_ingestion(AwsAccountId=account_id, DataSetId=data_set_id,
                                                          IngestionId=ingestion_id)

                  logger.info('Created ingestion for dataset {} with an ingestion id of {}.'.format(data_set_id, ingestion_id))

              except quicksight.exceptions.ResourceNotFoundException as rnfe:
                  logger.error('Dataset with id {} not found. {}'.format(data_set_id, rnfe))
                  return False
profile pictureAWS
Chris_P
답변함 2년 전
  • please see the other answer for details on the API reference

0

it is available here - https://docs.aws.amazon.com/quicksight/latest/APIReference/qs-data.html. (under "QuickSight API Operations to Refresh SPICE Data (SPICE Ingestion)" section )

AWS
Alex_T
답변함 2년 전
AWS
전문가
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠