OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Lists the UserGroupMembership objects in your tenancy. 
/// You must specify your tenancy's OCID as the value for the compartment ID (see Where to Get the Tenancy's OCID and User's OCID). 
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
Lists the UserGroupMembership objects in your tenancy.
You must specify your tenancy's OCID as the value for the compartment ID .
Lists the UserGroupMembership objects in your tenancy . You must specify your tenancy ' s OCID as the value for the compartment ID .
public ListUserGroupMembershipsResponse ListUserGroupMemberships(ListUserGroupMembershipsRequest request)
        {
            var uriStr = $"{GetEndPoint(IdentityServices.UserGroupMemberships, this.Region)}";
            var querys = request.GetOptionQuery();
            if (!string.IsNullOrEmpty(querys))
            {
                uriStr = $"{uriStr}?{querys}";
            }
            var uri = new Uri(uriStr);
            using (var webResponse = this.RestClient.Get(uri))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new ListUserGroupMembershipsResponse()
                {
                    Items = JsonSerializer.Deserialize<List<UserGroupMembership>>(response),
                    OpcRequestId = webResponse.Headers.Get("opc-request-id"),
                    OpcNextPage = webResponse.Headers.Get("opc-next-page")
                };
            }
        }
public ListUserGroupMembershipsResponse ListUserGroupMemberships ( ListUserGroupMembershipsRequest request ) { var uriStr = $" { GetEndPoint ( IdentityServices . UserGroupMemberships , this . Region ) } " ; var querys = request . GetOptionQuery ( ) ; if ( ! string . IsNullOrEmpty ( querys ) ) { uriStr = $" { uriStr } ? { querys } " ; } var uri = new Uri ( uriStr ) ; using ( var webResponse = this . RestClient . Get ( uri ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new ListUserGroupMembershipsResponse ( ) { Items = JsonSerializer . Deserialize < List < UserGroupMembership > > ( response ) , OpcRequestId = webResponse . Headers . Get ( " " ) , OpcNextPage = webResponse . Headers . Get ( " " ) } ; } }
Lists the UserGroupMembership objects in your tenancy.
Lists the UserGroupMembership objects in your tenancy .
None
request
ListUserGroupMembershipsRequest
None