Initial Commit ...

This commit is contained in:
2026-11-18 17:38:23 +03:30
commit 8c3f4dd55c
30 changed files with 9198 additions and 0 deletions
+897
View File
@@ -0,0 +1,897 @@
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>راهنمای جامع اندپوینت‌های Azure | Azure DevOps Server و خدمات Azure</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
:root {
--primary: #1a365d;
--primary-light: #2c5282;
--accent: #c9a961;
--accent-dark: #a8893f;
--bg: #faf9f6;
--card-bg: #ffffff;
--text: #1a202c;
--text-muted: #4a5568;
--border: #e2e8f0;
--success: #38a169;
--danger: #e53e3e;
--warning: #dd6b20;
--shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 30px rgba(26,54,93,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Vazirmatn', Tahoma, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.9;
font-size: 15px;
padding: 30px 15px;
}
.document-container {
max-width: 1050px;
margin: 0 auto;
background: var(--card-bg);
box-shadow: var(--shadow);
border-radius: 12px;
overflow: hidden;
}
.document-header {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
color: white;
padding: 50px 40px 40px;
position: relative;
border-bottom: 4px solid var(--accent);
}
.document-header::before {
content: '';
position: absolute;
top: 0; right: 0;
width: 200px; height: 200px;
background: radial-gradient(circle, rgba(201,169,97,0.15) 0%, transparent 70%);
border-radius: 50%;
transform: translate(50%, -50%);
}
.header-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
position: relative;
z-index: 1;
}
.company-badge {
display: flex;
align-items: center;
gap: 12px;
}
.company-logo {
width: 60px; height: 60px;
background: var(--accent);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.doc-meta {
text-align: left;
font-size: 12px;
opacity: 0.9;
}
.doc-meta div { margin-bottom: 3px; }
.document-title {
text-align: center;
position: relative;
z-index: 1;
padding: 20px 0;
}
.document-title .label {
display: inline-block;
background: rgba(201,169,97,0.2);
color: var(--accent);
padding: 4px 16px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
margin-bottom: 15px;
border: 1px solid rgba(201,169,97,0.4);
}
.document-title h1 {
font-size: 28px;
font-weight: 800;
margin-bottom: 10px;
letter-spacing: -0.5px;
}
.document-title h2 {
font-size: 16px;
font-weight: 400;
opacity: 0.9;
}
.document-body {
padding: 40px;
}
.intro-text {
background: linear-gradient(to left, #f7fafc, #edf2f7);
border-right: 4px solid var(--accent);
padding: 20px 25px;
border-radius: 8px;
margin-bottom: 35px;
font-size: 14px;
color: var(--text-muted);
}
.section {
margin-bottom: 40px;
page-break-inside: avoid;
}
.section-header {
display: flex;
align-items: center;
gap: 15px;
padding-bottom: 12px;
border-bottom: 2px solid var(--border);
margin-bottom: 20px;
}
.section-number {
width: 50px; height: 50px;
background: linear-gradient(135deg, var(--primary), var(--primary-light));
color: white;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 20px;
flex-shrink: 0;
box-shadow: 0 4px 10px rgba(26,54,93,0.2);
}
.section-title { flex: 1; }
.section-title h3 {
font-size: 19px;
font-weight: 700;
color: var(--primary);
margin-bottom: 2px;
}
.section-title .subtitle {
font-size: 12px;
color: var(--text-muted);
}
.section-content {
padding-right: 10px;
}
.section-content p {
margin-bottom: 12px;
text-align: justify;
text-indent: 20px;
}
.section-content p.no-indent { text-indent: 0; }
.highlight-box {
background: linear-gradient(to left, #fffaf0, #fef5e7);
border: 1px solid #f6e05e;
border-right: 4px solid var(--accent);
padding: 18px 22px;
border-radius: 8px;
margin: 20px 0;
font-size: 14px;
}
.highlight-box strong {
color: var(--accent-dark);
}
.info-box {
background: linear-gradient(to left, #ebf8ff, #e6f6ff);
border: 1px solid #90cdf4;
border-right: 4px solid var(--primary-light);
padding: 18px 22px;
border-radius: 8px;
margin: 20px 0;
font-size: 14px;
}
.success-box {
background: linear-gradient(to left, #f0fff4, #e6fffa);
border: 1px solid #9ae6b4;
border-right: 4px solid var(--success);
padding: 18px 22px;
border-radius: 8px;
margin: 20px 0;
font-size: 14px;
}
.warning-box {
background: linear-gradient(to left, #fffaf0, #fef5e7);
border: 1px solid #fbd38d;
border-right: 4px solid var(--warning);
padding: 18px 22px;
border-radius: 8px;
margin: 20px 0;
font-size: 14px;
}
.styled-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.styled-table thead {
background: linear-gradient(135deg, var(--primary), var(--primary-light));
color: white;
}
.styled-table th {
padding: 14px 16px;
text-align: right;
font-weight: 600;
font-size: 13px;
}
.styled-table td {
padding: 13px 16px;
border-bottom: 1px solid var(--border);
font-size: 13px;
}
.styled-table tbody tr:last-child td { border-bottom: none; }
.styled-table tbody tr:nth-child(even) { background: #f8fafc; }
.styled-table .highlight-row {
background: #fffaf0 !important;
font-weight: 600;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin: 25px 0;
}
.stat-card {
background: linear-gradient(135deg, var(--primary), var(--primary-light));
color: white;
padding: 20px;
border-radius: 10px;
text-align: center;
box-shadow: 0 4px 12px rgba(26,54,93,0.2);
}
.stat-card .stat-value {
font-size: 20px;
font-weight: 800;
margin-bottom: 5px;
color: var(--accent);
line-height: 1.3;
}
.stat-card .stat-label {
font-size: 12px;
opacity: 0.9;
}
.reference-list {
list-style: none;
padding: 0;
margin: 20px 0;
}
.reference-list li {
background: #f8fafc;
border-right: 3px solid var(--primary-light);
padding: 15px 20px;
margin-bottom: 10px;
border-radius: 6px;
font-size: 13px;
}
.reference-list li strong {
color: var(--primary);
display: block;
margin-bottom: 5px;
}
.reference-list li .ref-source {
font-size: 11px;
color: var(--text-muted);
margin-top: 5px;
}
.conclusion-box {
background: linear-gradient(135deg, var(--primary), var(--primary-light));
color: white;
padding: 30px;
border-radius: 12px;
margin: 30px 0;
text-align: center;
box-shadow: 0 8px 20px rgba(26,54,93,0.3);
}
.conclusion-box h3 {
font-size: 22px;
font-weight: 800;
margin-bottom: 15px;
color: var(--accent);
}
.conclusion-box p {
font-size: 14px;
line-height: 1.8;
text-indent: 0 !important;
margin-bottom: 15px;
}
.conclusion-box .highlight {
background: rgba(201,169,97,0.2);
padding: 15px 20px;
border-radius: 8px;
margin-top: 20px;
border: 1px solid rgba(201,169,97,0.4);
}
.document-footer {
background: var(--primary);
color: white;
padding: 25px 40px;
text-align: center;
font-size: 12px;
margin-top: 40px;
}
.document-footer .footer-brand {
font-weight: 700;
color: var(--accent);
margin-bottom: 5px;
font-size: 14px;
}
.footer-divider {
width: 60px;
height: 2px;
background: var(--accent);
margin: 10px auto;
}
.page-info {
text-align: center;
padding: 15px;
font-size: 11px;
color: var(--text-muted);
border-top: 1px solid var(--border);
margin-top: 30px;
}
@media print {
body { background: white; padding: 0; }
.document-container { box-shadow: none; border-radius: 0; }
.section { page-break-inside: avoid; }
}
@media (max-width: 768px) {
.document-body { padding: 25px 20px; }
.document-header { padding: 30px 20px; }
.stats-grid { grid-template-columns: 1fr; }
.header-top { flex-direction: column; gap: 15px; }
.doc-meta { text-align: center; }
}
</style>
</head>
<body>
<div class="document-container">
<header class="document-header">
<div class="header-top">
<div class="company-badge">
<div class="company-logo"></div>
</div>
<div class="doc-meta">
<div>شماره مستند: API-1405-002</div>
<div>نسخه: ۱.۰</div>
<div>تاریخ تهیه: آذر ۱۴۰۵</div>
<div>طبقه‌بندی: فنی</div>
</div>
</div>
<div class="document-title">
<span class="label">API REFERENCE GUIDE</span>
<h1>راهنمای جامع اندپوینت‌های Azure</h1>
<h2>Azure DevOps Server (TFS) و سرویس‌های ابری Azure</h2>
</div>
</header>
<div class="document-body">
<div class="intro-text">
<strong>مخاطب فنی محترم،</strong><br>
این مستند به‌عنوان مرجع یکپارچه‌ای از آدرس‌های اندپوینت (Endpoint) سرویس‌های Azure طراحی شده است. تمرکز اصلی بر نمونهٔ عملیاتی <span style="direction:ltr; display:inline-block; font-family:monospace; background:#edf2f7; padding:2px 6px; border-radius:4px;">http://192.168.10.22:8080/tfs/RPKavoshDevOps/_apis</span> به‌عنوان پایهٔ Azure DevOps Server (TFS) بوده و در ادامه، اندپوینت‌های کلیدی سایر خدمات Azure (Resource Manager، Storage، Key Vault، Monitor، Virtual Machines و Virtual Network) تشریح می‌شود.
</div>
<!-- بخش ۱: خلاصه اجرایی -->
<div class="section">
<div class="section-header">
<div class="section-number">۱</div>
<div class="section-title">
<h3>خلاصه اجرایی</h3>
<div class="subtitle">Executive Summary</div>
</div>
</div>
<div class="section-content">
<p>سرویس‌های Azure از طریق REST API مبتنی بر HTTP قابل دسترسی هستند. Azure DevOps Server (که قبلاً با نام TFS شناخته می‌شد) در آدرس <span style="direction:ltr; font-family:monospace;">http://192.168.10.22:8080/tfs/RPKavoshDevOps/_apis</span> میزبانی شده و مجموعهٔ <span style="direction:ltr; font-family:monospace;">RPKavoshDevOps</span> را ارائه می‌دهد. این مستند، ساختار URL، نواحی اصلی API و نمونه‌هایی از اندپوینت‌های پرکاربرد را به‌صورت دسته‌بندی‌شده ارائه می‌کند تا تیم‌های توسعه و عملیات بتوانند یکپارچه‌سازی‌های خود را با سرعت و دقت پیاده‌سازی کنند.</p>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-value" style="font-size:16px;">Azure DevOps Server</div>
<div class="stat-label">پایهٔ TFS با مجموعهٔ RPKavoshDevOps</div>
</div>
<div class="stat-card">
<div class="stat-value" style="font-size:16px;">Azure ARM</div>
<div class="stat-label">مدیریت منابع ابری</div>
</div>
<div class="stat-card">
<div class="stat-value" style="font-size:16px;">Storage / Key Vault</div>
<div class="stat-label">داده و امنیت</div>
</div>
</div>
<div class="highlight-box">
<strong>نکته کلیدی:</strong> تمامی درخواست‌ها باید شامل پارامتر <span style="direction:ltr; font-family:monospace;">api-version</span> باشند. برای نمونهٔ TFS فوق، الگوی کامل به‌صورت <span style="direction:ltr; font-family:monospace;">http://192.168.10.22:8080/tfs/RPKavoshDevOps/_apis/{area}/{resource}?api-version={version}</span> است.
</div>
</div>
</div>
<!-- بخش ۲: ساختار URL و احراز هویت -->
<div class="section">
<div class="section-header">
<div class="section-number">۲</div>
<div class="section-title">
<h3>ساختار URL و احراز هویت</h3>
<div class="subtitle">URL Structure & Authentication</div>
</div>
</div>
<div class="section-content">
<p>الگوی استاندارد Azure DevOps Server به‌شکل زیر است:</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:13px; margin:15px 0;">
http://{server}:{port}/{collection}/_apis/{area}/{resource}?api-version={version}
</div>
<p>در آدرس نمونهٔ شما:</p>
<ul style="padding-right:20px; margin:10px 0;">
<li><strong>server:port</strong> = <span style="direction:ltr; font-family:monospace;">192.168.10.22:8080</span></li>
<li><strong>collection</strong> = <span style="direction:ltr; font-family:monospace;">tfs/RPKavoshDevOps</span></li>
<li><strong>_apis</strong> = مسیر پایهٔ REST API</li>
</ul>
<div class="info-box">
<strong>احراز هویت:</strong> روش‌های رایج شامل <strong>PAT (Personal Access Token)</strong> با هدر <span style="direction:ltr; font-family:monospace;">Authorization: Basic</span>، <strong>OAuth 2.0</strong> و <strong>Microsoft Entra ID</strong> است. برای محیط عملیاتی، Entra ID توصیه می‌شود.[reference:0]
</div>
</div>
</div>
<!-- بخش ۳: اندپوینت‌های Azure DevOps -->
<div class="section">
<div class="section-header">
<div class="section-number">۳</div>
<div class="section-title">
<h3>اندپوینت‌های Azure DevOps (TFS)</h3>
<div class="subtitle">Azure DevOps REST API Areas</div>
</div>
</div>
<div class="section-content">
<p>Azure DevOps API در نواحی (Area) مختلفی سازماندهی شده است. جدول زیر مسیر پایهٔ هر ناحیه را بر اساس آدرس نمونهٔ <span style="direction:ltr; font-family:monospace;">http://192.168.10.22:8080/tfs/RPKavoshDevOps/_apis</span> نشان می‌دهد:</p>
<table class="styled-table">
<thead>
<tr>
<th>ناحیه (Area)</th>
<th>مسیر پایه (Base Path)</th>
<th>کاربرد اصلی</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>core</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/core</td>
<td>پروژه‌ها، تیم‌ها، فرآیندها و عملیات سطح سازمان</td>
</tr>
<tr>
<td><strong>git</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/git</td>
<td>مخازن کد، شاخه‌ها، Pull Requestها و کامیت‌ها</td>
</tr>
<tr>
<td><strong>build</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/build</td>
<td>تعاریف Build، اجراها و منابع Build</td>
</tr>
<tr>
<td><strong>pipelines</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/pipelines</td>
<td>تعاریف Pipeline و اجرای آن‌ها</td>
</tr>
<tr>
<td><strong>release</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/release</td>
<td>تعاریف Release، استقرارها و تأییدها</td>
</tr>
<tr>
<td><strong>wit</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/wit</td>
<td>Work Itemها، کوئری‌ها و انواع Work Item</td>
</tr>
<tr>
<td><strong>work</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/work</td>
<td>Boardها، Backlogها، Sprintها و تنظیمات تیم</td>
</tr>
<tr>
<td><strong>testPlan</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/testplan</td>
<td>Test Planها، Suiteها و Caseها</td>
</tr>
<tr>
<td><strong>testResults</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/testResults</td>
<td>اجرای تست‌ها و نتایج</td>
</tr>
<tr>
<td><strong>graph</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/graph</td>
<td>کاربران، گروه‌ها و عضویت‌ها</td>
</tr>
<tr>
<td><strong>policy</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/policy</td>
<td>خط‌مشی‌های شاخه و تنظیمات Policy</td>
</tr>
<tr>
<td><strong>hooks</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/tfs/RPKavoshDevOps/_apis/hooks</td>
<td>Service Hookها و اشتراک‌ها</td>
</tr>
</tbody>
</table>
<p class="no-indent">نمونهٔ یک اندپوینت کامل برای دریافت لیست پروژه‌ها:</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0; overflow-x:auto;">
GET http://192.168.10.22:8080/tfs/RPKavoshDevOps/_apis/projects?api-version=7.2
</div>
<p>برای دریافت Work Itemها در یک پروژهٔ فرضی (مثلاً <span style="direction:ltr; font-family:monospace;">MyProject</span>):</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0; overflow-x:auto;">
GET http://192.168.10.22:8080/tfs/RPKavoshDevOps/MyProject/_apis/wit/workitems?api-version=7.2
</div>
<div class="success-box">
<strong>✅ نکتهٔ نسخه‌بندی:</strong> برای Azure DevOps Server، از نسخهٔ دقیق موجود در مخزن <span style="direction:ltr; font-family:monospace;">vsts-rest-api-specs</span> استفاده کنید. اگر نسخهٔ سرور شما 7.0 یا 7.1 است، پوشهٔ مربوطه (مانند <span style="direction:ltr; font-family:monospace;">azure-devops-server-7.0</span>) مرجع اصلی است.[reference:1]
</div>
</div>
</div>
<!-- بخش ۴: اندپوینت‌های Azure Resource Manager -->
<div class="section">
<div class="section-header">
<div class="section-number">۴</div>
<div class="section-title">
<h3>اندپوینت‌های Azure Resource Manager (ARM)</h3>
<div class="subtitle">Management Plane Endpoints</div>
</div>
</div>
<div class="section-content">
<p>Azure Resource Manager (ARM) نقطهٔ ورود اصلی برای مدیریت منابع ابری است. پایهٔ آدرس آن <span style="direction:ltr; font-family:monospace;">https://management.azure.com</span> بوده و ساختار آن بر اساس دامنه (Scope) تعریف می‌شود:[reference:2]</p>
<table class="styled-table">
<thead>
<tr>
<th>نوع دامنه</th>
<th>الگوی مسیر</th>
</tr>
</thead>
<tbody>
<tr>
<td>Management Group</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/providers/Microsoft.Management/managementGroups/{managementGroupId}</td>
</tr>
<tr>
<td>Subscription</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/subscriptions/{subscriptionId}</td>
</tr>
<tr>
<td>Resource Group</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}</td>
</tr>
<tr>
<td>Resource</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}</td>
</tr>
</tbody>
</table>
<p class="no-indent">نمونهٔ لیست کردن منابع یک Resource Group:</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0; overflow-x:auto;">
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources?api-version=2021-04-01
</div>
</div>
</div>
<!-- بخش ۵: اندپوینت‌های Storage -->
<div class="section">
<div class="section-header">
<div class="section-number">۵</div>
<div class="section-title">
<h3>اندپوینت‌های Azure Storage</h3>
<div class="subtitle">Blob, File, Queue, Table, DFS</div>
</div>
</div>
<div class="section-content">
<p>هر حساب ذخیره‌سازی (Storage Account) مجموعه‌ای از اندپوینت‌های اختصاصی برای سرویس‌های مختلف دارد. الگوی کلی به‌صورت <span style="direction:ltr; font-family:monospace;">https://{accountName}.{service}.core.windows.net</span> است:[reference:3]</p>
<table class="styled-table">
<thead>
<tr>
<th>سرویس</th>
<th>الگوی اندپوینت</th>
</tr>
</thead>
<tbody>
<tr>
<td>Blob Storage</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://{account}.blob.core.windows.net/</td>
</tr>
<tr>
<td>File Storage</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://{account}.file.core.windows.net/</td>
</tr>
<tr>
<td>Queue Storage</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://{account}.queue.core.windows.net/</td>
</tr>
<tr>
<td>Table Storage</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://{account}.table.core.windows.net/</td>
</tr>
<tr>
<td>Data Lake Storage Gen2 (DFS)</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://{account}.dfs.core.windows.net/</td>
</tr>
<tr>
<td>Static Website (Web)</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://{account}.web.core.windows.net/</td>
</tr>
</tbody>
</table>
<div class="info-box">
<strong>💡 مدیریت Storage از طریق ARM:</strong> برای عملیات مدیریتی (ساخت، حذف، به‌روزرسانی حساب) از اندپوینت <span style="direction:ltr; font-family:monospace;">https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.Storage/storageAccounts/{accountName}</span> استفاده کنید.[reference:4]
</div>
</div>
</div>
<!-- بخش ۶: اندپوینت‌های Key Vault -->
<div class="section">
<div class="section-header">
<div class="section-number">۶</div>
<div class="section-title">
<h3>اندپوینت‌های Azure Key Vault</h3>
<div class="subtitle">Secrets, Keys & Certificates</div>
</div>
</div>
<div class="section-content">
<p>Key Vault برای ذخیرهٔ امن کلیدها، رمزها و گواهی‌ها استفاده می‌شود. اندپوینت دادهٔ آن معمولاً به‌شکل زیر است:</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0;">
https://{vaultName}.vault.azure.net/
</div>
<p>عملیات مدیریتی (Control Plane) از طریق ARM انجام می‌شود:</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0;">
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.KeyVault/vaults/{vaultName}
</div>
<p>نمونه‌هایی از عملیات رایج:</p>
<ul style="padding-right:20px;">
<li>دریافت یک Secret: <span style="direction:ltr; font-family:monospace;">GET https://{vault}.vault.azure.net/secrets/{secretName}?api-version=7.2</span></li>
<li>لیست Keyها: <span style="direction:ltr; font-family:monospace;">GET https://{vault}.vault.azure.net/keys?api-version=7.2</span></li>
</ul>
</div>
</div>
<!-- بخش ۷: اندپوینت‌های Azure Monitor -->
<div class="section">
<div class="section-header">
<div class="section-number">۷</div>
<div class="section-title">
<h3>اندپوینت‌های Azure Monitor</h3>
<div class="subtitle">Metrics, Logs & Activity Log</div>
</div>
</div>
<div class="section-content">
<p>Azure Monitor دارای چند دستهٔ اندپوینت است. بخش ARM (مدیریت تنظیمات و Activity Log) زیر <span style="direction:ltr; font-family:monospace;">https://management.azure.com</span> قرار دارد:[reference:5]</p>
<ul style="padding-right:20px;">
<li><strong>Activity Log:</strong> <span style="direction:ltr; font-family:monospace;">/subscriptions/{subscriptionId}/providers/Microsoft.Insights/eventtypes/management/values</span></li>
<li><strong>Metric Definitions:</strong> <span style="direction:ltr; font-family:monospace;">/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/{provider}/{type}/{name}/providers/Microsoft.Insights/metricDefinitions</span></li>
</ul>
<p>برای <strong>Log Analytics</strong>، اندپوینت جداگانه‌ای وجود دارد:</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0;">
https://api.loganalytics.io/v1/workspaces/{workspaceId}/query
</div>
</div>
</div>
<!-- بخش ۸: اندپوینت‌های Virtual Machines و Virtual Network -->
<div class="section">
<div class="section-header">
<div class="section-number">۸</div>
<div class="section-title">
<h3>اندپوینت‌های Virtual Machines و Virtual Network</h3>
<div class="subtitle">Compute & Networking</div>
</div>
</div>
<div class="section-content">
<h4 style="color:var(--primary); margin-bottom:10px;">ماشین‌های مجازی (Microsoft.Compute)</h4>
<p>مدیریت VMها از طریق ARM انجام می‌شود:</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0; overflow-x:auto;">
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachines
</div>
<p>نمونهٔ لیست VMهای یک Resource Group:[reference:6]</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0;">
GET https://management.azure.com/subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachines?api-version=2024-07-01
</div>
<h4 style="color:var(--primary); margin-top:20px; margin-bottom:10px;">شبکه‌های مجازی (Microsoft.Network)</h4>
<p>اندپوینت Virtual Network نیز زیر ARM قرار دارد:[reference:7]</p>
<div style="background:#edf2f7; padding:15px; border-radius:8px; direction:ltr; font-family:monospace; font-size:12px; margin:10px 0; overflow-x:auto;">
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.Network/virtualNetworks
</div>
</div>
</div>
<!-- بخش ۹: جمع‌بندی -->
<div class="section">
<div class="section-header">
<div class="section-number">۹</div>
<div class="section-title">
<h3>جمع‌بندی و الگوی نهایی</h3>
<div class="subtitle">Summary & Pattern Reference</div>
</div>
</div>
<div class="section-content">
<p>جدول زیر خلاصه‌ای از اندپوینت‌های کلیدی شرح‌داده‌شده را ارائه می‌دهد:</p>
<table class="styled-table">
<thead>
<tr>
<th>سرویس</th>
<th>پایهٔ آدرس (Base URL)</th>
<th>نوع</th>
</tr>
</thead>
<tbody>
<tr class="highlight-row">
<td><strong>Azure DevOps Server (TFS)</strong></td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">http://192.168.10.22:8080/tfs/RPKavoshDevOps/_apis</td>
<td>On-Premises</td>
</tr>
<tr>
<td>Azure Resource Manager</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://management.azure.com</td>
<td>Cloud</td>
</tr>
<tr>
<td>Azure Storage (Blob/File/Queue/Table)</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://{account}.{service}.core.windows.net</td>
<td>Cloud</td>
</tr>
<tr>
<td>Azure Key Vault</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://{vault}.vault.azure.net</td>
<td>Cloud</td>
</tr>
<tr>
<td>Azure Monitor (Log Analytics)</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://api.loganalytics.io</td>
<td>Cloud</td>
</tr>
<tr>
<td>Azure VM / VNet</td>
<td style="direction:ltr; font-family:monospace; font-size:12px;">https://management.azure.com/.../Microsoft.Compute | Microsoft.Network</td>
<td>Cloud (ARM)</td>
</tr>
</tbody>
</table>
<div class="conclusion-box">
<h3>🎯 الگوی نهایی</h3>
<p>برای هر درخواست، سه مؤلفه را کنار هم قرار دهید:</p>
<div class="highlight" style="direction:ltr; font-family:monospace; font-size:13px;">
{BaseURL}/{scope}/_apis/{area}/{resource}?api-version={version}
</div>
<p style="margin-top:10px;">مثال برای TFS شما: <span style="direction:ltr; font-family:monospace;">http://192.168.10.22:8080/tfs/RPKavoshDevOps/_apis/wit/workitems?api-version=7.2</span></p>
</div>
<div class="info-box">
<strong>📚 منابع رسمی:</strong> برای مشاهدهٔ لیست کامل و به‌روز اندپوینت‌ها به مخزن <span style="direction:ltr; font-family:monospace;">MicrosoftDocs/vsts-rest-api-specs</span> و مستندات <span style="direction:ltr; font-family:monospace;">learn.microsoft.com/rest/api/azure/devops</span> مراجعه کنید.[reference:8]
</div>
</div>
</div>
<!-- منابع -->
<div class="section">
<div class="section-header">
<div class="section-number">۱۰</div>
<div class="section-title">
<h3>منابع و مراجع</h3>
<div class="subtitle">References</div>
</div>
</div>
<div class="section-content">
<ul class="reference-list">
<li>
<strong>Microsoft Learn — Get started with Azure DevOps REST APIs</strong>
ساختار URL و نسخه‌بندی Azure DevOps Server.
<div class="ref-source">https://learn.microsoft.com/azure/devops/integrate/how-to/call-rest-api</div>
</li>
<li>
<strong>GitHub — vsts-rest-api-specs (MicrosoftDocs)</strong>
مخزن رسمی OpenAPI/Swagger برای نواحی مختلف Azure DevOps.
<div class="ref-source">https://github.com/MicrosoftDocs/vsts-rest-api-specs</div>
</li>
<li>
<strong>Azure Resource Manager REST — Manage resources</strong>
دامنه‌ها و الگوی مسیر ARM.
<div class="ref-source">https://learn.microsoft.com/azure/azure-resource-manager/management/manage-resources-rest</div>
</li>
<li>
<strong>Azure Storage REST API Reference</strong>
اندپوینت‌های Blob، File، Queue، Table و DFS.
<div class="ref-source">https://learn.microsoft.com/rest/api/storageservices/</div>
</li>
<li>
<strong>Azure Monitor REST API Index</strong>
اندپوینت‌های ARM و Log Analytics.
<div class="ref-source">https://learn.microsoft.com/azure/azure-monitor/essentials/rest-api-walkthrough</div>
</li>
</ul>
</div>
</div>
<div class="page-info">
این مستند فنی بوده و برای استفادهٔ تیم‌های توسعه و عملیات تهیه شده است. آدرس‌های ذکرشده نمونه‌هایی از الگوهای استاندارد هستند و ممکن است بر اساس نسخهٔ سرویس و تنظیمات محیط تغییر کنند.
</div>
</div>
<footer class="document-footer">
<div class="footer-brand">طراحی و توسعه: هادی خزاعی اصل</div>
<div class="footer-divider"></div>
<div>تاریخ تهیه: آذر ۱۴۰۵ &nbsp;|&nbsp; نسخه: ۱.۰ &nbsp;|&nbsp; طبقه‌بندی: فنی</div>
</footer>
</div>
</body>
</html>