Certificates - List By Iot Hub
Sertifika listesini alın.
Sertifikaların listesini döndürür.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates?api-version=2018-04-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
resource
|
path | True |
string |
IoT hub'ını içeren kaynak grubunun adı. |
resource
|
path | True |
string |
IoT hub'ının adı. |
subscription
|
path | True |
string |
Abonelik tanımlayıcısı. |
api-version
|
query | True |
string |
API sürümü. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Gövde tüm sertifika listesini içerir. |
|
Other Status Codes |
DefaultErrorResponse |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Certificates_ListByIotHub
Sample Request
GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testhub/certificates?api-version=2018-04-01
Sample Response
{
"value": [
{
"properties": {
"subject": "CN=testdevice1",
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
"isVerified": false,
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
"updated": "Thu, 12 Oct 2017 19:23:50 GMT"
},
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/andbuc-hub/certificates/cert",
"name": "cert",
"type": "Microsoft.Devices/IotHubs/Certificates",
"etag": "AAAAAAExpNs="
}
]
}
Tanımlar
Name | Description |
---|---|
Certificate |
X509 Sertifikası. |
Certificate |
Sertifika nesnelerinin JSON serileştirilmiş dizisi. |
Certificate |
X509 CA Sertifikasının açıklaması. |
Error |
Hata ayrıntıları. |
CertificateDescription
X509 Sertifikası.
Name | Tür | Description |
---|---|---|
etag |
string |
Varlık etiketi. |
id |
string |
Kaynak tanımlayıcısı. |
name |
string |
Sertifikanın adı. |
properties |
X509 CA Sertifikasının açıklaması. |
|
type |
string |
Kaynak türü. |
CertificateListDescription
Sertifika nesnelerinin JSON serileştirilmiş dizisi.
Name | Tür | Description |
---|---|---|
value |
Sertifika nesneleri dizisi. |
CertificateProperties
X509 CA Sertifikasının açıklaması.
Name | Tür | Description |
---|---|---|
certificate |
string |
Sertifika içeriği |
created |
string |
Sertifikanın oluşturma tarihi ve saati. |
expiry |
string |
Sertifikanın son kullanma tarihi ve saati. |
isVerified |
boolean |
Sertifikanın doğrulanıp doğrulanmamış olduğunu belirler. |
subject |
string |
Sertifikanın konu adı. |
thumbprint |
string |
Sertifikanın parmak izi. |
updated |
string |
Sertifikanın son güncelleştirme tarihi ve saati. |
ErrorDetails
Hata ayrıntıları.
Name | Tür | Description |
---|---|---|
code |
string |
Hata kodu. |
details |
string |
Hata ayrıntıları. |
httpStatusCode |
string |
HTTP durum kodu. |
message |
string |
Hata iletisi. |