private link resources swagger#6866
private link resources swagger#6866jhendrixMSFT merged 1 commit intoAzure:masterfrom beoberha:privatelinkresources
Conversation
In Testing, Please Ignore[Logs] (Generated from df33ca9, Iteration 3)
|
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-goNothing to generate for azure-sdk-for-go |
|
Can one of the admins verify this patch? |
|
Looks good, waiting for Ben to give signal that it's ready to merge. |
| "$ref": "#/definitions/PrivateLinkResourceListResult" | ||
| } | ||
| }, | ||
| "default": { |
There was a problem hiding this comment.
please start including the default response. @jaredmoo - any ETA when SQL can start including the default response where the schema complies with th ARM error contract schema?
| "description": "Properties of a private link resource.", | ||
| "type": "object", | ||
| "properties": { | ||
| "groupId": { |
There was a problem hiding this comment.
is this resource group id as indicated in the description or something else? from the example, it doesnt seem like this is the resource group id.
There was a problem hiding this comment.
GroupId is not related to Resource Groups in any way. GroupId represents different endpoints that a service can be accessed. Azure Networking's PrivateLink feature is being implemented by many services and during creation of PrivateLink you need to specify which "group" or endpoint you want to create the link against. For example, CosmosDB has an endpoint for MongoDB and an endpoint for Cassandra. Thus there are two "groups" that can be chosen. This API is a utility API that lists them.
SQL is a bit trivial because we only have one endpoint and thus one group.
| "type": "string", | ||
| "readOnly": true | ||
| }, | ||
| "requiredMembers": { |
There was a problem hiding this comment.
what are some examples of members?
There was a problem hiding this comment.
Members are sub sections of groups. I am not completely positive how they work honestly because SQL only has one group and one member: "sqlServer"
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateLinkResources/{groupName}": { |
There was a problem hiding this comment.
how is a private link resource created?
There was a problem hiding this comment.
how is the groupName parameter in the URL different from the groupId parameter in the body?
There was a problem hiding this comment.
So this API doesn't map to any actual resource. This API is a utility to allow customers to be able to pass the proper "groupId" and "memberName" parameters to PUT PrivateEndpoint. Since groupId and memberName are different for each service, all implementing services have to implement this API. It is defined in section 6.4 in the NRP Spec.
Since SQL has only one groupId and member, we just return static values.
|
@beoberha - few comments, please take a look. |
|
Signing off from ARM side. |
|
Looks good from SDK perspective, please let me know when this has been deployed and is ready for merge. |
|
@beoberha has this been deployed yet? |
|
@jhendrixMSFT This is ready for merging now |
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist:
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on API review process.