incident_io_client.api.incidents_v2.incidents_v2_show
asyncio
async
asyncio(
id: str, *, client: Union[AuthenticatedClient, Client]
) -> Optional[IncidentsV2ShowResponseBody]
Show Incidents V2
Get a single incident.
The ID supplied can be either the incident's full ID, or the numeric part of its reference. For example, to get INC-123, you could use either its full ID or:
curl \
--get 'https://api.incident.io/v2/incidents/123
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[IncidentsV2ShowResponseBody]
|
IncidentsV2ShowResponseBody |
Source code in incident_io_client/api/incidents_v2/incidents_v2_show.py
asyncio_detailed
async
asyncio_detailed(
id: str, *, client: Union[AuthenticatedClient, Client]
) -> Response[IncidentsV2ShowResponseBody]
Show Incidents V2
Get a single incident.
The ID supplied can be either the incident's full ID, or the numeric part of its reference. For example, to get INC-123, you could use either its full ID or:
curl \
--get 'https://api.incident.io/v2/incidents/123
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[IncidentsV2ShowResponseBody]
|
Response[IncidentsV2ShowResponseBody] |
Source code in incident_io_client/api/incidents_v2/incidents_v2_show.py
sync
sync(
id: str, *, client: Union[AuthenticatedClient, Client]
) -> Optional[IncidentsV2ShowResponseBody]
Show Incidents V2
Get a single incident.
The ID supplied can be either the incident's full ID, or the numeric part of its reference. For example, to get INC-123, you could use either its full ID or:
curl \
--get 'https://api.incident.io/v2/incidents/123
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[IncidentsV2ShowResponseBody]
|
IncidentsV2ShowResponseBody |
Source code in incident_io_client/api/incidents_v2/incidents_v2_show.py
sync_detailed
sync_detailed(
id: str, *, client: Union[AuthenticatedClient, Client]
) -> Response[IncidentsV2ShowResponseBody]
Show Incidents V2
Get a single incident.
The ID supplied can be either the incident's full ID, or the numeric part of its reference. For example, to get INC-123, you could use either its full ID or:
curl \
--get 'https://api.incident.io/v2/incidents/123
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[IncidentsV2ShowResponseBody]
|
Response[IncidentsV2ShowResponseBody] |