Skip to content

list_storage_profiles

list_storage_profiles(
    farm_id: FarmId,
    *,
    config_overrides: Optional[deadlineClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListStorageProfilesResponse

Lists storage profiles.

Parameters:

  • farm_id (FarmId) –

    The farm ID of the storage profile.

  • next_token (Optional[NextToken], default: None ) –

    The token for the next set of results, or null to start from the beginning.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

Raises:

Source code in docs_src/capo_deadline/_services/deadline.py
def list_storage_profiles(
    self,
    farm_id: "capo_deadline.types.farm_id.FarmId",
    *,
    config_overrides: Optional[deadlineClientConfig] = None,
    next_token: Optional["capo_deadline.types.next_token.NextToken"] = None,
    max_results: Optional["capo_deadline.types.max_results.MaxResults"] = None,
) -> (
    "capo_deadline.types.list_storage_profiles_response.ListStorageProfilesResponse"
):
    """<p>Lists storage profiles.</p>

    Args:
        farm_id: <p>The farm ID of the storage profile.</p>
        next_token: <p>The token for the next set of results, or <code>null</code> to start from the beginning.</p>
        max_results: <p>The maximum number of results to return. Use this parameter with <code>NextToken</code> to get results as a set of sequential pages.</p>

    Raises:
        capo_deadline.errors.access_denied_exception.AccessDeniedException: <p>You don't have permission to perform the action.</p>
        capo_deadline.errors.internal_server_error_exception.InternalServerErrorException: <p>Deadline Cloud can't process your request right now. Try again later.</p>
        capo_deadline.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource can't be found.</p>
        capo_deadline.errors.throttling_exception.ThrottlingException: <p>Your request exceeded a request rate quota.</p>
        capo_deadline.errors.validation_exception.ValidationException: <p>The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.</p>
        capo_deadline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_deadline.types.list_storage_profiles_request.ListStorageProfilesRequest]",
    ) -> OperationResponse[
        "capo_deadline.types.list_storage_profiles_response.ListStorageProfilesResponse"
    ]:
        import capo_deadline._operations.deadline.list_storage_profiles

        output, http_response = (
            capo_deadline._operations.deadline.list_storage_profiles.list_storage_profiles(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListStorageProfiles")
    )
    input_: capo_deadline.types.list_storage_profiles_request.ListStorageProfilesRequest = {
        "farm_id": farm_id
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output