incident_io_client.api.incident_attachments_v1.incident_attachments_v1_list
asyncio
async
asyncio(
*,
client: Union[AuthenticatedClient, Client],
incident_id: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
resource_type: Union[
Unset, IncidentAttachmentsV1ListResourceType
] = UNSET
) -> Optional[IncidentAttachmentsV1ListResponseBody]
List Incident Attachments V1
List all incident attachements for a given external resource or incident. You must provide either a specific incident ID or a specific external resource type and external ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
incident_id |
Union[Unset, str]
|
|
UNSET
|
external_id |
Union[Unset, str]
|
|
UNSET
|
resource_type |
Union[Unset, IncidentAttachmentsV1ListResourceType]
|
|
UNSET
|
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[IncidentAttachmentsV1ListResponseBody]
|
IncidentAttachmentsV1ListResponseBody |
Source code in incident_io_client/api/incident_attachments_v1/incident_attachments_v1_list.py
asyncio_detailed
async
asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
incident_id: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
resource_type: Union[
Unset, IncidentAttachmentsV1ListResourceType
] = UNSET
) -> Response[IncidentAttachmentsV1ListResponseBody]
List Incident Attachments V1
List all incident attachements for a given external resource or incident. You must provide either a specific incident ID or a specific external resource type and external ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
incident_id |
Union[Unset, str]
|
|
UNSET
|
external_id |
Union[Unset, str]
|
|
UNSET
|
resource_type |
Union[Unset, IncidentAttachmentsV1ListResourceType]
|
|
UNSET
|
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[IncidentAttachmentsV1ListResponseBody]
|
Response[IncidentAttachmentsV1ListResponseBody] |
Source code in incident_io_client/api/incident_attachments_v1/incident_attachments_v1_list.py
sync
sync(
*,
client: Union[AuthenticatedClient, Client],
incident_id: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
resource_type: Union[
Unset, IncidentAttachmentsV1ListResourceType
] = UNSET
) -> Optional[IncidentAttachmentsV1ListResponseBody]
List Incident Attachments V1
List all incident attachements for a given external resource or incident. You must provide either a specific incident ID or a specific external resource type and external ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
incident_id |
Union[Unset, str]
|
|
UNSET
|
external_id |
Union[Unset, str]
|
|
UNSET
|
resource_type |
Union[Unset, IncidentAttachmentsV1ListResourceType]
|
|
UNSET
|
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[IncidentAttachmentsV1ListResponseBody]
|
IncidentAttachmentsV1ListResponseBody |
Source code in incident_io_client/api/incident_attachments_v1/incident_attachments_v1_list.py
sync_detailed
sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
incident_id: Union[Unset, str] = UNSET,
external_id: Union[Unset, str] = UNSET,
resource_type: Union[
Unset, IncidentAttachmentsV1ListResourceType
] = UNSET
) -> Response[IncidentAttachmentsV1ListResponseBody]
List Incident Attachments V1
List all incident attachements for a given external resource or incident. You must provide either a specific incident ID or a specific external resource type and external ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
incident_id |
Union[Unset, str]
|
|
UNSET
|
external_id |
Union[Unset, str]
|
|
UNSET
|
resource_type |
Union[Unset, IncidentAttachmentsV1ListResourceType]
|
|
UNSET
|
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[IncidentAttachmentsV1ListResponseBody]
|
Response[IncidentAttachmentsV1ListResponseBody] |