<jupyter_start><jupyter_text>Test JOB RUN from HTTPTest the run of a job from HTTP REST call<jupyter_code>import requests
import oci
from oci.signer import Signer
%%time
endpoint = "https://datascience.eu-frankfurt-1.oci.oraclecloud.com/20190101/jobRuns"

# again using RP
rps = oci.auth.signers.get_resource_principals_signer()

# payload goes here
body = {
    "projectId": "ocid1.datascienceproject.oc1.eu-frankfurt-1.amaaaaaa7egirmqabu25wx2nsuzirbgrubwv5bevbvrmlh2aivtzusz3yaua",
    "compartmentId": "ocid1.compartment.oc1..aaaaaaaaoxmcrbf3x3kozxkehlontyvtb4vif64vedvkneqv3b6rozumpxzq",
    "jobId": "ocid1.datasciencejob.oc1.eu-frankfurt-1.amaaaaaa7egirmqamiy6274u5cmqcymrsm2yg6msog57uny6vsemgwtmbe3q",
    "definedTags": {},
    "displayName": "Test run 1",
    "freeformTags": {},
    "jobConfigurationOverrideDetails": {
        "jobType": "DEFAULT"
    }
}

print(requests.post(endpoint, json=body, auth=rps).json())

print()<jupyter_output>{'id': 'ocid1.datasciencejobrun.oc1.eu-frankfurt-1.amaaaaaa7egirmqarggdv2qrewvttrnnjhqkindza7lobvvclqiu43hc3csq', 'timeAccepted': '2021-11-25T11:09:51.942Z', 'timeStarted': None, 'timeFinished': None, 'createdBy': 'ocid1.datasciencenotebooksession.oc1.eu-frankfurt-1.amaaaaaa7egirmqasl57atdlss4lxnyn3iri43mw23ppfankshsewlogscsq', 'projectId': 'ocid1.datascienceproject.oc1.eu-frankfurt-1.amaaaaaa7egirmqabu25wx2nsuzirbgrubwv5bevbvrmlh2aivtzusz3yaua', 'compartmentId': 'ocid1.compartment.oc1..aaaaaaaaoxmcrbf3x3kozxkehlontyvtb4vif64vedvkneqv3b6rozumpxzq', 'jobId': 'ocid1.datasciencejob.oc1.eu-frankfurt-1.amaaaaaa7egirmqamiy6274u5cmqcymrsm2yg6msog57uny6vsemgwtmbe3q', 'displayName': 'Test run 1', 'jobConfigurationOverrideDetails': {'jobType': 'DEFAULT', 'environmentVariables': None, 'commandLineArguments': None, 'maximumRuntimeInMinutes': None}, 'jobInfrastructureConfigurationDetails': {'jobInfrastructureType': 'STANDALONE', 'shapeName': 'VM.Standard2.2', 'subnetId': 'ocid1.subnet.oc1.eu-frankf[...]
{'fraction_non_alphanumeric': 0.1278118609406953, 'fraction_numerical': 0.061860940695296525, 'mean_word_length': 8.144859813084112, 'pattern_counts': {'":': 8, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '583132', 'license': 'MIT', 'n_tokens_mistral': 866, 'n_tokens_neox': 821, 'n_words': 87, 'path': 'test_invoke_job_run.ipynb', 'repo_name': 'luigisaetta/catboost-employee-attrition', 'size': '1956'}