-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update types from https://github.com/Azure/azure-rest-api-specs/tree/…
…4aad50a36 (#2381) Co-authored-by: jmorerice <[email protected]>
- Loading branch information
Showing
224 changed files
with
369,754 additions
and
5,861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
generated/apicenter/microsoft.apicenter/2024-06-01-preview/samples.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Microsoft.ApiCenter | ||
|
||
> [!NOTE] | ||
> The code samples in this document are generated from API usage examples contributed by Resource Providers in their [Azure Rest API specifications](https://github.com/Azure/azure-rest-api-specs). Any issues should be reported and addressed in the source. | ||
|
||
## microsoft.apicenter/services | ||
|
||
Services_CreateOrUpdate | ||
```bicep | ||
resource exampleResource 'Microsoft.ApiCenter/services@2024-06-01-preview' = { | ||
name: 'example' | ||
identity: { | ||
type: 'SystemAssigned, UserAssigned' | ||
userAssignedIdentities: { | ||
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity: { | ||
} | ||
} | ||
} | ||
location: 'East US' | ||
properties: { | ||
} | ||
tags: { | ||
} | ||
} | ||
``` | ||
|
||
## microsoft.apicenter/services/workspaces/apisources | ||
|
||
ApiSources_CreateOrUpdate | ||
```bicep | ||
resource exampleResource 'Microsoft.ApiCenter/services/workspaces/apiSources@2024-06-01-preview' = { | ||
parent: parentResource | ||
name: 'example' | ||
properties: { | ||
azureApiManagementSource: { | ||
msiResourceId: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity' | ||
resourceId: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiManagement/service/contoso' | ||
} | ||
importSpecification: 'ondemand' | ||
targetEnvironmentId: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ApiCenter/services/contoso/workspaces/default/environments/azure-api-management' | ||
targetLifecycleStage: 'design' | ||
} | ||
} | ||
``` |
Oops, something went wrong.