Forum Discussion
Azure Rest API is returning incorrect creation date for Azure branches
API Endpoint:-
https://dev.azure.com/sp0960/_git/Automated%20Scan/branches?__rt=fps&__ver=2
response:- In this response creationDate is same for all branches even if i created those branches at different date.
“Git.Branches.Mine”: [
{
“name”: “refs/heads/development”,
“objectId”: “3e351ce01962a25a6a39bf1b7bac332bde6977fb”,
“creator”: {
“displayName”: “Sharath P”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/aad.NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
}
},
“id”: “5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“uniqueName”: [Redacted]@[Redacted],
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“descriptor”: “aad. NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
},
“url”: “https://dev.azure.com/sp0960/4ec8e12f-3fed-44ec-be4e-c281eaf2e5ba/_apis/git/repositories/99a99d21-bc74-41ed-9420-85e52c871d87/refs?filter=heads%2Fdevelopment”,
“statuses”: [
{
“id”: 13142380,
“state”: 2,
“description”: “Automated Scan-CI build #17 succeeded”,
“context”: {
“name”: “build/Automated Scan-CI”,
“genre”: “continuous-integration”
},
“creationDate”: “/Date(1686560484943)/”,
“createdBy”: {
“displayName”: “Microsoft.VisualStudio.Services.TFS”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/00000002-0000-8888-8000-000000000000”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/s2s.MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
}
},
“id”: “00000002-0000-8888-8000-000000000000”,
“uniqueName”: “00000002-0000-8888-8000-000000000000@2c895908-04e0-4952-89fd-54b0046d6288”,
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=00000002-0000-8888-8000-000000000000”,
“descriptor”: “s2s. MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
},
“targetUrl”: “vstfs:///Build/Build/17”
}
]
},
{
“name”: “refs/heads/feature_12_06_2023”,
“objectId”: “3e351ce01962a25a6a39bf1b7bac332bde6977fb”,
“creator”: {
“displayName”: “Sharath P”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/aad.NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
}
},
“id”: “5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“uniqueName”: [Redacted]@[Redacted],
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“descriptor”: “aad. NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
},
“url”: “https://dev.azure.com/sp0960/4ec8e12f-3fed-44ec-be4e-c281eaf2e5ba/_apis/git/repositories/99a99d21-bc74-41ed-9420-85e52c871d87/refs?filter=heads%2Ffeature_12_06_2023”,
“statuses”: [
{
“id”: 13142380,
“state”: 2,
“description”: “Automated Scan-CI build #17 succeeded”,
“context”: {
“name”: “build/Automated Scan-CI”,
“genre”: “continuous-integration”
},
“creationDate”: “/Date(1686560484943)/”,
“createdBy”: {
“displayName”: “Microsoft.VisualStudio.Services.TFS”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/00000002-0000-8888-8000-000000000000”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/s2s.MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
}
},
“id”: “00000002-0000-8888-8000-000000000000”,
“uniqueName”: “00000002-0000-8888-8000-000000000000@2c895908-04e0-4952-89fd-54b0046d6288”,
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=00000002-0000-8888-8000-000000000000”,
“descriptor”: “s2s. MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
},
“targetUrl”: “vstfs:///Build/Build/17”
}
]
},
{
“name”: “refs/heads/feature_13_06_2023”,
“objectId”: “3e351ce01962a25a6a39bf1b7bac332bde6977fb”,
“creator”: {
“displayName”: “Sharath P”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/aad.NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
}
},
“id”: “5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“uniqueName”: [Redacted]@[Redacted],
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“descriptor”: “aad. NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
},
“url”: “https://dev.azure.com/sp0960/4ec8e12f-3fed-44ec-be4e-c281eaf2e5ba/_apis/git/repositories/99a99d21-bc74-41ed-9420-85e52c871d87/refs?filter=heads%2Ffeature_13_06_2023”,
“statuses”: [
{
“id”: 13142380,
“state”: 2,
“description”: “Automated Scan-CI build #17 succeeded”,
“context”: {
“name”: “build/Automated Scan-CI”,
“genre”: “continuous-integration”
},
“creationDate”: “/Date(1686560484943)/”,
“createdBy”: {
“displayName”: “Microsoft.VisualStudio.Services.TFS”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/00000002-0000-8888-8000-000000000000”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/s2s.MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
}
},
“id”: “00000002-0000-8888-8000-000000000000”,
“uniqueName”: “00000002-0000-8888-8000-000000000000@2c895908-04e0-4952-89fd-54b0046d6288”,
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=00000002-0000-8888-8000-000000000000”,
“descriptor”: “s2s. MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
},
“targetUrl”: “vstfs:///Build/Build/17”
}
]
},
{
“name”: “refs/heads/feature_14_06_2023”,
“objectId”: “3e351ce01962a25a6a39bf1b7bac332bde6977fb”,
“creator”: {
“displayName”: “Sharath P”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/aad.NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
}
},
“id”: “5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“uniqueName”: [Redacted]@[Redacted],
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“descriptor”: “aad. NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
},
“url”: “https://dev.azure.com/sp0960/4ec8e12f-3fed-44ec-be4e-c281eaf2e5ba/_apis/git/repositories/99a99d21-bc74-41ed-9420-85e52c871d87/refs?filter=heads%2Ffeature_14_06_2023”,
“statuses”: [
{
“id”: 13142380,
“state”: 2,
“description”: “Automated Scan-CI build #17 succeeded”,
“context”: {
“name”: “build/Automated Scan-CI”,
“genre”: “continuous-integration”
},
“creationDate”: “/Date(1686560484943)/”,
“createdBy”: {
“displayName”: “Microsoft.VisualStudio.Services.TFS”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/00000002-0000-8888-8000-000000000000”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/s2s.MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
}
},
“id”: “00000002-0000-8888-8000-000000000000”,
“uniqueName”: “00000002-0000-8888-8000-000000000000@2c895908-04e0-4952-89fd-54b0046d6288”,
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=00000002-0000-8888-8000-000000000000”,
“descriptor”: “s2s. MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
},
“targetUrl”: “vstfs:///Build/Build/17”
}
]
},
{
“name”: “refs/heads/feature_branch-from-tag_14_06_2023”,
“objectId”: “3e351ce01962a25a6a39bf1b7bac332bde6977fb”,
“creator”: {
“displayName”: “Sharath P”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/aad.NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
}
},
“id”: “5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“uniqueName”: [Redacted]@[Redacted],
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“descriptor”: “aad. NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
},
“url”: “https://dev.azure.com/sp0960/4ec8e12f-3fed-44ec-be4e-c281eaf2e5ba/_apis/git/repositories/99a99d21-bc74-41ed-9420-85e52c871d87/refs?filter=heads%2Ffeature_branch-from-tag_14_06_2023”,
“statuses”: [
{
“id”: 13142380,
“state”: 2,
“description”: “Automated Scan-CI build #17 succeeded”,
“context”: {
“name”: “build/Automated Scan-CI”,
“genre”: “continuous-integration”
},
“creationDate”: “/Date(1686560484943)/”,
“createdBy”: {
“displayName”: “Microsoft.VisualStudio.Services.TFS”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/00000002-0000-8888-8000-000000000000”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/s2s.MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
}
},
“id”: “00000002-0000-8888-8000-000000000000”,
“uniqueName”: “00000002-0000-8888-8000-000000000000@2c895908-04e0-4952-89fd-54b0046d6288”,
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=00000002-0000-8888-8000-000000000000”,
“descriptor”: “s2s. MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
},
“targetUrl”: “vstfs:///Build/Build/17”
}
]
},
{
“name”: “refs/heads/main”,
“objectId”: “3e351ce01962a25a6a39bf1b7bac332bde6977fb”,
“creator”: {
“displayName”: “Sharath P”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/aad.NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
}
},
“id”: “5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“uniqueName”: [Redacted]@[Redacted],
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“descriptor”: “aad. NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
},
“url”: “https://dev.azure.com/sp0960/4ec8e12f-3fed-44ec-be4e-c281eaf2e5ba/_apis/git/repositories/99a99d21-bc74-41ed-9420-85e52c871d87/refs?filter=heads%2Fmain”,
“statuses”: [
{
“id”: 13142380,
“state”: 2,
“description”: “Automated Scan-CI build #17 succeeded”,
“context”: {
“name”: “build/Automated Scan-CI”,
“genre”: “continuous-integration”
},
“creationDate”: “/Date(1686560484943)/”,
“createdBy”: {
“displayName”: “Microsoft.VisualStudio.Services.TFS”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/00000002-0000-8888-8000-000000000000”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/s2s.MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
}
},
“id”: “00000002-0000-8888-8000-000000000000”,
“uniqueName”: “00000002-0000-8888-8000-000000000000@2c895908-04e0-4952-89fd-54b0046d6288”,
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=00000002-0000-8888-8000-000000000000”,
“descriptor”: “s2s. MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
},
“targetUrl”: “vstfs:///Build/Build/17”
}
]
},
{
“name”: “refs/heads/production”,
“objectId”: “3e351ce01962a25a6a39bf1b7bac332bde6977fb”,
“creator”: {
“displayName”: “Sharath P”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/aad.NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
}
},
“id”: “5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“uniqueName”: [Redacted]@[Redacted],
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=5f77f3e0-8f3a-48d3-811a-4e9823bbdb49”,
“descriptor”: “aad. NjgwMDU2OTQtODU5Ni03YjE5LTg1ZTYtNmUxMGRhZjQ4NTU0”
},
“url”: “https://dev.azure.com/sp0960/4ec8e12f-3fed-44ec-be4e-c281eaf2e5ba/_apis/git/repositories/99a99d21-bc74-41ed-9420-85e52c871d87/refs?filter=heads%2Fproduction”,
“statuses”: [
{
“id”: 13142380,
“state”: 2,
“description”: “Automated Scan-CI build #17 succeeded”,
“context”: {
“name”: “build/Automated Scan-CI”,
“genre”: “continuous-integration”
},
“creationDate”: “/Date(1686560484943)/”,
“createdBy”: {
“displayName”: “Microsoft.VisualStudio.Services.TFS”,
“url”: “https://spsprodsin2.vssps.visualstudio.com/Aa5595369-a69c-4ddf-8ad3-7271fa8180f1/_apis/Identities/00000002-0000-8888-8000-000000000000”,
“_links”: {
“avatar”: {
“href”: “https://dev.azure.com/sp0960/_apis/GraphProfile/MemberAvatars/s2s.MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
}
},
“id”: “00000002-0000-8888-8000-000000000000”,
“uniqueName”: “00000002-0000-8888-8000-000000000000@2c895908-04e0-4952-89fd-54b0046d6288”,
“imageUrl”: “https://dev.azure.com/sp0960/_api/_common/identityImage?id=00000002-0000-8888-8000-000000000000”,
“descriptor”: “s2s. MDAwMDAwMDItMDAwMC04ODg4LTgwMDAtMDAwMDAwMDAwMDAwQDJjODk1OTA4LTA0ZTAtNDk1Mi04OWZkLTU0YjAwNDZkNjI4OA”
},
“targetUrl”: “vstfs:///Build/Build/17”
}
]
}
],