Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,68 @@
"$ref": "./examples/Certificate_Delete.json"
}
}
},
"patch": {
"tags": [
"ManagedEnvironments",
"Certificates"
],
"summary": "Update properties of a certificate",
"description": "Patches a certificate. Currently only patching of tags is supported",
"operationId": "Certificates_Update",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "managedEnvironmentName",
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
},
{
"name": "name",
"in": "path",
"description": "Name of the Certificate.",
"required": true,
"type": "string"
},
{
"name": "certificateEnvelope",
"in": "body",
"required": true,
"description": "Properties of a certificate that need to be updated",
"schema": {
"$ref": "#/definitions/CertificatePatch"
}
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Container App updated successfully.",
"schema": {
"$ref": "#/definitions/Certificate"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Patch Certificate": {
"$ref": "./examples/Certificates_Patch.json"
}
}
}
}
},
Expand Down Expand Up @@ -723,7 +785,7 @@
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
}
],
"properties": {
Expand Down Expand Up @@ -810,6 +872,19 @@
"readOnly": true
}
}
},
"CertificatePatch": {
"description": "A certificate to update",
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Application-specific metadata in the form of key-value pairs."
}
}
}
},
"securityDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"name": "certificate-firendly-name",
"api-version": "2022-01-01-preview",
"certificateEnvelope": {
"location": "East US",
"properties": {
"password": "private key password",
"value": "PFX-or-PEM-blob"
Expand All @@ -18,6 +19,7 @@
"body": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
"type": "Microsoft.App/ManagedEnvironments/Certificates",
"location": "East US",
"properties": {
"subjectName": "my-subject-name.company.country.net",
"issuer": "Issuer Name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
"name": "certificate-firendly-name",
"type": "Microsoft.App/ManagedEnvironments/Certificates",
"location": "East US",
"properties": {
"subjectName": "my-subject-name.company.country.net",
"issuer": "Issuer Name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
"name": "certificate-firendly-name",
"type": "Microsoft.App/ManagedEnvironments/Certificates",
"location": "East US",
"properties": {
"subjectName": "my-subject-name.company.country.net",
"issuer": "Issuer Name",
Expand All @@ -27,6 +28,7 @@
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
"name": "certificate-firendly-name",
"type": "Microsoft.App/ManagedEnvironments/Certificates",
"location": "East US",
"properties": {
"subjectName": "my-subject-name.company.country.net",
"issuer": "Issuer Name",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "examplerg",
"managedEnvironmentName": "testcontainerenv",
"name": "certificate-firendly-name",
"api-version": "2022-01-01-preview",
"certificateEnvelope": {
"containerAppEnvelope": {
"tags": {
"tag1": "value1",
"tag2": "value2"
}
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/testcontainerenv/certificate-firendly-name",
"type": "Microsoft.App/ManagedEnvironments/Certificates",
"location": "East US",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"subjectName": "my-subject-name.company.country.net",
"issuer": "Issuer Name",
"issueDate": "2021-11-06T04:00:00Z",
"expirationDate": "2022-11-06T04:00:00Z",
"thumbprint": "CERTIFICATE_THUMBPRINT",
"valid": true
}
}
}
}
}