# Status check with API

**URL:** <https://community.amazonquick.com/t/status-check-with-api/13553>\
**Category:** Q&A\
**Tags:** api, developer, quick-sight\
**Created:** [May 17, 2023, 8:30am UTC](https://community.amazonquick.com/t/status-check-with-api/13553 "2023-05-17T08:30:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![liwmin](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@liwmin](https://community.amazonquick.com/u/liwmin)\
**Post date:** [May 17, 2023, 8:30am UTC](https://community.amazonquick.com/t/status-check-with-api/13553/1 "2023-05-17T08:30:11Z")

</div>

Is there any method to check a dataset/analysis/dashboard is create completed with API?

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [May 17, 2023, 8:59am UTC](https://community.amazonquick.com/t/status-check-with-api/13553/2 "2023-05-17T08:59:35Z")

</div>

Hi @liwmin - When you are creating data set by API, it should have a response and in that status is there, if the status is 200 it means it is success.

For data set, please see the below link.

[QuickSight — Boto3 Docs 1.16.43 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.16.43/reference/services/quicksight.html#Quick) Sight.Client.create\_data\_set

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![liwmin](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@liwmin](https://community.amazonquick.com/u/liwmin)\
**Post date:** [May 17, 2023, 11:25pm UTC](https://community.amazonquick.com/t/status-check-with-api/13553/3 "2023-05-17T23:25:05Z")

</div>

Thanks Sanjeeb.

I found in some cases, although the status returns 200 (I think it means the HTTP request is return 200) the data source itself still in CREATION\_FAILED 0r CREATION\_IN\_PROGRESS state . The DescribeXXX API doesn’t return the status of the template/datasource and so on. API don’t return this status, but we can use CLI to check this status. I can’t find method to confirm the real status of these resources.

An example of check data source status with CLI:

```auto
aws quicksight describe-data-source --aws-account-id xxxxxxxxxxxx --region us-east-1 --data-source-id xxxxxxxxxx
{
    "Status": 200,
    "DataSource": {
        "Arn": "hhhhhhhhhhhhhhhhh",
        "DataSourceId": "xxxxxxxxxxx",
        "Name": "xxxxxxx",
        "Type": "REDSHIFT",
        "Status": "CREATION_SUCCESSFUL",
        "CreatedTime": "2023-05-17T10:33:17.033000+00:00",
        "LastUpdatedTime": "2023-05-17T10:33:17.414000+00:00",
        "DataSourceParameters": {
            "RedshiftParameters": {
                "Host": "zzzzzzzzzzzzzzz",
                "Port": 5439,
                "Database": "nnnnnnn"
            }
        },
        "VpcConnectionProperties": {
            "VpcConnectionArn": "xxxxxxxx"
        },
        "SslProperties": {
            "DisableSsl": false
        }
    },
    "RequestId": "28a9d229-40d9-4f1d-af7d-3bed6f00f7e1"
}

```

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [June 1, 2023, 8:55pm UTC](https://community.amazonquick.com/t/status-check-with-api/13553/4 "2023-06-01T20:55:13Z")

</div>

Hi @liwmin - The status - CREATION\_SUCESSFUL means the data source is created successful. You can validate it in Quick Sight UI as well.

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![David\_Wong](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/david_wong/32/15630_2.png) [@David\_Wong](https://community.amazonquick.com/u/David_Wong)\
**Post date:** [June 1, 2023, 9:26pm UTC](https://community.amazonquick.com/t/status-check-with-api/13553/5 "2023-06-01T21:26:52Z")

</div>

Hi @Sanjeeb2022,

> When you are creating data set by API, it should have a response and in that status is there, if the status is 200 it means it is success.

The status 201 that you get when using the API to create a dataset just tells you the request was successful. It doesn’t actually mean Quick Sight has finished creating it. You get status 201 right away but creation of the dataset could finish minutes later. It may even fail if it runs into other issues.

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [June 1, 2023, 9:42pm UTC](https://community.amazonquick.com/t/status-check-with-api/13553/6 "2023-06-01T21:42:12Z")

</div>

Thanks @David_Wong for the insights.

Regards - Sanjeeb
