> For the complete documentation index, see [llms.txt](https://developers.incidents.cloud.solarwinds.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/sdks/statuspagesissues.md).

# StatusPages.Issues

## Overview

### Available Operations

* [list](#list) - List Issues
* [create](#create) - Create Issue
* [get\_by\_id](#get_by_id) - Get Issue By ID

## list

List Issues

### Example Usage

```python
from squadcast import SquadcastSDK


with SquadcastSDK(
    refresh_token_auth="<YOUR_REFRESH_TOKEN_AUTH_HERE>",
) as squadcast_sdk:

    res = squadcast_sdk.status_pages.issues.list(statuspage_id="<id>")

    # Handle response
    print(res)

```

### Parameters

| Parameter       | Type                                                                                                                           | Required             | Description                                                         |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------- |
| `statuspage_id` | *str*                                                                                                                          | :heavy\_check\_mark: | N/A                                                                 |
| `retries`       | [Optional\[utils.RetryConfig\]](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/utils/retryconfig.md) | :heavy\_minus\_sign: | Configuration to override the default retry behavior of the client. |

### Response

[**models.V4StatusPagesIssuesListIssuesResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/v4statuspagesissueslistissuesresponse.md)

### Errors

| Error Type                      | Status Code | Content Type     |
| ------------------------------- | ----------- | ---------------- |
| errors.BadRequestError          | 400         | application/json |
| errors.UnauthorizedError        | 401         | application/json |
| errors.PaymentRequiredError     | 402         | application/json |
| errors.ForbiddenError           | 403         | application/json |
| errors.NotFoundError            | 404         | application/json |
| errors.ConflictError            | 409         | application/json |
| errors.UnprocessableEntityError | 422         | application/json |
| errors.InternalServerError      | 500         | application/json |
| errors.BadGatewayError          | 502         | application/json |
| errors.ServiceUnavailableError  | 503         | application/json |
| errors.GatewayTimeoutError      | 504         | application/json |
| errors.SDKDefaultError          | 4XX, 5XX    | \*/\*            |

## create

Create Issue

### Example Usage

```python
from squadcast import SquadcastSDK


with SquadcastSDK(
    refresh_token_auth="<YOUR_REFRESH_TOKEN_AUTH_HERE>",
) as squadcast_sdk:

    res = squadcast_sdk.status_pages.issues.create(statuspage_id="<id>", title="<value>", components=[
        {},
    ], issues=[
        {},
    ])

    # Handle response
    print(res)

```

### Parameters

| Parameter       | Type                                                                                                                                                                                       | Required             | Description                                                         |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------- |
| `statuspage_id` | *str*                                                                                                                                                                                      | :heavy\_check\_mark: | N/A                                                                 |
| `title`         | *str*                                                                                                                                                                                      | :heavy\_check\_mark: | N/A                                                                 |
| `components`    | List\[[models.V4StatusPagesIssuesCreateIssueRequestComponent](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/v4statuspagesissuescreateissuerequestcomponent.md)] | :heavy\_check\_mark: | N/A                                                                 |
| `issues`        | List\[[models.V4StatusPagesIssuesCreateIssueRequestIssue](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/v4statuspagesissuescreateissuerequestissue.md)]         | :heavy\_check\_mark: | N/A                                                                 |
| `status_id`     | *Optional\[int]*                                                                                                                                                                           | :heavy\_minus\_sign: | N/A                                                                 |
| `retries`       | [Optional\[utils.RetryConfig\]](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/utils/retryconfig.md)                                                             | :heavy\_minus\_sign: | Configuration to override the default retry behavior of the client. |

### Response

[**models.IssuesCreateIssueResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/issuescreateissueresponse.md)

### Errors

| Error Type                      | Status Code | Content Type     |
| ------------------------------- | ----------- | ---------------- |
| errors.BadRequestError          | 400         | application/json |
| errors.UnauthorizedError        | 401         | application/json |
| errors.PaymentRequiredError     | 402         | application/json |
| errors.ForbiddenError           | 403         | application/json |
| errors.NotFoundError            | 404         | application/json |
| errors.ConflictError            | 409         | application/json |
| errors.UnprocessableEntityError | 422         | application/json |
| errors.InternalServerError      | 500         | application/json |
| errors.BadGatewayError          | 502         | application/json |
| errors.ServiceUnavailableError  | 503         | application/json |
| errors.GatewayTimeoutError      | 504         | application/json |
| errors.SDKDefaultError          | 4XX, 5XX    | \*/\*            |

## get\_by\_id

Get Issue By ID

### Example Usage

```python
from squadcast import SquadcastSDK


with SquadcastSDK(
    refresh_token_auth="<YOUR_REFRESH_TOKEN_AUTH_HERE>",
) as squadcast_sdk:

    res = squadcast_sdk.status_pages.issues.get_by_id(statuspage_id="<id>", issue_id="<id>")

    # Handle response
    print(res)

```

### Parameters

| Parameter       | Type                                                                                                                           | Required             | Description                                                         |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------- |
| `statuspage_id` | *str*                                                                                                                          | :heavy\_check\_mark: | N/A                                                                 |
| `issue_id`      | *str*                                                                                                                          | :heavy\_check\_mark: | N/A                                                                 |
| `retries`       | [Optional\[utils.RetryConfig\]](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/utils/retryconfig.md) | :heavy\_minus\_sign: | Configuration to override the default retry behavior of the client. |

### Response

[**models.IssuesGetIssueByIDResponse**](https://developers.incidents.cloud.solarwinds.com/python-sdk/docs/models/issuesgetissuebyidresponse.md)

### Errors

| Error Type                      | Status Code | Content Type     |
| ------------------------------- | ----------- | ---------------- |
| errors.BadRequestError          | 400         | application/json |
| errors.UnauthorizedError        | 401         | application/json |
| errors.PaymentRequiredError     | 402         | application/json |
| errors.ForbiddenError           | 403         | application/json |
| errors.NotFoundError            | 404         | application/json |
| errors.ConflictError            | 409         | application/json |
| errors.UnprocessableEntityError | 422         | application/json |
| errors.InternalServerError      | 500         | application/json |
| errors.BadGatewayError          | 502         | application/json |
| errors.ServiceUnavailableError  | 503         | application/json |
| errors.GatewayTimeoutError      | 504         | application/json |
| errors.SDKDefaultError          | 4XX, 5XX    | \*/\*            |
